Problem running pl files /Webserver

Discussion re sg development. You don't have to be a developer.

Problem running pl files /Webserver

Postby superniemand » Sun Jul 17, 2011 6:50 am

Hi,

I successfully installed the backend (at least I think so as spameater produced a debug file with senseful output) of spamgourmet on my own server. It was not that hard at all :-)
However, I have a problem when I try to run the frontend. I have installed the regular apache and -mod-perl packages that come with Debian Squeeze. I also created a virtual domain and allowed for the entire domain to execute cgi and pl files. However, I only get an error 500 when I point my browser to the domain. I checked the file permissions too. This is the output of /var/log/apache2/xxxx.log:

Code: Select all
[Sat Jul 16 23:31:43 2011] [error] [client 88.68.56.11] readdir() attempted on invalid dirhandle DIR at /storage/home/spamgourmet/modules/Mail/Spamgourmet/Dialogs.pm line 50.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] Use of uninitialized value in concatenation (.) or string at /storage/home/spamgourmet/www/html/index.pl line 688.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] Use of uninitialized value $stats{"forwardcount"} in concatenation (.) or string at /storage/home/spamgourmet/www/html/index.pl line 1249.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] Use of uninitialized value $stats{"spamcount"} in concatenation (.) or string at /storage/home/spamgourmet/www/html/index.pl line 1270.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] Use of uninitialized value $stats{"counterID"} in concatenation (.) or string at /storage/home/spamgourmet/www/html/index.pl line 1289.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] Use of uninitialized value $stats{"todaycount"} in concatenation (.) or string at /storage/home/spamgourmet/www/html/index.pl line 1290.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] Use of uninitialized value $stats{"todayforwarded"} in concatenation (.) or string at /storage/home/spamgourmet/www/html/index.pl line 1291.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] syswrite() on closed filehandle FILE at /storage/home/spamgourmet/www/html/index.pl line 1294.
[Sat Jul 16 23:31:45 2011] [error] [client 88.68.56.11] Premature end of script headers: index.pl


This is basically the same ouput as if I run the index.pl manually from CLI.
So.... I am lost here. What am I doing wrong?

Thanks
superniemand
superniemand
 
Posts: 6
Joined: Sat Jul 16, 2011 10:27 pm

Problem solved

Postby superniemand » Thu Jul 28, 2011 1:18 pm

I could solve the problem by myself by now. I simply had a typo in the sql password. This made the index.pl throw an error 500.

But an error like this can be found easily if taking a good look in /var/log/apache2 ;-)

Hope this helps the next guy who runs into this problem.
superniemand
superniemand
 
Posts: 6
Joined: Sat Jul 16, 2011 10:27 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 10 guests