Apache2 mod pagespeed

Before you begin
Please read this bug report before you begin. Bug 344111 - www-apache/mod_pagespeed New package

Download
Download ebuild from here and save it with this name:

wget -O mod_pagespeed-1.0.22.7.ebuild https://344111.bugs.gentoo.org/attachment.cgi?id=270439

Download config from here and save it with this name:

wget -O 80_mod_pagespeed.conf https://344111.bugs.gentoo.org/attachment.cgi?id=270441

Installation
Make directory for config file and ebuild file:

Copy ebuild file:

Copy config file:

Go to directory:

Make Manifest file with:

Now I tried to:

but for some reason autounmask did not work so edited and added PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage".

Before you proceed to emerging mod_pagespeed check that you are running Python 2.7. Any other version will result in errors such as Syntax error etc. First get some tool to see what version of python you have with this:

One that this is done do this:

On my server this looks like this:

[1]  python2.7 * [2]  python3.1 [3]  python3.2

Now if 2.7 is not selected by defualt do this to select 2.7 as default:

You will need probably to re-emerge python 2.7 because of thread python library. Use this to do that:

USE="thread" emerge -1 -av =dev-lang/python-2.7* You will need to emerge also this package:

Now you are ready to emerge mod_pagespeed with: ACCEPT_KEYWORDS="~amd64" emerge -av mod_pagespeed

Now sitt back and get some coffe or tie.

Finishing up
Edit and add -D PAGESPEED into APACHE2_OPTS Now restart apache with:

This is the result: