weird issue regarding perl

webbasica

Verified User
Joined
Feb 21, 2005
Messages
73
This is my 4th installation of directadmin. Mostly bacause newbie errors from yours truly.

That said, my problem now has to do with perl. I have this mailing list script called dadamail.
Usually i have to reinstall it everytime I change servers. This time was no exception. After doing everything right, I find myself seeing a 500 Internal Server Error.
Suexec log says (btw, the user is "bacanal"):
Code:
[2005-11-06 16:52:56]: info: (target/actual) uid: (bacanal/bacanal) gid: (bacanal/bacanal) cmd: mail.cgi
Everytime I try to execute the script.

Running it from the console seems to work. It shows some code (from the script) and then it gets interrupted.

After I while, I tried uploading a test script:
Code:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";
I get the same 500 error.
suexec log:
Code:
[2005-11-06 17:01:07]: info: (target/actual) uid: (bacanal/bacanal) gid: (bacanal/bacanal) cmd: test.cgi
So now, I am officially confused by this issue.

DA was installed by my provider, so I don't all the details about the setup process. However, here is the info:
Processor Name Intel(R) Celeron(R) CPU 1.80GHz
Vendor ID GenuineIntel
Processor Speed (MHz) 1796.962
Total Memory 998572 kB
Free Memory 47220 kB
Total Swap Memory 2024180 kB
Free Swap Memory 1972732 kB
System Uptime 7 Days, 16 Hours and 22 Minutes
Apache 1.3.34 Running
DirectAdmin 1.25.4 Running
Exim 4.50 Running
MySQL 4.0.23 Running
Named 9.2.1 Running
ProFTPd 1.2.10 Running
sshd Running
vm-Pop3d 1.1.7e Running
 
[2005-11-06 17:01:07]: info: (target/actual) uid: (bacanal/bacanal) gid: (bacanal/bacanal) cmd: test.cgi

[2005-11-06 16:52:56]: info: (target/actual) uid: (bacanal/bacanal) gid: (bacanal/bacanal) cmd: mail.cgi

As it states "INFO". This is not the problem. Execution will go correctly as the target and actual are the same.

You should check the apache error log for the domain in: /var/log/httpd/domains/[domain].error.log (something similair)

[TRY]
- Upload the file
- Chown it to the correct user group
- Chmod 770 the file
 
Last edited:
Nothing. I was wondering, maybe I need to add my user to the same group as apache?
 
Back
Top