Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

What if just one .cgi file has incorrect path to perl

Quote Reply
What if just one .cgi file has incorrect path to perl
Shocked I would like to know . . . If all my .cgi files has the correct path to perl can that cause the rest all of them to give an error message or would I just get an error message when trying to access the one with the incorrect path to perl.

for example,
if jump.cgi is correct
if modify.cgi is correct
but add.cgi is incorrect

would I probably get an error message (500 internal server error) when I access jump.cgi or modify.cgi

the reason I ask is because I recently changed servers and everything was working fine until the change. Now when I click on any of the .cgi files listed above I get "500 Internal Server Error". When take a look at my files in the admin folder I noticed that one of those files still reference my old server path to perl and the rest of them are ok. Could that one cause all of them to not work.

on my old server the path to perl was usr/bin/perl and the new is usr/local/bin/perl
Quote Reply
Re: [gypzies] What if just one .cgi file has incorrect path to perl In reply to
What do your error logs say?

Try adding the following;

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

... next to the other 'use' statements, at the top of the script...

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] What if just one .cgi file has incorrect path to perl In reply to
In Reply To:
What do your error logs say?
Error Log
Last 30 or so Error Log Messages in reverse order
[Wed Jul 16 09:08:28 2003] [error] [client 68.85.84.127] File does not exist: /home/alloftex/public_html/404.shtml [Wed Jul 16 09:08:28 2003] [error] [client 68.85.84.127] File does not exist: /home/alloftex/public_html/favicon.ico[Wed Jul 16 09:07:49 2003] [error] [client 68.85.84.127] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 09:07:49 2003] [error] [client 68.85.84.127] File does not exist: /home/alloftex/public_html/links/cgi/links.css [Wed Jul 16 09:07:32 2003] [error] [client 66.166.99.68] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 09:07:32 2003] [error] [client 66.166.99.68] File does not exist: /home/alloftex/public_html/links/Wholesalers/links.css[Wed Jul 16 09:06:49 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/401.shtml[Wed Jul 16 09:06:28 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/401.shtml[Wed Jul 16 09:06:28 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/401.shtml[Wed Jul 16 09:06:17 2003] [error] [client 66.69.215.47] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 09:06:17 2003] [error] [client 66.69.215.47] File does not exist: /home/alloftex/public_html/links/Disaster_Relief/Statewide/links.css[Wed Jul 16 09:06:01 2003] [error] [client 204.65.14.139] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 09:06:01 2003] [error] [client 204.65.14.139] File does not exist: /home/alloftex/public_html/links/Kids/Activities/links.css[Wed Jul 16 09:04:42 2003] [error] [client 66.69.215.47] File does not exist: /home/alloftex/public_html/links/Disaster_Relief/links.css[Wed Jul 16 09:04:29 2003] [error] [client 66.69.215.47] File does not exist: /home/alloftex/public_html/links/Disaster_Relief/Local/links.css[Wed Jul 16 09:04:15 2003] [error] [client 66.69.215.47] File does not exist: /home/alloftex/public_html/links/Disaster_Relief/links.css[Wed Jul 16 09:03:57 2003] [error] [client 66.69.215.47] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 09:03:57 2003] [error] [client 66.69.215.47] File does not exist: /home/alloftex/public_html/links/Disaster_Relief/Statewide/links.css[Wed Jul 16 08:52:20 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/links/Real_Estate/links.css[Wed Jul 16 08:52:09 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/links/Real_Estate/Title_Companies/links.css[Wed Jul 16 08:52:03 2003] [error] [client 12.14.171.35]Premature end of script headers: /home/alloftex/public_html/links/cgi/jump.cgi[Wed Jul 16 08:51:45 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/links/Real_Estate/Title_Companies/links.css[Wed Jul 16 08:51:03 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/links/Real_Estate/Title_Companies/links.css[Wed Jul 16 08:49:05 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 08:49:05 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/links/Real_Estate/Title_Companies/links.css[Wed Jul 16 08:49:00 2003] [error] [client 12.14.171.35] Premature end of script headers: /home/alloftex/public_html/links/cgi/jump.cgi[Wed Jul 16 08:48:43 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 08:48:43 2003] [error] [client 12.14.171.35] File does not exist: /home/alloftex/public_html/links/Real_Estate/Title_Companies/links.css[Wed Jul 16 08:48:27 2003] [error] [client 208.58.217.203] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 08:48:27 2003] [error] [client 208.58.217.203] File does not
Why does it seem to be pointing to links.css, 401.shtml, 404.shtml?

Last edited by:

gypzies: Jul 16, 2003, 9:31 AM
Quote Reply
Re: [gypzies] What if just one .cgi file has incorrect path to perl In reply to
Did you try running the add.cgi script before grabbing the error log? Otherwise nothing is gonna be present in it, related to the Perl script Wink

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] What if just one .cgi file has incorrect path to perl In reply to
Error Log

Last 30 or so Error Log Messages in reverse order
[Wed Jul 16 09:34:09 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/500.shtml[Wed Jul 16 09:34:09 2003] [error] [client 208.188.18.102] Premature end of script headers: /home/alloftex/public_html/links/cgi/add.cgi[Wed Jul 16 09:34:03 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/500.shtml[Wed Jul 16 09:34:03 2003] [error] [client 208.188.18.102] Premature end of script headers: /home/alloftex/public_html/links/cgi/add.cgi[Wed Jul 16 09:33:55 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/500.shtml[Wed Jul 16 09:33:55 2003] [error] [client 208.188.18.102] Premature end of script headers: /home/alloftex/public_html/links/cgi/add.cgi[Wed Jul 16 09:33:37 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 09:33:37 2003] [error] [client 208.188.18.102] File does not exist: /home/alloftex/public_html/links/links1.css[Wed Jul 16 09:32:28 2003] [error] [client 12.87.0.211] File does not exist: /home/alloftex/public_html/404.shtml[Wed Jul 16 09:32:28 2003] [error] [client 12.87.0.211] File does not exist: /home/alloftex/public_html/links/Hobbies-Crafts/Antiques/links.css[Wed Jul 16 09:31:36 2003] [error] [client 209.39.104.129] File does not exist: /home/alloftex/public_html/links/Contractors/Pools_And_Spas/links.css[Wed Jul 16 09:31:11 2003] [error] [client 209.39.104.129] File does not exist: /home/alloftex/public_html/links/Contractors/Pools_And_Spas/links.css[Wed Jul 16 09:31:07 2003] [error] [client 209.39.104.129] File does not exist: /home/alloftex/public_html/links/Contractors/Pools_And_Spas/links.c