|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I just installed CentOS 4.3 and modified /etc/httpd/conf/httpd.conf
like this: DocumentRoot "/www/site/htdocs" However, after doing this, every time I tried to start httpd it gives me the error: Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory [FAILED] I've checked the folder, syntax, and permissions. Everything is fine. Is httpd on CentOS on a chrooted environment or something? I am going nuts over this. Thanks. I'm totally stumped. It seems I can use /home/* or /var/*, but can't use /www/*. I looked at the permissions, and they are all the same. Is there perhaps something in the way the partition is set up, that's preventing Apache from seeing the /www/ partition? I checked /etc/fstab and /etc/mtab but didn't find any anomalies. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Tue, 08 Aug 2006 02:39:14 -0700 sanbat wrote:
> I just installed CentOS 4.3 and modified /etc/httpd/conf/httpd.conf > like this: > > DocumentRoot "/www/site/htdocs" Not valid according to the Filesystem Hierarchy Standard (FHS) - though does not cause the error. > However, after doing this, every time I tried to start httpd it gives > me the error: > > Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf: > DocumentRoot must be a directory > [FAILED] ls -ld /www /www/site /www/site/htdocs > I've checked the folder, syntax, and permissions. Everything is fine. > Is httpd on CentOS on a chrooted environment or something? I am going > nuts over this. Thanks. No, CentOS does not chroot apache. getenforce -> is SELinux being in enforce mode? You would see avc / audit messages in either /var/log/messages or /var/log/audit/audit.log. Alexander -- Alexander Dalloz | Löhne, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 14:52:21 up 3 days, 23:43, load average: 0.63, 0.59, 0.48 |
|
![]() |
| Outils de la discussion | |
|
|