Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Pagespeed does not optimize static files and throws errors in Apache logs

 
apachecachecentoscentos 7debug

Symptoms

  • There are no optimized static files on the website with the Pagespeed Insights extension installed in Plesk:

    Browser DevTools (F12) -> Network tab shows normal files without changes in their names. For example, when checking website URL like this:

    https://example.com/?PageSpeedFilters=debug,rewrite_images,rewrite_css,rewrite_javascript:

  • CentOS 7 with kernel version 3.10.0-*** is installed on the server:

    # uname -msr
    Linux 3.10.0-957.1.3.el7.x86_64 x86_64

  • On website request, the following errors appear in /var/log/httpd/error.log

    [pagespeed:error] [pid 17686:tid 140535759107840] [mod_pagespeed 1.13.35.2-0 @17686] Failed to mkdir /var/cache/mod_pagespeed/ flush /jb9Xrf3F7w4hZ6Y_MmFT.outputlock: No such file or directory
    [pagespeed:error] [pid 17686:tid 140535759107840] [mod_pagespeed 1.13.35.2-0 @17686] Failed to mkdir /var/cache/mod_pagespeed/ flush /rc:rname/ic_2L-ZMDIrHfcg3SV5sQCm/http://203.0.113.2/favicon.ico@x@._: No such file or directory

  • On Apache restart the following [pagespeed] errors and warnings appear in /var/log/httpd/error.log:

    [pagespeed:error] [pid 4142:tid 139973393344640] [mod_pagespeed 1.13.35.2-0 @4142] Unable to create SHM segment [1]globalstatistics, mmap failed with errno=13.
    [pagespeed:warn] [pid 4142:tid 139973393344640] [mod_pagespeed 1.13.35.2-0 @4142] Problem during shared memory setup; statistics functionality unavailable.

    [pagespeed:error] [pid 4142:tid 139973393344640] [mod_pagespeed 1.13.35.2-0 @4142] Unable to create SHM segment [1]globalstatistics, mmap failed with errno=13.

  • /var/log/audit/audit.log contains denial messages like below:

    type=AVC msg=audit(1547191637.807:48051): avc: denied { map } for pid=26035 comm="httpd" path="/dev/zero" dev="devtmpfs" ino=1030 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:zero_device_t:s0 tclass=chr_file permissive=0
    type=SYSCALL msg=audit(1547191637.807:48051): arch=c000003e syscall=9 success=no exit=-13 a0=0 a1=48000 a2=3 a3=1 items=0 ppid=1 pid=26035 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)

Cause

CentOS 7 kernel bug #15680.

Resolution

As a workaround, until the issue is fixed permanently by CentOS team disable the SELinux on the server according to the following article:

How to enable/disable SELinux on a server

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »

Top Web Servers For Linux And Windows

Read More »
Knowledge Base

How to enable or disable the Google PageSpeed module in Nginx for a domain in Plesk?

Read More »

How to configure varnish cache for a domain in Plesk?

Read More »

How to enable core dumps for Apache and trace Apache segmentation fault on a Linux server

Read More »

How to enable leverage browser caching for nginx?

Read More »

Hosting Wiki

  • Server Redundancy
  • CacheFly
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Plesk
  • Apache Tomcat
  • Apache
  • Web Server
  • DNS Server
  • URL
  • Network Bandwidth
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family