• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Apache 2.4 Problem

lazenes

New Pleskian
Server operating system version
Centos 7
Plesk version and microupdate number
Plesk Obsidian Web Host Edition Versiyon 18.0.42 #1
This is bullshit, I can't run the script that works in 2.2 with version 2.4, the server is officially paralyzed
AH01797: client denied by server configuration: /var/www/vhosts/sitem.com.tr/sitem.com.tr/upload/api/data/config.dat

My Htaccess file

Apache config:
Options -Indexes
DirectoryIndex index.php index.html index.htm
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] 
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    RewriteRule .* index.php [F]
    RewriteCond %{REQUEST_URI} !^/index\.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/(.*)/ index.php?file=$2 [L] 
</IfModule>
<files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt|dat)$">
deny from all
</files>
<files add.php>
allow from all
</files>
<files index.php>
allow from all
</files>
<files login.php>
allow from all
</files>
<files debug.php>
allow from all
</files>
<files api.php>
allow from all
</files>
<files proccess.php>
allow from all
</files>
<files log.txt>
deny from all
</files>
<files ~ "^\.">
deny from all
</files>
 
hello @lazenes ,

there's too few information to say something.
what is the error you faced ?
details about your script will probably needed too.

if your site is down and this is very critical, probably it will be more effective to contact your provider support.
Or you can contact Plesk Technical support directly.
 
From the looks of it, you have disabled access to all .dat files:

<files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt|dat)$">
deny from all
</files>
that didn't work either

Code:
<files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt)$">
deny from all
</files>
 
Did you check if fail2ban has banned your ip-address?

Also, where is the httpdocs in the path?
Code:
/var/www/vhosts/sitem.com.tr/sitem.com.tr/upload/api/data/config.dat
 
Last edited:
Removing the dat file extension from the File directive should make .dat files accessible. If it's not, make sure there are no other htaccess files in other directories (for example in the upload, api or data directories).

Also, where is the httpdocs in the path?
OP may have an alternative document root set. Or it's an additional domain added to the subscription.
 
You can enable the Apache handlers via:
Tools & Settings -> PHP Settings

If that doesn't work, enable Proxy mode in the subscription settings. This can be found in Apache & nginx Settings -> Proxy mode
 
Last edited:
Back
Top