Results 1 to 2 of 2
Hello Geeks, ....
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 ...
- 08-28-2005 #1Just Joined!
- Join Date
- Aug 2005
- Location
- Mumbai
- Posts
- 12
apache mod_perl
Hello Geeks, ....
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/
<Directory "/usr/share/apache2/default-site/cgi-bin">
Options +ExecCGI
</Directory>
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] (
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....
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....
Savio Monteiro
Student
Don Bosco Institute of Technology, Mumbai
- 12-29-2006 #2Just Joined!
- Join Date
- Dec 2004
- Location
- Lausanne - Switzerland
- Posts
- 6
Hi,
Check if your script can be executed by Apache
Here is a sample script to put in your cgi-bin directory.
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "Hello, world";
The post is outdated but it could maybe help somebody else.


Reply With Quote