Add a second <Directory> block for the cgi-bin directory. In that block, in the options, add ExecCGI as an option. Todd Lyons on this list helped me with this the other day and I am happy to pass it on. If you need a copy of mine, I can get it for you when I get back to my normal work location.
Carter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Benjamin Pflugmann Sent: Wednesday, February 12, 2003 2:31 PM To: [EMAIL PROTECTED] Subject: Re: [expert] permissions for a cgi script On Thu 2003-02-06 at 22:08:29 -0600, [EMAIL PROTECTED] wrote: [...] > <VirtualHost 192.168.1.103> > ServerName www.xxx.com > DocumentRoot /usr/www/vtest/htdocs > ScriptAlias /cgi-bin/ "/usr/www/vtest/cgi-bin/" > <Directory /usr/www/vtest/htdocs> > Options Indexes MultiViews > AllowOverride None > Order allow,deny > Allow from all > </Directory> > </VirtualHost> This looks OK, I think. > When I go to the default file on the domain it works. When I try to > go to www.xxx.com/cgi-bin/cgihello.plx I get the following message: > > "You don't have permission to access /cgi-bin/cgihello.plx on this > server." What does the error log say (should be /var/log/httpd/error_log)? > chmod was used to set the directory and file as follows: > > directory: drwxr-xr-x > cgi-file: -rw-r--r-x Please show the whole line from ls -l /usr/www/vtest/cgi-bin/cgihello.plx One thing that is unusual: You don't have given executable rights to user or group. If the web server is in the in the group, it won't be allowed to execute the file. HTH, Benjamin.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
