The Network People Support Forums

Mail::Toaster => Installation Issues => Topic started by: alf68 on March 22, 2005, 08:15:13 AM

Title: CGI => Internal Server Error
Post by: alf68 on March 22, 2005, 08:15:13 AM
hello all,

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

log for apache ( http-error.log ):
[Tue Mar 22 16:06:18 2005] [error] [client toto] (2)No such file or directory: exec of '/usr/local/www/data/index.cgi' failed
[Tue Mar 22 16:06:18 2005] [error] [client toto] Premature end of script headers: index.cgi

httpd.conf :
LoadModule cgi_module libexec/apache2/mod_cgi.so
DirectoryIndex index.cgi index.shtml index.html index.htm index.html.var index.php
AddHandler cgi-script .cgi .sh .pl

VirtualHost :
<VirtualHost *:80>
   DocumentRoot /usr/local/www/data
   ErrorLog /var/log/apache2/admin-toto-error_log
   CustomLog /var/log/apache2/admin-toto-access_log common

   <Directory /usr/local/www/data>
      Options Indexes FollowSymLinks MultiViews ExecCGI
      AllowOverride all
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>


log for admin-toto-error_log :
[Tue Mar 22 16:06:12 2005] [error] [client 192.168.1.10] (2)No such file or directory: exec of '/usr/local/www/data/index.cgi' failed
[Tue Mar 22 16:06:12 2005] [error] [client 192.168.1.10] Premature end of script headers: index.cgi


Please let me know what I can do to resolve these problems.

Alfi
Title: Re: CGI => Internal Server Error
Post by: alf68 on March 23, 2005, 10:59:47 AM
prob resolved


cd /usr/ports/lang/perl5.8 && make deinstall

cd /usr/ports/lang/perl5 && make -DENABLE_SUIDPERL clean

rehash
use.perl port
perl -MCPAN -e shell
exit

and
toaster_setup.pl -s pre