Feb 13, 2014, 7:06 AM
The config looks good, with 1 exception (approx line 134).
Re: [rammohan] How to run cgi script on apache server
<Directory "/usr/local/apache2/htdocs"> That second (incomplete) statement needs to be removed.
Was apache restarted after making the last set of changes to the conf file? If not, you'll need to do a restart to have those changes take affect.
What are the file permissions for the script? Does the web server user have rights to the script?
Reset the permissions:
chmod 755 /usr/local/apache2/cgi-bin/first.pl
Change your script to this:
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
If it fails, post the complete error message it returns to the browser.
(This post was edited by FishMonger on Feb 13, 2014, 7:09 AM)