PDA

View Full Version : cgi not working



chow
12-03-2003, 02:29 PM
Hi,

I have a useraccount on which cgi scripts are not working. Getting a permission denied (403) We uploaded in ascii, chmod to 755 or even 777 but problem is not solved. We tried several scripts but all of them give same error. Any clue on what's wrong??

Thnx

DirectAdmin Support
12-04-2003, 10:55 AM
Hello,

1) cgi-bin directory must be 755
2) cgi file must be 755
3) everything must be owned by the user, and not root (or anyone else)

check the /var/log/httpd/suexec_log for more details

If all that fails, try manually running the script:
cd /home/username/domains/domain.com/public_html/cgi-bin
./script.cgiWhich will gerally give you why the script wasn't running if all of the above are ok.

John