mod_perlite icon indicating copy to clipboard operation
mod_perlite copied to clipboard

Cannot get mod_perlite to work

Open jbadiella opened this issue 15 years ago • 2 comments

I compiled and installed mod_perlite succesfully, but it does not work.

I configured it as told:

AddHandler application/x-httpd-perlite .pl AddType application/x-httpd-perlite .pl

I made sure the module loads; but whenever I try to execute a simple script (e. g. hello.pl) the browser would try to download it.

jbadiella avatar Mar 01 '10 15:03 jbadiella

What does mod_info say about how your configuration is parsed and in which context the directives were declared? Provide a minimal test case of your configuration that still exhibits the problem.

daxim avatar Mar 01 '10 16:03 daxim

Another "simple" thing to make sure that your test script is printing out the content type before writing any content out. Without the content type header your browser will try to download the file instead of displaying it.

Example:

print "Content-Type: text/html\n\n";

ryandietrich avatar Mar 29 '11 16:03 ryandietrich