Configure Apache2 to allow clients to run Perl Scripts in cgi-bin
If they are receiving 404, it means that the file does not even exist in the correct location. In the httpd.conf look for the "ScriptAlias" directive that has an entry for cgi-bin, should be something like
ScriptAlias /cgi-bin/ /some_folder/cgi-bin
Once you know the correct folder, the 404 error should go away.
Two other points -
1. For cgi files, ensure that the execute bit is set.
2. Verify that the location of perl matches the one in the perl script.
How can I configure Apache to run Perl CGI scripts?
What type of scripts? CGI? FastCGI? mod_perl? The steps are different.
- http://httpd.apache.org/docs/2.2/howto/cgi.html
- http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html
- http://perl.apache.org/docs/2.0/user/intro/start_fast.html
Related Topics
How Many Socket Connections Possible
Is There a "Goto" Statement in Bash
Bash While Read Loop Extremely Slow Compared to Cat, Why
How to Replace Spaces in File Names Using a Bash Script
How Are the Fs/Gs Registers Used in Linux Amd64
Expanding a Bash Array Only Gives the First Element
How to Know the Script File Name in a Bash Script
How to Access Physical Addresses from User Space in Linux
Asynchronous Io Io_Submit Latency in Ubuntu Linux
Performing Http Requests With Curl (Using Proxy)
Appending a Line to a File Only If It Does Not Already Exist
Sorting Multiple Keys With Unix Sort
Linux Default Behavior of Executable .Data Section Changed Between 5.4 and 5.9
How to Ensure Only One Instance of a Bash Script Is Running
Exit Code of Variable Assignment to Command Substitution in Bash