Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-22-2005, 07:38 AM   #1
LQ Newbie
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
Apache Perl Problem..

Hi there,

I have a product which is designed for windows (it installs apache + modperl) and runs itself as a server.

I have compiled apache and mod_perl on slackware linux, everything works except the user login. This throws up the following error in error_log.

[Tue Mar 22 12:24:01 2005] [error] (2)No such file or directory: exec of /usr/local/apache/htdocs/champs/champscgi/users.cgi failed
[Tue Mar 22 12:24:01 2005] [error] [client] Premature end of script headers: /usr/local/apache/htdocs/champs/champscgi/users.cgi

Any ideas? - The file DOES exist.

Here is the top of the file itself.

#!perl -w
print "Content-type: text/plain\n\n";

$var = $ENV{'QUERY_STRING'};

#$len = length($var);

#Pickup the user name

$u1=$u + 9;
#print ("User $usr");
Thank you in advance!
Old 03-22-2005, 09:39 AM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Is that first line of your script the proper path to your Perl binary? Typically this is something like "/usr/bin/perl".
Old 03-22-2005, 01:10 PM   #3
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 45
You also need to make sure the script has execute rights... like chmod a+x users.cgi (this gives everyone execute rights -- probably a security risk)

I'm not sure, but I thought someplace I heard that dos line endings (CR LF) could cause problems, you can try switching to just unix line endings (just CR I think, but dont recall exactly)



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
Apache & Perl problem ginda Linux - Software 8 02-18-2005 08:45 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 06:37 PM
Gentoo Apache/perl problem CartersAdvocate Linux - Distributions 5 06-27-2004 08:43 PM
Have problem running .pl perl script in apache adrianmak Linux - Software 4 11-10-2003 10:31 AM
perl & apache problem tanmaya Linux - Software 0 04-07-2003 04:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:33 PM.

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