Il faut aller voir où est défini ${wwwDir). C'est dans le fichier Wamp\scripts\config.inc.php à la ligne :
$wwwDir = $c_installDir.'/www';
qu'il faudra remplacer, par exemple si le chemin est E:\www par :
$wwwDir = 'E:/www';
Pas essayé, donc sans garantie.
Ça peut paraître compliqué, mais il ne faut pas oublier que Wampserver 2 peut gérer plusieurs des combinaisons de plusieurs versions d'Apache et de MySql
regarde dans les fichiers log s'il y un message d'erreur particulier. (click gauche sur l'icone wamp > apache > (apache error.log) ou (apache access.log) ca pourra peut etre t'aider
Assures-toi que le dossier www existe bien.
EDIT: est-tu sur Vista ?
Modifie 1 fois. Derniere modification le 29/11/2007 à 00:24 par rip_pit.
[Tue Nov 27 12:11:13 2007] [notice] Parent: Received shutdown signal -- Shutting down the server. [Tue Nov 27 12:11:13 2007] [notice] Child 204: Exit event signaled. Child process is ending. [Tue Nov 27 12:11:14 2007] [notice] Child 204: Released the start mutex [Tue Nov 27 12:11:15 2007] [notice] Child 204: Waiting for 250 worker threads to exit. [Tue Nov 27 12:11:15 2007] [notice] Child 204: All worker threads have exited. [Tue Nov 27 12:11:15 2007] [notice] Child 204: Child process is exiting [Tue Nov 27 12:11:15 2007] [notice] Parent: Child process exited successfully. [Tue Nov 27 12:11:27 2007] [notice] Apache/2.2.6 (Win32) PHP/5.2.5 configured -- resuming normal operations [Tue Nov 27 12:11:27 2007] [notice] Server built: Sep 5 2007 08:58:56 [Tue Nov 27 12:11:27 2007] [notice] Parent: Created child process 5696 [Tue Nov 27 12:11:28 2007] [notice] Child 5696: Child process is running [Tue Nov 27 12:11:28 2007] [notice] Child 5696: Acquired the start mutex. [Tue Nov 27 12:11:28 2007] [notice] Child 5696: Starting 250 worker threads.
Il manquerai qlque chose dans ton log, ou tu n'a pas tout mis car moi j'ai la ligne suivante que je ne vois pas dans le tiens [Thu Nov 29 17:21:20 2007] [notice] Child ****: Starting thread to listen on port 80.
ce qui signifie qu'il commence a ecouter sur le port 80.
En gros a chaque fois que je lance j'ai ca dans mon apache_error.log :
[Thu Nov 29 17:21:20 2007] [notice] Apache/2.2.6 (Win32) PHP/5.2.5 configured -- resuming normal operations [Thu Nov 29 17:21:20 2007] [notice] Server built: Sep 5 2007 08:58:56 [Thu Nov 29 17:21:20 2007] [notice] Parent: Created child process 3660 [Thu Nov 29 17:21:20 2007] [notice] Child 3660: Child process is running [Thu Nov 29 17:21:20 2007] [notice] Child 3660: Acquired the start mutex. [Thu Nov 29 17:21:20 2007] [notice] Child 3660: Starting 250 worker threads. [Thu Nov 29 17:21:20 2007] [notice] Child 3660: Starting thread to listen on port 80. [Thu Nov 29 17:25:15 2007] [notice] Parent: Received shutdown signal -- Shutting down the server. [Thu Nov 29 17:25:15 2007] [notice] Child 3660: Exit event signaled. Child process is ending. [Thu Nov 29 17:25:16 2007] [notice] Child 3660: Released the start mutex [Thu Nov 29 17:25:17 2007] [notice] Child 3660: Waiting for 250 worker threads to exit. [Thu Nov 29 17:25:17 2007] [notice] Child 3660: All worker threads have exited. [Thu Nov 29 17:25:17 2007] [notice] Child 3660: Child process is exiting [Thu Nov 29 17:25:17 2007] [notice] Parent: Child process exited successfully. [Thu Nov 29 17:25:18 2007] [notice] Apache/2.2.6 (Win32) PHP/5.2.5 configured -- resuming normal operations [Thu Nov 29 17:25:18 2007] [notice] Server built: Sep 5 2007 08:58:56 [Thu Nov 29 17:25:18 2007] [notice] Parent: Created child process 3188 [Thu Nov 29 17:25:18 2007] [notice] Child 3188: Child process is running [Thu Nov 29 17:25:18 2007] [notice] Child 3188: Acquired the start mutex. [Thu Nov 29 17:25:18 2007] [notice] Child 3188: Starting 250 worker threads. [Thu Nov 29 17:25:18 2007] [notice] Child 3188: Starting thread to listen on port 80.
Assures toi qu'aucun autre logiciel n'utilise le port 80 (genre skype, msn peut etre, etc.) Pour etre sûr, ferme toutes les applications et reessayes.
--------------------------------------------- XP SP3 - pIV - 3.2Ghz - 1.5Go de ram - Wamp 2.0
Pour ma part j'avais cherché aussi el moyen de changer le répertoire www sans trouvé.
Je me suis tourné vers la création d'un alias qui reviens au même pour mon utilisation. Dans le dossier "..../wamp/alias/" j'ai créé un fichier "www.conf" avec les instructions suivantes à l'intérieur :
Alias /www "D:/www/"
<Directory "D:/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory>
J'ai bien modifié ces deux lignes dans httpd.conf (comme avec WAMP5): DocumentRoot "D:/localhost/www/" et <Directory "D:/localhost/www/">
C'est suffisant pour que ça fonctionne. Changer la variable wwwDir dans script/config.inc.php permet ensuite d'avoir le bon lien dans le menu, tant qu'à faire.
Si le démarrage de PHP bloque, assurez-vous de n'avoir rien changer d'autre dans httpd.conf, sinon l'erreur peut provenir d'ailleurs. Dans mon premier essai, j'ai activé les virtual hosts, et c'est eux qui bloquaient. La faute aux guillemets que j'avais rajouté sur le modèle du httpd-vhosts.conf par défaut: DocumentRoot "D:/localhost/www" au lieu de DocumentRoot D:/localhost/www