Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-16-2008, 01:33 PM   #1
Tom Douglas
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....

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

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....

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

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
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 04:08 PM.
Old 02-17-2008, 07:26 AM   #2
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
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.


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 05:02 AM
scripting to run perl scripts newbie_m Linux - Newbie 1 01-12-2005 12:33 PM
how can I run my perl scripts in emacs linjia Linux - Software 1 12-05-2004 11:30 AM
my perl scripts wont run need help unixmad Linux - Software 4 09-14-2004 09:04 PM
How to Run perl scripts using bash Boudewijn Linux - Software 2 11-26-2003 04:37 AM

All times are GMT -5. The time now is 07:45 AM.

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