P.Z. Low Cost CPanel Web Hosting  

Go Back   P.Z. Low Cost CPanel Web Hosting > Page-Zone Web Hosting Main Forum > General FAQ > General Questions and Comments

General Questions and Comments Post your question or grace us with your knowledge. Posting limited to registered members.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
How can I see if a cgi script is the fault of my script or the fault of the server?
Old
  (#1 (permalink))
Jim
of Page-Zone
Jim will become famous soon enoughJim will become famous soon enough
 
Status: Offline
Posts: 1,130
Join Date: Jun 2002
Location: Wauseon, Ohio
Rep Power: 96
My location
How can I see if a cgi script is the fault of my script or the fault of the server? - 11-11-2004, 09:23 PM

How can I see if a cgi script is the fault of my script or the fault of the server?
We get a lot of requests for troubleshooting scripts and unfortunately do not have the resources to provide that service on the 10,000 or so sites we host. Many customers are left wondering if it is a server issue that they can't seem to get out of the dreaded 500 server error. We can assure you that it isn't the fault of ther server.

Most often it is due to syntax errors or permissions in the script itself. Logging in via SSH will identify the problem sometimes by running the script from the command line and looking at the errors produced. (e.g. perl myscript.pl) You also want to make sure the scripts aren't set to chmod 777 or it will also fail to run.

In the end, learning how to and getting scripts to run on the server is the responsibility of the end user and we cannot troubleshoot non running scripts. You can check to see if it is that cause of the server by running a simple hello world script (below)

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, world!\n";

(edit - backslashes got stripped somehwre, thanks for noticing midwest)


--
Thank You,
Jim Snape
Page-Zone
--
   
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server-side script to load a page based on date? BobW Web Host Manager 16 08-24-2008 11:16 PM
SMTP server name for a Python script? webber General Questions and Comments 5 08-23-2007 03:06 PM
nice script midwest Off Topic Discussion 5 01-07-2005 08:20 PM
Chat Script neumannu47 General Questions and Comments 4 12-07-2004 04:52 PM
Using CRON for a php script? fshagan General Questions and Comments 2 05-15-2003 02:08 AM


Live Help



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
vBulletin Skin developed by: vBStyles.com
Copyright © 2002 Page-Zone Web Hosting. All rights reserved.
Smilies provided by Crack's Smilies http://www.mysmilies.com