mrbinky3000
2004-05-18, 12:00 AM CDT
Hello,
I appologize if this is a newbie-type question but I've been googling all day long and can't find an answer on my own.
I just installed Fedora Core 1 out of the box which set up Apache PHP and MySQL for me. I changed my httpd.conf file to use name based virtual domain hosting.
<VirtualHost XX.XX.XX.XX:80>
ServerAdmin XX@XX.net
DocumentRoot /home/amn/athensmusician.net/html
ServerName www.athensmusician.net
ServerAlias athensmusician.net
SuexecUserGroup amn amn
</VirtualHost>
The problem I am encountering now is that perl scripts fail when viewed through a web browser, but work just fine from the shell. Yes, the scripts have been converted with dos2unix. Yes, the permissions for the perl script are 700. Yes, I added "AddHandler cgi-script .cgi .pl" to my httpd.conf file. When I browse to the script, I get the following lines added to these logs.
Error Log:
[Tue May 18 02:40:06 2004] [error] [client XX.XX.XX.XX] Premature end of script headers: discuss.pl
SuEXEC Log:
[2004-05-18 02:40:06]: uid: (500/amn) gid: (500/500) cmd: discuss.pl
[2004-05-18 02:40:06]: command not in docroot (/home/amn/athensmusician.net/html/perl/discuss.pl)
Here is my SuEXEC setup.
% suexec -V
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"
I read a post on another message board where a person had a similar problem. He set his doc root to /home and his scripts started working. He had to recompile Apache, but I have never done that before.
How do I recompile apache when it was installed via RPM with the initiall fedora core installation without destroying two days of hard work setting up the machine? Help!!!
- Matt
I appologize if this is a newbie-type question but I've been googling all day long and can't find an answer on my own.
I just installed Fedora Core 1 out of the box which set up Apache PHP and MySQL for me. I changed my httpd.conf file to use name based virtual domain hosting.
<VirtualHost XX.XX.XX.XX:80>
ServerAdmin XX@XX.net
DocumentRoot /home/amn/athensmusician.net/html
ServerName www.athensmusician.net
ServerAlias athensmusician.net
SuexecUserGroup amn amn
</VirtualHost>
The problem I am encountering now is that perl scripts fail when viewed through a web browser, but work just fine from the shell. Yes, the scripts have been converted with dos2unix. Yes, the permissions for the perl script are 700. Yes, I added "AddHandler cgi-script .cgi .pl" to my httpd.conf file. When I browse to the script, I get the following lines added to these logs.
Error Log:
[Tue May 18 02:40:06 2004] [error] [client XX.XX.XX.XX] Premature end of script headers: discuss.pl
SuEXEC Log:
[2004-05-18 02:40:06]: uid: (500/amn) gid: (500/500) cmd: discuss.pl
[2004-05-18 02:40:06]: command not in docroot (/home/amn/athensmusician.net/html/perl/discuss.pl)
Here is my SuEXEC setup.
% suexec -V
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"
I read a post on another message board where a person had a similar problem. He set his doc root to /home and his scripts started working. He had to recompile Apache, but I have never done that before.
How do I recompile apache when it was installed via RPM with the initiall fedora core installation without destroying two days of hard work setting up the machine? Help!!!
- Matt