# Security
ServerTokens OS
ServerSignature On
TraceEnable On
ServerName "machine3.puphpet"
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
LimitRequestFieldSize 8190
User www-data
Group www-data
AccessFileName .htaccess
#<FilesMatch "^\.ht">
# Require all denied
#</FilesMatch>
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
HostnameLookups Off
ErrorLog "/var/log/httpd/error_log"
LogLevel warn
EnableSendfile Off
#Listen 80
Include "/etc/httpd/conf.d/*.load"
Include "/etc/httpd/conf/ports.conf"
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" forwarded
<VirtualHost *:80>
ServerName 127.0.0.1
#ServerAdmin webmaster@server.ru
DocumentRoot /var/www/html
</VirtualHost>
IncludeOptional "/etc/httpd/conf.d/*.conf"
LoadModule php7_module modules/libphp7.so
Server version: Apache/2.4.23 (CentOS)
Server built: Jul 22 2016 09:10:31
$ apachectl -M
httpd: Syntax error on line 57 of /etc/httpd/conf/httpd.conf: Cannot load modules/libphp7.so into server: /etc/httpd/modules/libphp7.so: cannot open shared object file: No such file or directory