cgi-bin perl scripts not working - heeeeelp please
Posted: Mon Apr 16, 2012 5:50 pm
Well, following what I thought was a successful migration, it turns out nothing in any of our hosted site's cgi-bin is working. trying to access any of them gives a 403 error and the following in the site's error_log:
(don't let the reference to .htaccess fool you -- this is a generic error. There is no .htaccess - the script I'm testing with is just a hello world script)
There's nothing in suexec.log
Just for once, the great god Google does not help me, nor does any KB.
If I chmod cgi-bin to 755 it works fine. However, this is not how it is supposed to be.
So this is some sort of permissions thing.
I do note suexec doesn't seem to be different to the default one:
There's another one in /usr/local/psa/suexec that's a different size:
In the old days, I seem to remember there were problems with the plesk-centric suexec being overwritten when suexec got updated by yum, and you were supposed to copy it back from somewhere.
I'm wondering if the psa-suexec should be copied over to /usr/sbin/suexec?
Can someone check the sizes of theirs for me please? I'm on EL6 x86_64 with Plesk 10.4.4 MU26
And any other suggestions would be appreciated!!!!!
Code: Select all
(13)Permission denied: /home/httpd/vhosts/domain.tld/cgi-bin/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
There's nothing in suexec.log
Just for once, the great god Google does not help me, nor does any KB.
Code: Select all
drwxr-x--- 2 ftpuser psacln 4096 Apr 16 22:33 cgi-bin
Code: Select all
# ls -al
total 16
drwxr-x--- 2 ftpuser psacln 4096 Apr 16 22:33 .
drwxr-xr-x 21 root root 4096 Apr 13 22:51 ..
-rwxr-xr-x 1 ftpuser psacln 90 Apr 16 22:10 hw.cgi
-rwxr-xr-x 1 ftpuser psacln 90 Apr 16 22:33 hw.pl
So this is some sort of permissions thing.
I do note suexec doesn't seem to be different to the default one:
Code: Select all
]# ls -al /usr/sbin/suexec*
-r-s--x--- 1 root apache 27280 Nov 2 12:52 /usr/sbin/suexec
-r-s--x--- 1 root apache 27280 Nov 2 12:52 /usr/sbin/suexec.saved_by_psa
Code: Select all
# ls -al /usr/local/psa/suexec/psa-suexec
-r-s--x--- 1 root apache 24648 Nov 2 12:52 /usr/local/psa/suexec/psa-suexec
I'm wondering if the psa-suexec should be copied over to /usr/sbin/suexec?
Can someone check the sizes of theirs for me please? I'm on EL6 x86_64 with Plesk 10.4.4 MU26
And any other suggestions would be appreciated!!!!!