Web Hosting Talk







View Full Version : Need help: cgi scripts not working


twrs
04-16-2002, 01:54 AM
I just had a weird problem on my server (running Redhat 7.2 and H-Sphere). All the cgi scripts on the server suddenly stopped working (got Internal Server Error). I tried to do a soft reboot (shutdown -r now) with no luck.

I even tried to put a simple cgi script to print "Hello World!", but it's not working either. Running the script from SSH is no problem, but it just doesn't work from the browser. I didn't touch or made any modification to the server, it just happened suddenly.

I'd really appreciate any help from you folks. Thanks in advance!

glypto.com
04-16-2002, 02:11 AM
Try viewing apache error_log then run a script should give you an idea of what is happening!

twrs
04-16-2002, 02:26 AM
The error_log said the script has premature header.

It's weird, cause I haven't changed/modified the scripts for months and they have worked perfectly before. It just stopped working suddenly.

I've tried to upload the scripts again (in ASCII mode and correct permission, of course) with no luck.

Any other idea?

glypto.com
04-16-2002, 02:29 AM
I experienced this error once when I enabled SuExec on one of our servers.

twrs
04-16-2002, 02:11 PM
Thanks to Yuriy Ilnytskyy of Psoft.net (H-Sphere) who fixed the problem. He said the it's caused by suexec log too big :)