Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 19, 2025, 03:45 AM

Title: Website on Plesk for Linux server with Apache 2.4 does not work with Apache 2.2
Post by: Suhitha on Dec 19, 2025, 03:45 AM
Applicable to:



Symptoms


                                      Checking in Plesk interface

In Plesk in Tools & Settings > Server Components, the Apache version is shown as 2.4:

(https://pix.cobrasoft.org/images/2025/12/19/border_plus_screenshot.1.png)


                                            Checking in CLI


In the server shell, the output of the following command is not empty:

# grep Order /var/www/vhosts/example.com/httpdocs/.htaccess


[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/


Cause

Apache 2.4 is installed on the server, but the file .htaccess contains authorization and authentication entries with syntax from the 2.2 version.


Resolution


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.


                                        In Plesk interface
1.Log into Plesk.

2.Go to Domains > example.com > File Manager and click on the name of the file .htaccess.

3.Replace the directives as follows:


Order allow,deny
Allow from all


Require all granted
4.Click OK or Apply to save the changes.


                                                Directly on the server

1.Connect to the server using SSH.

2.Open the file /var/www/vhosts/example.com/httpdocs/.htaccess for editing.

3.Change the following entries:

Order allow,deny
Allow from all
to

Require all granted
Note: See all possible collisions between Apache 2.2 and 2.4 configuration syntax in Apache official documentation.


Additional Information

Apache HTTP Server Version 2.4 Documentation - Upgrading to 2.4 from 2.2

Website is not accessible: 403 Forbidden AH01797: client denied by server configuration