Tassos Voulgaris
New Pleskian
I have recently upgraded to Apache 2.4 and I am experiencing a strange problem. Every page in my Wordpress site works fine, except the homepage , which getS downloaded instead of displaying (with a filename of download)...
Before the update everything was working fine.
Other sites on the same server work fine
my .htaccess is pretty standard
I have mod_rewrite enabled in apache
PHP 7.0.27 is properly configured and runs as FPM application
Nothing in the logs indicates an error...
Permissions are file owner are OK
apache2.conf:
And this is my vhosts file (the server is running plesk Onyx)
I am very confused that only the homepage is not working...
Any ideas are welcome...
apache-2.4
Before the update everything was working fine.
Other sites on the same server work fine
my .htaccess is pretty standard
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
I have mod_rewrite enabled in apache
PHP 7.0.27 is properly configured and runs as FPM application
Nothing in the logs indicates an error...
Permissions are file owner are OK
apache2.conf:
Code:
# Global configuration
#ServerRoot "/etc/apache2"
#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
#Mutex file:${APACHE_LOCK_DIR} default
#
# The directory where shm and other runtime files will be stored.
#
DefaultRuntimeDir ${APACHE_RUN_DIR}
#
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300
#
#
KeepAlive On
#
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
#
# nameserver.
#
HostnameLookups Off
#
ErrorLog ${APACHE_LOG_DIR}/error.log
#
# "LogLevel info ssl:warn"
#
LogLevel warn
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# Include list of ports to listen on
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
GracefulShutDownTimeout 3
AddOutputFilter INCLUDES .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
And this is my vhosts file (the server is running plesk Onyx)
Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/inverse.gr/conf/vhost.conf
#/var/www/vhosts/system/inverse.gr/conf/vhost_ssl.conf
<IfModule mod_ssl.c>
<VirtualHost 144.76.223.14:443 >
ServerName "inverse.gr:443"
ServerAlias "www.inverse.gr"
ServerAlias "ipv4.inverse.gr"
ServerAdmin "[email protected]"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/inverse.gr/httpdocs"
CustomLog /var/www/vhosts/system/inverse.gr/logs/access_ssl_log plesklog
ErrorLog "/var/www/vhosts/system/inverse.gr/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "inverse" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/inverse.gr/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "b9587784-d4aa-4551-b86f-d48ec21cbee5"
</IfModule>
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/certuYzLuU6
TimeOut 60
<Directory /var/www/vhosts/inverse.gr/httpdocs>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/inverse.gr/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
SSLRequireSSL
Options -Includes -ExecCGI
</Directory>
Alias /error_docs /var/www/vhosts/inverse.gr/error_docs
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
ErrorDocument 405 /error_docs/method_not_allowed.html
ErrorDocument 406 /error_docs/not_acceptable.html
ErrorDocument 407 /error_docs/proxy_authentication_required.html
ErrorDocument 412 /error_docs/precondition_failed.html
ErrorDocument 414 /error_docs/request_uri_too_long.html
ErrorDocument 415 /error_docs/unsupported_media_type.html
ErrorDocument 501 /error_docs/not_implemented.html
ErrorDocument 502 /error_docs/bad_gateway.html
ErrorDocument 503 /error_docs/maintenance.html
IncludeOptional "/opt/psa/admin/conf/file_sharing.conf*"
IncludeOptional "/var/www/vhosts/system/inverse.gr/conf/siteapp.d/*.conf"
DirectoryIndex "index.html" "index.cgi" "index.pl" "index.php" "index.xhtml" "index.htm" "index.shtml"
<Directory /var/www/vhosts/inverse.gr>
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCGI,Includes,IncludesNOEXEC
</Directory>
<IfModule mod_headers.c>
</IfModule>
#extension wp-toolkit begin
<Files wp-config.php>
Require all denied
</Files>
<Directory "/var/www/vhosts/inverse.gr/httpdocs/israel1stclass">
Options -Indexes
</Directory>
<Directory "/var/www/vhosts/inverse.gr/httpdocs/is">
Options -Indexes
</Directory>
#extension wp-toolkit end
</VirtualHost>
</IfModule>
<VirtualHost 144.76.223.14:80 >
ServerName "inverse.gr:80"
ServerAlias "www.inverse.gr"
ServerAlias "ipv4.inverse.gr"
ServerAdmin "[email protected]"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/inverse.gr/httpdocs"
CustomLog /var/www/vhosts/system/inverse.gr/logs/access_log plesklog
ErrorLog "/var/www/vhosts/system/inverse.gr/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "inverse" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/inverse.gr/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "b9587784-d4aa-4551-b86f-d48ec21cbee5"
</IfModule>
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
TimeOut 60
<Directory /var/www/vhosts/inverse.gr/httpdocs>
<IfModule mod_proxy_fcgi.c>
<Files ~ (\.php$)>
SetHandler proxy:unix:///var/www/vhosts/system/inverse.gr/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
Options -Includes -ExecCGI
</Directory>
Alias /error_docs /var/www/vhosts/inverse.gr/error_docs
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
ErrorDocument 405 /error_docs/method_not_allowed.html
ErrorDocument 406 /error_docs/not_acceptable.html
ErrorDocument 407 /error_docs/proxy_authentication_required.html
ErrorDocument 412 /error_docs/precondition_failed.html
ErrorDocument 414 /error_docs/request_uri_too_long.html
ErrorDocument 415 /error_docs/unsupported_media_type.html
ErrorDocument 501 /error_docs/not_implemented.html
ErrorDocument 502 /error_docs/bad_gateway.html
ErrorDocument 503 /error_docs/maintenance.html
IncludeOptional "/opt/psa/admin/conf/file_sharing.conf*"
IncludeOptional "/var/www/vhosts/system/inverse.gr/conf/siteapp.d/*.conf"
DirectoryIndex "index.html" "index.cgi" "index.pl" "index.php" "index.xhtml" "index.htm" "index.shtml"
<Directory /var/www/vhosts/inverse.gr>
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCGI,Includes,IncludesNOEXEC
</Directory>
<IfModule mod_headers.c>
</IfModule>
#extension wp-toolkit begin
<Files wp-config.php>
Require all denied
</Files>
<Directory "/var/www/vhosts/inverse.gr/httpdocs/israel1stclass">
Options -Indexes
</Directory>
<Directory "/var/www/vhosts/inverse.gr/httpdocs/is">
Options -Indexes
</Directory>
#extension wp-toolkit end
</VirtualHost>
I am very confused that only the homepage is not working...
Any ideas are welcome...
apache-2.4