Bonjour à tous,
J'ai installé wampserver avec Apache 2.2.11, PHP 5.2.11, MySQL 5.1.36. Je suis censé installer symfony sur ce serveur. Après quelques modifications du httpd.conf d'Apache, et du httpd-vhosts.conf, je n'arrive pas à atteindre mon répertoire www de wamp.
Voilà ce que j'ai modifié :
Dans le httpd.conf, j'ai décommenté la ligne 466 :
Dans httpd-vhosts.conf, j'ai rajouté mon virtualhost pour accéder à mon application (jobeet). Voilà ce que ça donne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 # Virtual hosts Include conf/extra/httpd-vhosts.conf
Dans mon fichier hosts qui se trouve dans C:\windows\system32\drivers\etc :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 NameVirtualHost *:80 NameVirtualHost jobeet.localhost:80 <VirtualHost jobeet.localhost:*> ServerName jobeet.localhost DocumentRoot "c:\development\sfprojects\jobeet\web" DirectoryIndex index.php <Directory "c:\development\sfprojects\jobeet\web"> AllowOverride All Allow from All </Directory> Alias /sf "c:\development\sfprojects\jobeet\lib\vendor\symfony\data\web\sf" <Directory "c:\development\sfprojects\jobeet\lib\vendor\symfony\data\web\sf"> AllowOverride All Allow from All </Directory> </VirtualHost>
De plus si je met dans mon fichier httpd-vhosts.conf :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 # localhost name resolution is handled within DNS itself. 127.0.0.1 localhost 127.0.0.1 jobeet.localhost ::1 localhost
Wampserver ne veut pas se relancer... Et si je met pas cette dernière partie, mon localhost me redirige vers le index.php de symfony...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <VirtualHost *:80> ServerName localhost DocumentRoot "c:\wamp\www\" DirectoryIndex index.php <Directory "c:\wamp\www\"> AllowOverride All Allow from All </Directory> </VirtualHost>
Voilà vous savez tout, en espérant que vous pourrez m'aider à accéder au répertoire www.
Partager