mkmls
05-26-2002, 01:03 PM
I can't run my cgi script. I got the "Error 403:Forbidden - You do not have a permission to execute the files xxx.cgi on this server." I've already chmod 777 to the cgi files but still can't run. Anyone, pls ....
|
Click to See Complete Forum and Search --> : permission denied mkmls 05-26-2002, 01:03 PM I can't run my cgi script. I got the "Error 403:Forbidden - You do not have a permission to execute the files xxx.cgi on this server." I've already chmod 777 to the cgi files but still can't run. Anyone, pls .... drDigital 05-31-2002, 01:04 PM try "chmod +x filename" that will make the file executable :rolleyes: chikn 05-31-2002, 01:41 PM Whats the distro. If its Mandrake or Prolly even Redhat would be like this. There are these lines in the /etc/httpd/conf/commonhttpd.conf file, somwhere around 680. They will look like this <Directory /var/www/cgi-bin> AllowOverride All Options ExecCGI </Directory> <Directory /var/www/protected-cgi-bin> AllowOverride None Options ExecCGI Order deny,allow Deny from all Allow from 127.0.0.1 I always change them to this: <Directory /var/www/cgi-bin> AllowOverride All Options ExecCGI Allow from all </Directory> <Directory /var/www/protected-cgi-bin> AllowOverride None Options ExecCGI Order deny,allow Allow from all # Allow from 127.0.0.1 It does however have some very small security risks as does with any cgi-bin. And reload apache after you make changes. [ 31 May 2002: Message edited by: chikn ] mkmls 06-03-2002, 02:14 PM thanks guy ! justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |