Ok, I should have read the FAQ for Openwebmail first... which says that openwebmail cannot be used with mod_perl... that would have saved me some time in thinking that perhaps it was because of mod_perl and joining this list...

thanks for at least reading this...

Jonathan Villa wrote:

Sorry for the repeats....

I noticed that on the top of the pages, there is

#!/usr/bin/suidperl -T

so I tried that on the command line and get this:

Script is not setuid/setgid in suidperl

???

Jonathan Villa wrote:

I did the Content-Type and nothing new...

So you're saying that Openwebmail does not require mod_perl? This is the main thing I need to get setup...so perhaps I should look into the openwebmail forum for a solution?

The only thing that confuses me is how does a web based program work without mod_perl?

And how can I get the simple index.pl file to work, I think I would feel more comfortable once that is working...

tvilliers wrote:

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



Reply via email to