Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

[openSUSE 12.2 -- apache2] without mod-perl and with mod_perl impossible to launch perl script

$
0
0
Greetings !!

I tried to access an old local web site with perl scripts that were running ok with apache2 under openSUSE 11.3 (test server)
I lost the configuration files of the apache2 server so I can't remember how I fixed the fact that the script is either displayed on the screen or there is a dialog asking to do something with the .pl file found on the site.

I remember it was particulary heavy to make apache2 running perl scripts but I didn't took notes and I can't remember how I did.

The server is running ok.
I tried with mod-perl and without --> same results.

I got no errors but the script is either displayed or there is a dialog asking to do something with the .pl file (I use firefox, same behaviour with konqueror).

I'm confused with the AddHandler and AddType directives and what both mod_mime-default and mime-types files content...

The log always tell me things like

Code:

[Sun Mar 30 00:33:41 2014] [warn] Cannot get media type from 'perl'
[Sun Mar 30 00:34:19 2014] [warn] Cannot get media type from 'perl'
[Sun Mar 30 00:35:12 2014] [warn] Cannot get media type from 'cgi-script'
[Sun Mar 30 00:35:43 2014] [warn] Cannot get media type from 'script-cgi'

I added/removed tried so many things that I'm completly f***** up with this apache2 perl configuration.

On perl forums there is people saying we don't really need mod-perl, some are saying there is no other way to run perl scripts but install mod_perl... all the exemples given are not working... I got the dialog asking to do something with perl scripts (.pl ext)
There is no apache2 forums only mailing lists that sucks.

It works on 11.3 with apache2_mod-perl... same web site skeleton.

The script is chmoded to 755 (in case of...)
The directory containing the script is +ExecCGI and I tried the mod_perl strange (never seen before) things like:

Code:

SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
Options +ExecCGI
PerlSendHeader On

...but it never worked better than without those never-seen-before directives (are they new ???)

I always used the oldschool directives as

Code:

<Directory "/www/cdm2014/cgi-bin">
        #PerlResponseHandler ModPerl::PerlRun
        #PerlOptions +ParseHeaders
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>

...it has always worked (and still works on a 11.3 computer running apache2 with mod_perl) I tried the same configuration but that failed...

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>