Hello....
Quote:
I wrote a simple perl script (hello world) and put it into /usr/lib/cgi-bin.if i try to see the output by giving http://localhost/cgi-bin/hello.pl.,a new window opened and asking whether i want to save the file to disk or open it using any application.In errorlog there is no entry.I am a starter.forgive me for asking stupid qns like this.
|
Ok....So if your httpd.conf has an entry like the line below .....
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
That means, it is aliasing the /cgi-bin directory to /usr/local/apache2/cgi-bin/
1. You can do one thing.....move your cgi-bin directory to the root directory (/cgi-bin)
and also check for the permissions too ..make sure they are set to 755
OR
2. As an Alternate way, you can change the default cgi-bin directory path to /usr/lib/cgi-bin ...this way, your ScriptAlias line will look like this..
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"
However, I recommend that you follow step (1)....
Regards,
amit