- Plesk for Linux
Apache 2.4 is installed on a Plesk for Linux server:Checking in Plesk interfaceChecking in CLI
For RHEL-based operating systems (CentOS, RHEL, CloudLinux):
# rpm -qa | grep httpd
For Debian and Ubuntu:
# dpkg -l | grep apache2
ii apache2 2.4.18-2ubuntu3.8 amd64 Apache HTTP Server
Ordercan be found in the file
/var/www/vhosts/example.com/httpdocs/.htaccesswhen opening it in Plesk in Domains > example.com > File Manager.
In the server shell, the output of the following command is not empty:
# grep Order /var/www/vhosts/example.com/httpdocs/.htaccess
The following error can be found in the domain's error log - either in Plesk in Domains > example.com > Logs or directly on the server in the file
CONFIG_TEXT: [access_compat:error] [pid 13317:tid 140073563543296] [client 203.0.113.2:51234] AH01797: client denied by server configuration: /var/www/vhosts/example.com/httpdocs/
Also, the error 403 can be shown on the website, or just a blank page can be shown.
Apache 2.4 is installed on the server, but the file
.htaccess contains authorization and authentication entries with syntax from the 2.2 version.
Note: This article is intended for use by server administrators. In case there is no administrative access to the Plesk interface or administrative SSH access to the server, contact the server administrator or server provider.
Go to Domains > example.com > File Manager and click on the name of the file
Replace the directives as follows:
CONFIG_TEXT: Order allow,deny
Allow from all
CONFIG_TEXT: Require all granted
Click OK or Apply to save the changes.
Note: See all possible collisions between Apache 2.2 and 2.4 configuration syntax in Apache official documentation.