Help - Search - Members - Calendar
Full Version: Need CGI help
The Planet Forums > Control Panels > Plesk
JasonT
Im running plesk 5.0 and im trying to run a cgi script.

Not really sure were the !/usr/thing/perl is, this is just a virtual server

My cgi bin is located at /cgi-bin, and my web directory is located /httpdocs

Someone told me to just put the file in cgi bin and load it like www.domain.com/cgi-bin/filename.cgi but still doesnt working, gives me a internal server error

Can someone help me out with this please

Thanks,
Jason
JasonT
[Sun Oct 27 07:01:47 2002] [error] [client 142.179.138.109] Premature end of script headers: /usr/local/psa/home/vhosts/punkwars.com/cgi-bin/test.cgi

Dont know if that will help
LadyHawk
Make sure you are NOT using permissions higher than 755 in the cgi-bin.

Path to perl would be /usr/bin/perl

Total Server path to cgi-bin is:
/usr/local/psa/home/vhost/domain.com/cgi-bin

Also make sure that you enable cgi and/or mod perl in the control panel.
afriend
Also make sure that the cgi script is owned the same as your site - typically username:psacln. suexec will not let any cgi script run if it is NOT owned the same as the site, and is ANYTHING but chmod 755.
Jonathan
Also double check that the file hasn't been uploaded in ASCII and not binary icon_wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.