New server with CGI problem.

MichaelMcC

Verified User
Joined
Jul 23, 2008
Messages
16
Location
Penn
Hi, I just leased a new server with DA and everything seemed smooth setting it up with the domain and nameservers. Everything resolves perfectly. If I try to access and run the script test.cgi in the cgi-bin from any domain I get the error:

The server encountered an internal error or misconfiguration and was unable to complete your request

I looked at the httpd/error_log and shows no error.
The httpd/suexec_log has the error:

[2013-02-05 14:38:12]: uid: (501/admin) gid: (502/admin) cmd: test.cgi

Yes the persmisions are 755
All users have CGI access.
Same script runs fine on other servers.
I can run the script in that dir without errors from shell

Has anyone come across this or am I missing something obvious?

Thanks, Michael
 
Check the error log for that exact domain it will be in /var/log/directadmin/domains/domain.com.error

or just go to user level for that domain and check the error log to see what it is complaining about.
 
Check the error log for that exact domain it will be in /var/log/directadmin/domains/domain.com.error

or just go to user level for that domain and check the error log to see what it is complaining about.

Nothing there, I looked at all the logs and nothing to narrow it down. Thanks for the tip.
 
As a followup, it seems as though there are many differences between Perl 5.8.8 and 5.10.1 .. Scripts that ran fine before now only give a server misconfiguration error and not a premature end of script or other error. I have not narrowed it down to anything specific.

I have hundreds of scripts on the old server I'm moving from and all written for Perl 5.8.8 or earlier and I think I'm better off switching back to Perl 5.8.8 ..

Michael
 
Back
Top