CGI Scripts

Status
Not open for further replies.

shauntp

Member
Messages
97
Reaction score
0
Points
6
Can I run cgi scripts normally or do I have to do something with cgi-bin. Because whenever i try to run a cgi script it returns an Internal Server Error.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Is it set for 755?
 

shauntp

Member
Messages
97
Reaction score
0
Points
6
Ok. All the Scripts are in cgi-bin and are all 755. And it still isn't working. Could this be todo with perl?
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
Open the script in your text editor, and under the path to Perl on the first line, place this:

Code:
use CGI::Carp qw(fatalsToBrowser);

Then upload the script again, set it to executable and point your browser at it. If all goes according to plan, the error message will now be printed to the browser for all to see. Fix the error it details, and then comment out (or remove) that line because its never a good idea to give server settings out.
 

Captain John

New Member
Messages
13
Reaction score
0
Points
0
I am trying to run the setup script for perlsupporter (a Support Helpdesk).

http://support.humanitix.org/cgi-bin/setup.cgi

http://www.tulba.com/
Edit:
I just checked my Error Log and it says this:

Premature end of script headers: /home/umanitix/public_html/support/cgi-bin/setup.cgi

The above file (setup.cgi) is no longer a Perl Script .... internally it is just an error report ...

Code:
<pre><h1>Software error:</h1>
<pre>Could not open .htaccess for reading. Make sure the file exists. at setup.cgi line 37.</pre>
<p>
For help, please send mail to the webmaster (<a href="mailto:webmaster@support.humanitix.org">webmaster@support.humanitix.org</a>), giving this error message 
and the time and date of the error.

</p>
 
Last edited:
Status
Not open for further replies.
Top