Bonjour,
j'essaye de faire fonctionner une application déjà existante (fonctionnant sur un serveur Debian, apache2, php 5.3) en locale sur mon pc avec wampserver 2.2
mon wampserver fonctionne pour d'autres applications Symfony 1.4 mais pas pour cette dernière et je ne comprend pas.
j'arrive bien sur la page: main/index, mais mes appels ajax ne fonctionnent pas, exemple:
j'ai l'erreur suivante sur Firefox:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 jQuery.post("main/recap", {selectJour : jour, selectMois : mois, selectAnnee : annee}, function(data) { jQuery("#recap").html(data).slideDown('slow'); });
mon apache_error.log:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2"NetworkError: 404 Not Found - http://site.local/main/recap"
mon httpd-vhosts.conf:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 [Tue Feb 19 15:47:38 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/site/web/main, referer: http://site.local/
mon hosts:
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 <VirtualHost *:80> ServerName site.local DocumentRoot "c:\wamp\www\site\web" DirectoryIndex index.php <Directory "c:\wamp\www\site\web"> AllowOverride All Allow from All </Directory> Alias /sf "c:\wamp\www\site\lib\vendor\symfony\data\web\sf" <Directory "c:\wamp\www\site\lib\vendor\symfony\data\web\sf"> AllowOverride All Allow from All </Directory> </VirtualHost>
mon routing.yml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 127.0.0.1 localhost site.local
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 # default rules homepage: url: / param: { module: main, action: index } # generic rules # please, remove them by adding more specific rules default_index: url: /:module param: { action: index } default: url: /:module/:action/*
Partager