• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Can not run CGI-BIN scripts Error 403

H.W.B

Regular Pleskian
Server operating system version
Ubuntu 22.04.2 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.52 Update #3
Hello,
I am trying to start a CGI-BIN script, but getting error 403.
There is NO .htaccess file!!
The log files shows :
[core:crit] (13)Permission denied: AH00529: /var/www/vhosts/dirkbartels.nl/httpdocs/cgi-bin/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/vhosts/dirkbartels.nl/httpdocs/cgi-bin/' is executable
So i searched for a solution for that.
Found https://support.plesk.com/hc/en-us/articles/12377826206231
Did the solution but no changes. Still the same error
Also found this : https://support.plesk.com/hc/en-us/...on-Catalog-script-not-found-or-unable-to-stat
Did this also, but also no change
I hope some one can help me to solve this

Henk
 
There should be an .htaccess file in /cgi-bin/. If there isn't any, add one. Then, show me the output of ls -la /var/www/vhosts/dirkbartels.nl/httpdocs/,
It's probably an issue with permissions. You can also just run plesk repair fs dirkbartels.nl and it'll probably fix it.
 
Hello,

I have added an empty .htaccess file, but the same error remains.
Here is the result of the output...

root@plesk:~# ls -la /var/www/vhosts/dirkbartels.nl/httpdocs/
total 16
drwxr-xr-x 3 dirkbartels.nl_px8lfmzbt4 psacln 4096 Jun 9 13:52 .
drwx--x--- 7 dirkbartels.nl_px8lfmzbt4 psaserv 4096 Jun 10 00:14 ..
drwxr-x--- 3 dirkbartels.nl_px8lfmzbt4 psacln 4096 Jun 10 16:16 cgi-bin
-rwxr-xr-x 1 dirkbartels.nl_px8lfmzbt4 psacln 464 Jun 3 13:00 index.html
root@plesk:~#
root@plesk:~# plesk repair fs dirkbartels.nl

Checking virtual hosts' file system ................................. [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0
 
Oh noes! Permissions seem fine. What's inside? ls -la /var/www/vhosts/dirkbartels.nl/httpdocs/cgi-bin/
 
root@plesk:~# ls -la /var/www/vhosts/dirkbartels.nl/httpdocs/cgi-bin/
total 68
drwxr-x--- 3 dirkbartels.nl_px8lfmzbt4 psacln 4096 Jun 10 16:16 .
drwxr-xr-x 3 dirkbartels.nl_px8lfmzbt4 psacln 4096 Jun 9 13:52 ..
-rwxr-xr-x 1 dirkbartels.nl_px8lfmzbt4 psacln 46932 Jun 9 14:23 backupsmanager.cgi
-rwxr-xr-x 1 dirkbartels.nl_px8lfmzbt4 psacln 5692 Jun 9 14:23 backupsmanager.pm
-rw-r--r-- 1 dirkbartels.nl_px8lfmzbt4 psacln 0 Jun 10 16:27 .htaccess
drwxr-xr-x 5 dirkbartels.nl_px8lfmzbt4 psacln 4096 Jun 9 14:23 modules
root@plesk:~#
 
Everything seems okay. Unless the file has ACLs for some reason, I can't think what might be the problem. I'd need to log in to check further.
 
Hello,
I found that Plesk is giving the CGI-BIN directory a chmod of 0750.
That is preventing executing all files.
When change this to 0755 it works.
When plesk creates a domain the CGI-BIN is standard 0750.
Is this a BUG??
Henk
 
Back
Top