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 07-06-2003, 04:22 PM   #1
LQ Newbie
Registered: Jun 2003
Posts: 12

Rep: Reputation: 0
httpd again...


I know you've seen similar problems, but I haven't found exactly the same on this forum. I'm trying to set up CGI subdirectories in users' home directories. This is what I put into /etc/httpd/conf/httpd.conf:

<Directory /home/*/public_html/cgi-bin>
AllowOverride Options
Options +ExecCGI
SetHandler cgi-script
Order allow,deny
Allow from all

I guess it's pretty standard. Yet, none of the scripts in any user's ~/public_html/cgi-bin can be run through a browser (I use Netscape). The error message is the notorious "Premature end of script headers", for scripts that run fine if put into the main script directory (http://localhost/cgi-bin/...). Any suggestions...?

Best -- Laszlo
Old 07-06-2003, 06:05 PM   #2
LQ Newbie
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
"Premature end of script headers"...


Found the solution myself. The permissions of every script in a +ExecCGI directory must be 755 in order to be executable. (Set umask to 22 for all users as a default?)

Best -- Laszlo


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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/ bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
httpd-2.0.43-1 pk21 Linux - Software 3 02-20-2003 12:33 PM
Need Help w/ HTTPD lee Linux - Networking 4 10-16-2002 04:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:44 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