On Wed, 26 Nov 2003 09:36:39 -0600, Jonathan Villa wrote: > Ok, I'm trying to install OpenWebMail but I keep getting an Internal > Server Error when I try to access it via the web. > > Here is what I have/did > > Installed: Apache 1.3.29/mod_ssl 2.8.16-1.3.29/PHP 4.3.4 Installed: v5.8.2 > built for i686-linux > > I'm trying to install mod_perl 1.29 and I've followed several tutorials, > many of which compile apache with mod_perl and seem to mess up my httpd > configuration. So, what I'm trying to do is to get mod_perl working but > without having to recompile Apache. Perhaps I already have it installed > since this is in my httpd.conf file > > LoadModule perl_module libexec/libperl.so ScriptAlias /cgi-bin/ > "/var/www/cgi-bin/" <Directory "/var/www/cgi-bin"> > AllowOverride None > Options None > Order allow,deny > Allow from all > </Directory> > > and libperl.so is indeed in the libexec dir. > > Anyway, perl seems to be working because I tried ./openwebmail-tool.pl and > it works, and if I do a perl -V I get information. > > So, I tried this: > > I created a file, index.pl, inside of /var/www/cgi-bin and all it has is > > #!/usr/bin/perl > print "does this work\n"; > > via command line > > $perl index.pl > does this work > > but via the web, I get an Internal Server Error and in the error_log > > Premature end of script headers: /var/www/cgi-bin/index.pl > > ????
print "Content-type:text/html\n\n" before anything else to avoid this error > > I'm very perplexed.... Openwebmail does not require a mod_perl httpd, but the latest version (6 weeks ago) does require a suidperl. The initial setup can be a bit daunting, but it's well worth it. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html