mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server.
It may be possible to simply use apxs to dynamically add the module to Apache without it needing to be done via EasyApache as a custom module. Most custom modules for Apache can be added via apxs without an EasyApache recompile needing to be done. I'd have to personally test it to see the results and there doesn't appear to be much documentation for it at the moment.
Since there was already a new thread posted to Feature Requests for this earlier today, I've merged sneaders thread and this one together.
How does it affect server performance?
I have created a how-to on installing mod_pagespeed on Apache v2.2 + Cpanel.
Install mod_pagespeed in Apache for Cpanel | technomenace.com
On a dedicated server, it is running fine with not much resource usage, but on my 1GB vps, it spiked the load to 40+ and I had to stop it as soon as I started. Need more inputs on how this module works for other people, and what all tweaks can be done..
A lot of data is being written into apache error logs, and I suspect whether it will cause any i/o waits if your server is already sluggish..
Hmm, have you noticed any spikes in RAM usage as well?
If someone got this working without must resource spike and your server is stable, please be kind enough to to report your server specs (ram and hardware) and any notable improvement in performance.
If you put something into httpd.conf directly in most areas, /scripts/rebuildhttpdconf and /scripts/easyapache will wipe it. You should use the include files at /usr/local/apache/conf/includes to put that into httpd.conf as those are added whenever you distill Apache and won't wipe on rebuild and recompile. If you do put it into an include file (such as pre_main_global.conf possibly), you'd want to run these three commands afterward:And finally, include pagespeed.conf in /usr/local/apache/conf/httpd.conf:
Thanks.Code:/usr/local/cpanel/bin/apache_conf_distiller --update /scripts/rebuildhttpdconf /etc/init.d/httpd restart
I don't know what I'm doing wrong but following the above linked article and changing for 2.2.16 and 64bit it seems to be loading and httpd responds to the first few requests before the entire server slows to a crawl and I have to restart.
On Centos build on 64 I get this error
httpd: Syntax error on line 28 of /usr/local/apache/conf/httpd.conf.1288941448: Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_global.conf: Syntax error on line 1 of /usr/local/apache/conf/pagespeed.conf: Cannot load /usr/local/apache/modules/mod_pagespeed.so into server: /usr/local/apache/modules/mod_pagespeed.so: wrong ELF class: ELFCLASS32
Can somebody help pls
If you downloaded the rpm as per my guide, its for 32-bit..
You need to get the 64-bit version package from https://dl-ssl.google.com/dl/linux/d...ent_x86_64.rpm and proceed further..
That is correct thank u for helping me.
Unfortunately after a minute from installation the server load super increased .
So I have to remove mod_pagespeed
I think u have to wait until a beta final finishes