Jump to content

Problem with running perl on apache


ivytony

Recommended Posts

OK, I have this file on my server http://www.rcholic.com/cgi-bin/uu_upload.pl

 

However, when I try to run it in the browser (firefox 3), I got 404 error:

 

Not Found

 

The requested URL /cgi-bin/uu_upload.pl was not found on this server.

 

However, I have the following code in the virtual host in httpd.conf

 

ScriptAlias  /cgi-bin/  /home/rchol/public_html/cgi-bin

<Directory /home/rchol/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>

 

The cgi-bin folder and its subfolder & files are all chmod to 755, and the ownership is correct.

 

I wonder what could be wrong  ??? ???. I appreciate your reply

 

 

Link to comment
https://forums.phpfreaks.com/topic/128576-problem-with-running-perl-on-apache/
Share on other sites

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias

 

 

(ScriptAlias is similar to Alias.)

 

"Note that if you include a trailing / on the url-path then the server will require a trailing / in order to expand the alias. That is, if you use

 

Alias /icons/ /usr/local/apache/icons/

then the url /icons will not be aliased."

 

 

 

Try making your slashes on the ScriptAlias directive match up.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.