Install mod page speed in Direct Admin

“mod_pagespeed speeds up your site and reduces page load time. This open-source Apache HTTP server module automatically applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow.”


Steps to install

cd /root
yum install at

rpm -i --nodeps mod-pagespeed-stable_current_x86_64.rpm

Now we have to edit some files.

add this line: Include /etc/httpd/conf.d/pagespeed.conf

remove this line or comment it: Include conf/extra/httpd-deflate.conf

Make sure there is no ‘setoutputfilter’ line in your .htaccess file, this will interfere with mod_pagespeed.

Now restart httpd and see if you’ve got the module loaded:



service httpd restart
apachectl -t -D DUMP_MODULES

Check if you see “pagespeed_module (shared)” loaded.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s