Visit Jeremy's Blog.
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 10-19-2003, 11:04 AM   #1
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:

[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:

<IfModule mod_userdir.c>
UserDir WWW
UserDir disabled root

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

<Directory /home/*/WWW/cgi-bin>
Options ExecCGI
AddHandler cgi-script .cgi .pl
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.


Old 10-19-2003, 09:26 PM   #2
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 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 there a safe way to back down the version without screwing with my user's data?

Old 10-24-2003, 01:14 AM   #3
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

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, 10:15 PM   #4
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.


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 01:41 AM
I want to run RH9, but having trouble configuring NIC Bateluer Red Hat 10 09-13-2003 07:43 AM
Configuring Apache Iain Wilson Linux - Newbie 1 09-11-2003 08:16 AM
Configuring RH9 to run without monitor chamal Linux - Hardware 6 08-23-2003 05:27 PM
New RH9 install need help configuring tkpppoe!!! lnxmkep Linux - Networking 1 07-07-2003 03:58 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:30 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
Open Source Consulting | Domain Registration