Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Add support for mod_pagespeed to easyapache4

wouta shared this idea 9 years ago
Completed

I want to insert the reqeust to add support of mod_pagespeed to easy apache 4.

Best Answer
photo

Hey Thomas!

mod_pagespeed is currently in our stable repository. You can install it via the EasyApache 4 interface in the "Apache Modules" section.


8c3deb863204f155cca1be020f2fb842

Replies (8)

photo
4

I've built these RPMs and placed them in our ea4-experimental repository. You can install them by running the following:


  1. yum install ea4-experimental
  2. yum install ea-apache24-mod_pagespeed


Please let us know how it works!

You can read more about the experimental repo here:

https://documentation.cpanel.net/display/EA4/The+Experimental+Repository

photo
1

Firstly, great move. We already have mod_pagespeed installed from the Github repo. Is there any difference from this to your RPM's?

photo
1

Where can I find the mod_pagespeed configuration file? I have installed it, it was enabled in EA4 but I couldn't see that it took effect like combining CSS files, hence I wanted to verify the config is supposed to do this.

photo
1

ea-apache24-mod_ruid2 was conflicting so i have removed it and reinstalled mod_pagespeed, and now its working fine.


Thanks

photo
3

This is great, thank you Jacob.


Neil, both installs are similar. We ended up uninstalling the other github one and removing all the files manually before installing this EA4 version of pagespeed.


Martin, the config is at: /etc/apache2/conf.modules.d/456_pagespeed.conf. Take note that the location blocks in this conf are in Apache 2.2 mode, so off the bat you should change to Apache 2.4 style (ie Require all denied instead of Order). You need to make a handler for pagespeed_admin:


<Location "/pagespeed_admin">

Require all denied

Require local

Require ip 123.123.123.123

SetHandler pagespeed_admin

</Location>


And to access that pagespeed_admin, add a line in .htaccess after the directive(s) for .well-known/acme-challenge: RewriteCond %{REQUEST_URI} !^/pagespeed_admin[/0-9a-zA-Z_-]*$


Also, if there are permission issues in apache error log, make sure the cache is owned by Apache: chown -R nobody:nobody /var/mod_pagespeed/


There are some hiccups with serf too hitting port 80 (while using frontend such as cloudflare) however im not sure how to solve those yet (ModPagespeedFetchHttps enable doesnt do anything for it). If anyone has thoughts i would appreciate it.

photo
1

Any plans when is this gonna be implemented without using the experimental repository? Thanks!

photo
1

Nothing defined yet, but if that comes up we'll definitely communicate that here!

photo
photo
1

This is awesome. Thank you!!!

photo
1

Is anyone else able to set the timeout for rewrites in logs to a higher threshold? In pagespeed conf: "ModPagespeedSlowFileLatencyUs 100000" + restart httpd/php-fpm should increase it to 100ms before it complains, but it seems to do nothing (although /pagespeed_admin reports it is indeed set correct). Is this a hiccup you are seeing as well?

photo
1

When its will be STABLE Release? Also How to update PageSpeed stable Release Version?

photo
2

This one hasn't been slated for a non-experimental release yet, but when it does I'll be back with information on how to update!

photo
1

UP +1

photo
photo
1

Hello,

Everyday I get my site down for 3/5 minutes from following error message. Please let me know that how I can get fixing this error?


Failed to make directory /var/mod_pagespeed/cache/rname: Permission denied

photo
1

I'm sorry, we can't provide support on the feature request site. If you would be willing, please open start a thread on our cPanel Forums and we'll see what we can figure out.

photo
1

Yes already have threads in here

photo
photo
1

Hi,

what is the current state (may 2018) ? Is it ready for production ? stable ?

photo
1

This is currently in the experiemental repo and isn't anticipated at release at this point, but if that changes we'll be back to let everyone know!

photo
photo
2

Hi Can you update the experimental repo to mod_spagespeed version 1.12.34.1 or later? the new version fixes a few issues

photo
4

Yup! Becuase this is experimental, I expect it will likely take a couple weeks to get the upgrade in place, but it's on the list now!

photo
photo
5

The ea-apache24-mod_pagespeed package has been updated to version 1.13.35.2! If you have this package installed, a 'yum update' will install it for you. If you're installing it for the first time, this is what you're looking for:

yum install ea4-experimental
yum install ea-apache24-mod_pagespeed

photo
3

For anyone running cloudlinux, the method is

yum install ea-apache24-mod_pagespeed --enablerepo=cl-ea4-experimental

photo
2

cl-ea4-experimental has pagespeed version has version 1.11.33.4-0 and not 1.13.35.2

I can confirm @benny ea4-experimental has pagespeed version 1.13.35.2 !

photo
1

version 1.13.35.2 is stable release ?

https://www.modpagespeed.com/doc/release_notes

photo
1

When will there be a stable release of mod_pagespeed for cpanel ?

photo
1

Moving this out of the experimental repo isn't planned at this time, so I can't give you an ETA, unfortunately. If that changes, we'll be back to let everyone know!

photo
1

i have used this experimental pagespeed for some times but i have to uninstall it coz some optimized images are not served and shows 404 error

photo
1

Thanks, can't wait to get it in the stable... :D

photo
1

What is the current status mod_pagespeed for cPanel ?

photo
1

If we install it via the command line in this manner, what happens on future configuration changes/provisions via easy apache on the WHM side?

photo
2

The RPM won't be removed until you remove it from your profile. If we later move it from experimental to production, the upgrade should be automatic and not require effort from you.

photo
1

Sounds good, thanks!

photo
1

@greatmen

you can overcome the issue with some scripting and cron calls

photo
1

Is there any plan on moving it to production ?

photo
1

Is it still expected before end of Q1?

photo
1

This should make Completed from Pre-Release from EasyApache Mar 25 Release.

EA-8527: Move out of experimental to production

photo
2

Unfortunately we've had to uninstall the experimental version lately. Sites getting tons of 404's (css, js, webp) all from mod pagespeed related assets. Sites that have worked on it for weeks/months/even a full year have now had issues.

photo
1

I've had issues recently too, it appeared that items modified by pagespeed were failing to be served etc. I then noticed the pagespeed admin gui wasnt working either.


The problem for me was that the expected /etc/apache2/conf.modules.d/ pagespeed conf file had changed from 456_pagespeed.conf to 510_pagespeed.conf and 456*.conf had been renamed to .rpmsave and the 510, the one the system is now loading was the generic one from a fresh installation.


Since I installed this module this is now the 3rd time the prefix number has changed. it started as 455, then 456 and now 510. So if you have issues since the start of this year check your conf files

photo
1

Did everything work again ok after you updated the config file? Was that the only issue?

photo
1

@Peter Armstrong Yes for me that was it. For whatever reason (maybe an update from cpanel?) the number at the start of the file changed again. The file the system put in place was a default one and my proper one was saved as a .rpmsave backup file.


If you conf files have done the same as mine that is all you should have to do to fix it (that and restart apache ofc)

photo
1

@cPanelTabby I take it this isn't ready just yet. It will appear in EasyApache > Apache Modules, when it is ready?

photo
1

I have tried to rename the config files appropriately, but still get lots of 404's due to assets not being available. Not immediately, but after a while of running. It's like the module thinks it generated the files, and puts the links to what it thinks it generated into the html, but those files don't actually exist or get served correctly.

photo
1

2 years and this is still not released ??

photo
2

@benny@cpanel.net when will this move to stabel repo ?

photo
1

Hey Thomas!

mod_pagespeed is currently in our stable repository. You can install it via the EasyApache 4 interface in the "Apache Modules" section.


8c3deb863204f155cca1be020f2fb842

photo
1

Hello, @cpaneladam I didnt want to start a brand new request for this but when will the pagespeed module be updated?


Release 1.14.36.1
This release published July 2020.


It would be really helpful if cpanel were able to keep the latest stable version in their modules for easy apache.

photo
1

Hey Greg!


I've passed this request along! You should see some movement on it soon.


Thanks for reaching out!

Adam

photo
1

Brilliant, thank you :)

I'm dying to have the Redis TTL feature !

photo
Leave a Comment
 
Attach a file