-
unable to access cgi scripts in apache
I have installed redhat 7.3 with apache configuered, I placed my cgi web scripts in the /var/www/cgi-bin, I can access the cgi scripts on the server, but I can't access on another computer's browser, it states that I don't have permission to access the cgi scripts in the cgi-bin directory, any guidance?
-
If you find out, please tell me. I have the same problem.
I used to run a webmail script without any problem, but following a hacking, I redid the server and I just can't get a guestbook script to work.
The apache version is different - 1.3.23 now. don't remember the version before, but the conf files were the old arrangement.
nigel
hiroshima
linux counter #208272
-
Check your httpd.conf for the line:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
Check you script location /var/www/cgi-bin/ ownership and is 755
software design -- solving a problem by interconnecting simpler tools, rather than creating large monolithic application programs.
--------------------------------------------
Database Software
-
Thanks for the help
Originally posted by blizz
Check your httpd.conf for the line:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
its there in commonhttpd.conf, which is included from httpd.conf
Check you script location /var/www/cgi-bin/ ownership and is 755
yep it's there with owner apache, and its 755
any more ideas?
nigel
hiroshima
linux counter #208272
-
Verify these lines in your httpd.conf file are uncommented meaning remove the # symbol in front of them.
AddHandler cgi-script .cgi .pl
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
----------------------------------------------
you can add a ScriptAlias directly to your vhost like so -
<VirtualHost xx.xx.xx.xxx>
DocumentRoot /var/www/html/
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
</VirtualHost>
The cgi-bin directory needs to be chmod 755 (if apache runs as nobody) so cgi-bin is browsable. your script must be755 (executable).
software design -- solving a problem by interconnecting simpler tools, rather than creating large monolithic application programs.
--------------------------------------------
Database Software
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|