Jaws
21st July 2004, 05:26 AM
Hi. Linux newbie here.
I just recently configured my apache server to work with multiple users. Well, a few of my users want a cgi-bin folder. The problem is, when I give them the CGI-BIN folder, any time they try to execute a .cgi or .pl file, it gives them "Internal Server Error 500". I checked my logs, and it simply says Premature end of script headers.
I have tried all of the following:
- Changing File permissions
- Setting file owners to 'apache'
- Setting file groups to 'apache'
- Editing httpd.conf
Any other things I can try?
In httpd.conf, I have this:
<Directory "/home/slash/public_html/cgi-bin/">
Options ExecCGI
SetHandler cgi-script
</Directory>
The reason I dont have /home/*/ is because I dont want all users to have CGI permissions, only ones that need it.
The above doesnt work :( And I tried ScriptAlias configuration also, no go.
Thanks in advance for any help! :)
I just recently configured my apache server to work with multiple users. Well, a few of my users want a cgi-bin folder. The problem is, when I give them the CGI-BIN folder, any time they try to execute a .cgi or .pl file, it gives them "Internal Server Error 500". I checked my logs, and it simply says Premature end of script headers.
I have tried all of the following:
- Changing File permissions
- Setting file owners to 'apache'
- Setting file groups to 'apache'
- Editing httpd.conf
Any other things I can try?
In httpd.conf, I have this:
<Directory "/home/slash/public_html/cgi-bin/">
Options ExecCGI
SetHandler cgi-script
</Directory>
The reason I dont have /home/*/ is because I dont want all users to have CGI permissions, only ones that need it.
The above doesnt work :( And I tried ScriptAlias configuration also, no go.
Thanks in advance for any help! :)