Hello Geeks, .... :shock:
Can anyone tell me as to how do i go abt running perl scripts on apache installed in a debian distro
I have installed mod_perl for apache and also installed php4 with it....now php4 worked well
perl seems to giving me problems like an internal error....
I HAVE configured ScriptAlias in the apache2.conf file as:.....
ScriptAlias /cgi-trials/ /usr/share/apache2/default-site/cgi-bin/
AddHandler cgi-script .cgi .pl
ALSO the error.log tells me this:.....
[Sat Aug 27 17:45:07 2005] [notice] Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-15 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Aug 27 17:46:05 2005] [error] [client 127.0.0.1] (8)Exec format error: exec of '/usr/share/apache2/default-site/cgi-bin/perl_trial.pl' failed
[Sat Aug 27 17:46:05 2005] [error] [client 127.0.0.1] Premature end of script headers: perl_trial.pl[Sat Aug 27 17:46:05 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
Don't know exactly what this means.... :roll:
Another thing is that when i type http://localhost/cgi-trials/ on my browser it gives me 503 permission denied kinda errors. ... now how do i set permissions to make it more customised....!!
If someone could please help me with this it will be of great help to me
Thanks a lot in advance....
Don Bosco Institute of Technology, Mumbai
Check if your script can be executed by Apache
Here is a sample script to put in your cgi-bin directory.
print "Content-type: text/html\n\n";
print "Hello, world";
The post is outdated but it could maybe help somebody else.