Tag Archives: httpd

[access_compat:error] [pid 28167:tid 140515211155200] [client xx.xx.xx.xx:37918] AH01797: client denied by server configuration: /var/www/html/

Forbidden You don’t have permission to access / on this server

You should check directory permissions: namei -l /var/www/html/, if permissions are fine you need check virtual host configuration if there are no such options like ‘Deny from all’, if virtual host fine, you need search for .htaccess like this: find / -type f -name .htaccess

Primary script unknown error in php-fpm httpd rewrite

If you had something like this:
ProxyPassMatch “^/(.*\.php(/.*)?)$” “unix:/var/run/php-fpm/php.sock|fcgi://localhost/some/path” enablereuse=on

Advice is to change to SetHandler:


<Directory "/some/path">
<FilesMatch \.php$>
ProxyErrorOverride on
SetHandler "proxy:unix:/path/to/sock/php.sock|fcgi://localhost"
</FilesMatch>
</Directory>

pagespeed diredtacmin


wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
rpm -i --nodeps mod-pagespeed-stable_current_x86_64.rpm

vi /etc/httpd/conf/extra/httpd-includes.conf
Include /etc/httpd/conf.d/pagespeed.conf
vi /etc/httpd/conf/httpd.conf
# Include conf/extra/httpd-deflate.conf

service httpd restart

apachectl -t -D DUMP_MODULES | grep speed