LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-16-2008, 12:33 PM   #1
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 89

Rep: Reputation: 15
Perl scripts won't run on Apache -- they did before


I have a set of Perl scripts that are not working right on my Fedora 6 notebook. They have been untouched for the last several months. They were working months ago. The same copy of the Perl scripts continue to work well on a separate web server, live on the Internet.

The live website Perl scripts were downloaded and placed in the cgi-bin directory of my local F6 box, generating the same errors in /var/log/httpd/error_log, shown....

Quote:
Premature end of script headers: signup
(2)No such file or directory: exec of '/home/portal/col/cgi-bin/signup' failed,

referer: http://col.net
A simple "Hello World" script also in the same /home/portal/col/cgi-bin directory which is successfully executed; no errors. Permissions on all script files are identical, so I can be fairly certain that permissions are not the issue. Here's the directory....

Quote:
-rwxrwxr-x 1 toms toms 233 Jul 7 2007 hello.pm
-rwxr-xr-x 1 toms toms 23064 Mar 5 2007 part1.pm
-rwxr-xr-x 1 toms toms 2860 Jan 13 2007 part2.pm
-rwxr-xr-x 1 toms toms 2518 Apr 23 2005 part3.pm
-rwxr-xr-x 1 toms toms 609 May 7 2005 signup
A piece of /etc/httpd/conf/httpd.conf is shown below....

Quote:
<VirtualHost 192.168.1.7>
ServerName col.net
ServerAlias col.toms.net
DocumentRoot /home/portal/col/www
DirectoryIndex index.htm
ScriptAlias /cgi-bin/ /home/portal/col/cgi-bin/
SetEnv HOMEDIR /home/portal/col # HOMEDIR is used in the script set
</VirtualHost>
The Perl scripts work well on a separate live website. Those same scripts fail on my local F6 box. I have a feeling that I tweaked something in Apache that shouldn't have been tweaked.

Any clues on what the deal is here? Thank you!

Tom D.
Denver, Colorado

Last edited by Tom Douglas; 02-16-2008 at 03:08 PM.
 
Old 02-17-2008, 06:26 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
First, a suggestion. Whenever you change something in
a config file, put in a comment with you initials, the
date, and the reason for the change. Then three months
later you can simply search for your initials in the file
and see what you had changed.

Check your error log in /var/log or /var/log/apache.
Odds are good that it will have a clue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I run a perl and cgi scripts in my apache.?. ethnicme Programming 6 07-21-2006 04:02 AM
scripting to run perl scripts newbie_m Linux - Newbie 1 01-12-2005 11:33 AM
how can I run my perl scripts in emacs linjia Linux - Software 1 12-05-2004 10:30 AM
my perl scripts wont run need help unixmad Linux - Software 4 09-14-2004 08:04 PM
How to Run perl scripts using bash Boudewijn Linux - Software 2 11-26-2003 03:37 AM


All times are GMT -5. The time now is 06:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration