PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Apache can't see folder
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Apache can't see folder

Réponse
 
LinkBack Outils de la discussion
Vieux 08/08/2006, 10h39   #1
sanbat@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache can't see folder

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.

  Réponse avec citation
Vieux 08/08/2006, 13h55   #2
Alexander Dalloz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache can't see folder

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h52.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08977 seconds with 10 queries