Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mod_pagespeed installation has caused issues with all sites on server

Discussion in 'EasyApache' started by David_spm, Dec 21, 2017.

Tags:
  1. David_spm

    David_spm Active Member

    Joined:
    May 28, 2017
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thailand
    cPanel Access Level:
    Root Administrator
    A couple of weeks ago I managed to upgrade from EA3 to EA4 as well as install and setup PHP 7 on my dedicated CentOS 6.9 LAMP server. I didnt get any issues from any of my sites with PHP 7 or EA4.

    Some days later on the 12th or 13th I installed mod_pagespeed, I think I may have used this guide:

    - Removed -

    I was not able to get the browser admin reports to work and only looked briefly at the configuration.

    In the last week though Ive noticed some of our sites to become very slow and sluggish and then I have people in our team report that they would often get a 404 when they hit the publish button when trying to post a new blog post and/or images could not be inserted into posts.

    A few sites hardly load at all and mostly show 500 erros now and Ive just taken a look at the Google Analytics report for one site and the traffic crashed around the 13th so Im pretty sure its mod_pagespeed.

    These are the commands I ran back then to install it:

    Code:
    9097  Wed 13 Dec 2017 08:56:00 PM EST: yum install rpm-build cpio ea-apache24-mod_version
     9098  Wed 13 Dec 2017 09:00:58 PM EST: yum update && upgrade
     9099  Wed 13 Dec 2017 09:01:33 PM EST: yum install rpm-build cpio ea-apache24-mod_version
     9100  Wed 13 Dec 2017 09:04:46 PM EST: wget https://github.com/Prajithp/cPanel_Mod_PageSpeed/blob/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
     9101  Wed 13 Dec 2017 09:04:55 PM EST: pwd
     9102  Wed 13 Dec 2017 09:04:57 PM EST: ls
     9103  Wed 13 Dec 2017 09:05:30 PM EST: rpmbuild --rebuild ea-apache24-mod_pagespeed-1.9-32.11.src.rpm
     9104  Wed 13 Dec 2017 09:05:57 PM EST: rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
     9105  Wed 13 Dec 2017 09:09:58 PM EST: yum install ea4-experimental
     9106  Wed 13 Dec 2017 09:10:17 PM EST: htop
     9107  Wed 13 Dec 2017 09:11:25 PM EST: yum --disablerepo="*" --enablerepo="EA4-experimental" list available
     9108  Wed 13 Dec 2017 09:12:48 PM EST: yum install ea-apache24-mod_pagespeed
     9109  Wed 13 Dec 2017 09:13:31 PM EST: service httpd restart
    
    what have I done wrong there?

    I know I can remove mod_pagespeed with 'yum remove ea-apache24-mod_pagespeed' but I want to make sue that everything is cleanly removed and reverted back to how it was before so any feedback would be greatly appreciated.
     
    #1 David_spm, Dec 21, 2017
    Last edited by a moderator: Dec 21, 2017
  2. David_spm

    David_spm Active Member

    Joined:
    May 28, 2017
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thailand
    cPanel Access Level:
    Root Administrator
    I went ahead and removed those things but it hasnt helped and I have various sites down still so Ive opened a ticket.

    support request ID - 9127479

    case number - 614a14a114126120
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, it looks like the configuration path utilized for Mod_Pagespeed was not updated to reflect the new location for EasyApache 4. Can you verify how you installed the module? Note this should not happen when using the EA4 experimental PageSpeed module. We provide installation instructions on it at:

    Add support for mod_pagespeed to easyapache4

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. David_spm

    David_spm Active Member

    Joined:
    May 28, 2017
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thailand
    cPanel Access Level:
    Root Administrator
    Thanks, I submitted a ticket and was told this was the problem due to the fact that many crucial .js files have been minified. I have removed mod_pagespeed (fully I think) but the issue is still there as all those .js files have been changed to .min so I will need to install it again and make sure I do the setup correctly this time?

    I believe this is the guide I followed before:

    - Removed-
     
    #4 David_spm, Dec 28, 2017
    Last edited by a moderator: Dec 29, 2017
  5. David_spm

    David_spm Active Member

    Joined:
    May 28, 2017
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thailand
    cPanel Access Level:
    Root Administrator
    OK so I have now followed your own guide for installing ea4-experimental and a-apache24-mod_pagespeed and checked that the conf file is present (not made any changes to it though) and restarted httpd but Im still getting the same problems with all my sites on the server such as :

    Media uploader not working, cant insert images into content, dev tools complains about certain js files missing and/or /admin-ajax.php being missing but the file is there and where it should be. This is happening on all sites across the server.

    Cant publish posts on some sites, directs to a 404 page when hitting the publish button, can save drafts though. No errors reported in chrome dev tools for this though.

    Also /car/log/apache2/error_log is full of complaints related to mod_pagespeed and for all sites it seems eg

    Code:
    [Fri Dec 29 04:17:01.775166 2017] [pagespeed:error] [pid 31102:tid 139913957693184] [mod_pagespeed 1.11.33.4-0 @31102] Could not create directories for file /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/wp-content/themes/genesis/images/favicon.ico,.temp
    [Fri Dec 29 04:17:01.775186 2017] [pagespeed:error] [pid 31102:tid 139913957693184] [mod_pagespeed 1.11.33.4-0 @31102] /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/wp-content/themes/genesis/images/favicon.ico,.temp2UKvjw:0: opening temp file: No such file or directory
    [Fri Dec 29 04:18:22.648406 2017] [pagespeed:error] [pid 32173:tid 139914010142464] [mod_pagespeed 1.11.33.4-0 @32173] Could not create directories for file /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/feed/,.temp
    [Fri Dec 29 04:18:22.648424 2017] [pagespeed:error] [pid 32173:tid 139914010142464] [mod_pagespeed 1.11.33.4-0 @32173] /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/feed/,.tempM047P1:0: opening temp file: No such file or directory
    [Fri Dec 29 04:18:22.648562 2017] [pagespeed:error] [pid 32173:tid 139914010142464] [mod_pagespeed 1.11.33.4-0 @32173] Could not create directories for file /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/feed/,.temp
    [Fri Dec 29 04:18:22.648600 2017] [pagespeed:error] [pid 32173:tid 139914010142464] [mod_pagespeed 1.11.33.4-0 @32173] /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/feed/,.tempVsBPsr:0: opening temp file: No such file or directory
    [Fri Dec 29 04:18:22.648747 2017] [pagespeed:error] [pid 32173:tid 139914010142464] [mod_pagespeed 1.11.33.4-0 @32173] Could not create directories for file /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/feed/,.temp
    [Fri Dec 29 04:18:22.648760 2017] [pagespeed:error] [pid 32173:tid 139914010142464] [mod_pagespeed 1.11.33.4-0 @32173] /var/mod_pagespeed/cache/v3/example.com/http,3A/,2Fwww.example.com/feed/,.tempMzfy5Q:0: opening temp file: No such file or directory
    
     
    #5 David_spm, Dec 29, 2017
    Last edited by a moderator: Dec 29, 2017
  6. David_spm

    David_spm Active Member

    Joined:
    May 28, 2017
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thailand
    cPanel Access Level:
    Root Administrator
    ...and seeing as this is all experimental and not stable right now is there a way I can roll all this back instead?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    That's correct. It's still considered experimental at this time. To uninstall it, you'd run the following command:

    Code:
    yum remove ea-apache24-mod_pagespeed
    Check to see if the information on the following thread is relevant to these issues:

    Failed to make directory Permission denied

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice