LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   httpd again... (https://www.linuxquestions.org/questions/linux-software-2/httpd-again-70545/)

lkalman 07-06-2003 04:22 PM

httpd again...
 
Hi,

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
</Directory>

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

lkalman 07-06-2003 06:05 PM

"Premature end of script headers"...
 
Hi,

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


All times are GMT -5. The time now is 10:44 PM.