Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CentOS (5.7 Final) system on which I already have Apache (2.2.3) installed.

I have installed mod_pagespeed by following the instructions on: and got the following while installing:

# rpm -U mod-pagespeed-*.rpm
warning: mod-pagespeed-beta_current_x86_64.rpm: Header V4 DSA signature: NOKEY, key ID 7fac5991
[  OK  ] atd: [  OK  ]

It does appear to be installed properly:

# apachectl -t -D DUMP_MODULES
Loaded Modules:
 pagespeed_module (shared)

And I've made the following changes in /etc/httpd/conf.d/pagespeed.conf


ModPagespeedEnableFilters collapse_whitespace,elide_attributes
ModPagespeedEnableFilters combine_css,rewrite_css,move_css_to_head,inline_css
ModPagespeedEnableFilters rewrite_javascript,inline_javascript
ModPagespeedEnableFilters rewrite_images,insert_img_dimensions
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters remove_quotes,remove_comments

ModPagespeedEnableFilters add_instrumentation

Commented out the following lines in mod_pagespeed_statistics

<Location /mod_pagespeed_statistics>
    **# Order allow,deny**
    # You may insert other "Allow from" lines to add hosts you want to
    # allow to look at generated statistics.  Another possibility is
    # to comment out the "Order" and "Allow" options from the config
    # file, to allow any client that can reach your server to examine
    # statistics.  This might be appropriate in an experimental setup or
    # if the Apache server is protected by a reverse proxy that will
    # filter URLs in some fashion.
    **# Allow from localhost**
    **# Allow from**
    SetHandler mod_pagespeed_statistics

As a separate note, I'm trying to run the prescribed system tests as specified on google's site, but it gives the following error. I'm averse to updating wget on my server, as I'm sure there's no need for it for the actual module to function correctly.

You have the wrong version of wget. 1.12 is required.
share|improve this question
Do you have those mod-pagespeed-*.rpm files in the current directory you are trying to perform this command from? – Janne Pikkarainen Nov 24 '11 at 13:01
(embarrassed) I didnt do that! I thought it would pick it up from some standard source... I did that and now it says (see edit 1) - does that look fine? – siliconpi Nov 24 '11 at 14:02
@Janne - I've setup the module correctly (the pagespeed.conf file got installed properly), but there is no change / improvement of the website. I'm reading through the instructions on to see if there is anything more I have to do, but those indicate that I am done! Any insights? – siliconpi Nov 26 '11 at 12:52
up vote 0 down vote accepted

I was running into an issue in my installation of mod_pagespeed on a CentOS system wherein it just refused to work after installation.

It turns out there was a permission/ownership access issue for particular folder(s).

In /var/www/, there existed:

drwxr-xr-x  4 root      root   4096 Dec  8 12:02 mod_pagespeed
drwxr-xr-x  2 root      root   4096 Dec  8 12:03 mod_pagespeedcache

I changed the permissions to:

drwxr-xr-x  4 apache    apache 4096 Dec  8 12:02 mod_pagespeed
drwxr-xr-x  4 apache    apache 4096 Dec 10 13:10 mod_pagespeedcache

The logs were showing:

[Sat Dec 10 13:08:43 2011] [error] [mod_pagespeed @30739] /var/www/mod_pagespeedcache/XAM3DOzfwmGm-DkPVUC7.outputlock:0: creating dir (code=13 Permission denied)

Worked fine after that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.