You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Eric GRAMMATICO <e....@gmail.com> on 2006/06/14 17:42:47 UTC

the perl scripts are not executed on server side

 A trivial question I hope.

I wrote the perl script rocks.pl:

#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "mod_perl 2.0 rocks!\n";


When I connect to http://localhost/perl/rocks.pl the browser shows the
source code. I believe I have a miss configuration somewhere, but I
didnt find. Here is the alias part of my /etc/httpd/conf.d/perl.conf:

Alias /perl/ /var/www/perl/
<Directory /perl/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>

Its a copy/paste from perl.apache.org.

No errors in /var/log/httpd/error_log neither /var/log/httpd/access_log

# ls -l /var/www/
total 32
drwxr-xr-x 3 root root 4096 jun 2 17:08 error
drwxr-xr-x 5 root root 4096 jun 13 16:34 html
drwxr-xr-x 3 root root 4096 jun 2 17:13 icons
drwxr-xr-x 2 root root 4096 jun 13 16:34 perl

# ls -l /var/www/perl/
total 24
-rwxr-xr-x 1 root root 410 jun 13 16:34 login.pl
-rw-r--r-- 1 root root 16882 jun 13 16:34 login.pm

My system is 2.6.16-1.2133_FC5, mod_perl-2.0.2-5.1, httpd-2.2.0-5.1.2

How can I check mod_perl is correctly loaded ?

http://localhost:2080/perl-status works...
Any help is welcome !!

Thanks

Re: the perl scripts are not executed on server side

Posted by Tobias <t...@funkreich.de>.
Zitat von Eric GRAMMATICO <e....@gmail.com>:

> When I connect to http://localhost/perl/rocks.pl the browser shows the
> source code. I believe I have a miss configuration somewhere, but I
> didnt find. Here is the alias part of my /etc/httpd/conf.d/perl.conf:
>
> Alias /perl/ /var/www/perl/
> <Directory /perl/>

Just a guess: Make this

<Directory /var/www/perl/>

and see if that helps!

Toby