Auteur |
Message |
Kerri
Utilisateur
Inscrit le: 01 Juin 2003
Messages: 32
|
Posté le:
31/05/2004 14:48 |
 |
salut à tous; je voudrais me monter un ch'ti serveur apache
donc j'ai modifié dans httpd2.conf et commonhttpd.conf le /var/www/html
par /home/kerri/html
j'ai mis un fichier index.htm dans /home/kerri/html
j'ai relancé httpd2
maintenant je dois faire quoi? |
|
|
 |
|
Seb
Webmaster
Inscrit le: 01 Juin 2003
Messages: 77
Localisation: Belgique
|
Posté le:
31/05/2004 14:59 |
 |
regarder si ca marche en tapant localhost dans ton navigateur , si tu as access denied , tu peux regarde sur le poste de Arcus ce que j'ai mis |
|
|
 |
|
Kerri
Utilisateur
Inscrit le: 01 Juin 2003
Messages: 32
|
Posté le:
31/05/2004 15:02 |
 |
Citation: |
Forbidden
You don't have permission to access / on this server. |
je vais voir le post d'arcus |
|
|
 |
|
Kerri
Utilisateur
Inscrit le: 01 Juin 2003
Messages: 32
|
Posté le:
31/05/2004 15:12 |
 |
je dois être un boulais:
j'ai fait un chmod a+x pour tous mes dossiers au dessus de home/kerri/www/html (sauf la racine) et ça marche pas
je le fais aussi pour la racine? |
|
|
 |
|
Seb
Webmaster
Inscrit le: 01 Juin 2003
Messages: 77
Localisation: Belgique
|
Posté le:
31/05/2004 15:22 |
 |
/home doit avoir comme permission drwxr-xr-x
/home/kerri drwxr-xr-x
/home/kerri/html drwxr-xr-x
/home/kerri/html/index.html -rw-r--r--
ensuite dans /etc/httpd/conf/httpd.conf :
ligne 26 :
DocumentRoot /home/kerri/html
ensuite dans /etc/httpd/conf/commonhttpd.conf
ligne 791 :
<Directory /home/kerri/html>
ensuite tu restart apache : /etc/init.d/httpd restart |
|
|
 |
|
Kerri
Utilisateur
Inscrit le: 01 Juin 2003
Messages: 32
|
Posté le:
31/05/2004 15:27 |
 |
drwxr-xr-x 4 root root 4096 avr 24 18:31 home/
drwxr-xr-x 48 kerri kerri 4096 mai 31 14:43 kerri/
drwxrwxr-x 7 kerri kerri 4096 mai 31 14:38 www/
drwxrwxr-x 3 kerri kerri 4096 mai 31 14:45 html/
-rw-r--r-- 1 kerri kerri 111 mai 31 14:45 index.html
c'est bon? |
|
|
 |
|
Seb
Webmaster
Inscrit le: 01 Juin 2003
Messages: 77
Localisation: Belgique
|
Posté le:
31/05/2004 15:32 |
 |
Vi logiquement ce devrait aller si tu as bien modifier le httpd.conf et le commonhttpd.conf et que tu as relancé apache |
|
|
 |
|
Kerri
Utilisateur
Inscrit le: 01 Juin 2003
Messages: 32
|
Posté le:
31/05/2004 15:40 |
 |
c'est ce que j'ai fais
sauf que chez moi dans httpd.conf, documentroot se trouve à la ligne 14
ceci mis à par j'ai tout fait |
|
|
 |
|
Seb
Webmaster
Inscrit le: 01 Juin 2003
Messages: 77
Localisation: Belgique
|
Posté le:
31/05/2004 15:55 |
 |
Resumons :
dans httpd.conf et commonhttpd.conf tu as mis /home/kerri/html
tu as mis un index.html dans /home/kerri/html
tout les droits sont bons
Citation: |
drwxrwxr-x 7 kerri kerri 4096 mai 31 14:38 www/ |
Pq tu parles de www la ?
tu as pas de www dans ce que tu m'as dis
si ton index.html est dans /home/kerri/www/html , tu dois mettre ca aussi dans httpd.conf et commonhttpd.conf
regarde ,Tout au dessus de /etc/httpd/conf/commonhttpd.conf , y a marquequi est l'utilisateur que apache utilise , si c'est apache
tape su apache
et essaye de lire le fichier /home/kerri/html/index.html , si tu sais le lire jvois pas ou est le prob |
|
|
 |
|
Kerri
Utilisateur
Inscrit le: 01 Juin 2003
Messages: 32
|
Posté le:
31/05/2004 16:13 |
 |
oups, je voulais dire que c'est dans /home/kerri/www/html
j'ai bien sur configuré httpd.conf et commonhttpd.conf avec ce /home/kerri/www/html
à noter: je suis connecté via un partage de connexion avec serveur sous xp, ça peut venir de là? |
|
|
 |
|
Seb
Webmaster
Inscrit le: 01 Juin 2003
Messages: 77
Localisation: Belgique
|
Posté le:
31/05/2004 17:38 |
 |
ben non si tu tapes localhost sur le PC ou est apache ca doit te montre ton index.html , jcromprend pas pq ca foire je viens de le faire 3 fois sous mdk10.0 et ca marche a tout les coups |
|
|
 |
|
|