The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_pagespeed errors

Discussion in 'EasyApache' started by Bashed, Jun 28, 2017.

Tags:
  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    100
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Enabled mod_pagespeed in EA4 (on CloudLinux)

    Rapid logging in apache logs like the below, what's the fix?

    Code:
    Failed to make directory /var/mod_pagespeed/cache/rname: Permission denied
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. opt2bout

    opt2bout Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    156
    Just an FYI, in the latest CURRENT (64) build, mod_pagespeed will install and operate after you make a few post-installation changes:

    chgrp nobody /var/mod_pagespeed/
    chmod g+w /var/mod_pagespeed/

    EA4 creates the pagespeed cache directory, but assigns ownership to root (which doesn't work for our configuration with apache running as nobody).

    As noted on Github, the pagespeed.conf file is located in /etc/apache2/conf.modules.d/456_pagespeed.conf

    We are running Apache, HTTP2, MPM Event, and PHP-FPM/FastCGI from the EA4 install and things are working.

    BTW build 33 updates the apache vhost templates to correct for the .user.ini directory traversal so no longer need to create .local overrides
     
Loading...

Share This Page