sodabrew / mod_perlite

A lightweight Apache module for Perl scripts
http://modperlite.org/
86 stars 7 forks source link

Cannot get mod_perlite to work #9

Open jbadiella opened 14 years ago

jbadiella commented 14 years ago

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.

daxim commented 14 years ago

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.

ryandietrich commented 13 years ago

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";