LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-19-2003, 12:04 PM   #1
verbal
Member
 
Registered: Jul 2002
Location: New York
Distribution: Red Hat 7.2, SuSE 7.3
Posts: 60

Rep: Reputation: 15
Configuring Apache 2 on RH9


Hi there...

A short time back, I migrated from RH7.2 to 9.0 and upgraded to Apache 2 from the 1.3 series. Ever since the upgrade I have been unable to configure apache to allow users their own cgi-bin.

The user web space works fine, a few users are running web sites without any issues, this is strictly a cgi-bin issue.

Any cgi moved to any user cgi-bin fails to run with the following error logged:

Quote:
[Sun Oct 19 11:56:10 2003] [error] [client *.*.*.*] Premature end of script headers: testme.cgi
(I edited out the IP for this post, thats not in the log like that)

Now... I can take the same *.cgi and mv it to the server's cgi-bin and it works fine.

To rule out permission issues, I chmod'd to 777
the owner of the bin is the user and the group is the httpd group

here are the applicable entries in the config:

Quote:
<IfModule mod_userdir.c>
UserDir WWW
UserDir disabled root
</IfModule>

<Directory /home/*/WWW>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order allow,deny
Allow from all
</LimitExcept>
</Directory>

<Directory /home/*/WWW/cgi-bin>
Options ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
I've been banging my head against the wall with this for a couple days now, if anyone has any suggestions it would be greatly appreciated.

Thanks

Verbal
 
Old 10-19-2003, 10:26 PM   #2
verbal
Member
 
Registered: Jul 2002
Location: New York
Distribution: Red Hat 7.2, SuSE 7.3
Posts: 60

Original Poster
Rep: Reputation: 15
Thout I'd try bumping this back to the front page once...it got buried quick and well, to be honest, after yet another day of kicking it around, I am now completely out of ideas. Everything I read indicates that I have it configured right I MUST be missing something, but damned if I can see it.

This config worked fine in the 1.3 series...is there a safe way to back down the version without screwing with my user's data?

Verbal
 
Old 10-24-2003, 02:14 AM   #3
Kronos3
LQ Newbie
 
Registered: Oct 2003
Posts: 8

Rep: Reputation: 0
Having same Issues... if you get an ansewwr before I do, please send me a message. My post is at

http://www.linuxquestions.org/questi...hreadid=107885

I had the problem you are having till I added the code in the default test.cgi found in the default apache cgi-bin.

After I put that code in httpd2.conf, I got the erros in my post.
 
Old 10-28-2003, 11:15 PM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Have you used a ScriptAlias directive? I didn't see one listed in the config stuff you posted. You may also want to try adding the -w switch to the shebang line of your script and see if that returns more useful information to your error log.
 
  


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
VERY URGENT: Configuring my network on RH9 nealkochhar Linux - Networking 14 06-09-2004 02:41 AM
I want to run RH9, but having trouble configuring NIC Bateluer Red Hat 10 09-13-2003 08:43 AM
Configuring Apache Iain Wilson Linux - Newbie 1 09-11-2003 09:16 AM
Configuring RH9 to run without monitor chamal Linux - Hardware 6 08-23-2003 06:27 PM
New RH9 install need help configuring tkpppoe!!! lnxmkep Linux - Networking 1 07-07-2003 04:58 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration