IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

Erreur 503 [1.x]


Sujet :

Symfony PHP

  1. #1
    Membre du Club
    Homme Profil pro
    Chef de projet NTIC
    Inscrit en
    Juin 2011
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Chef de projet NTIC
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2011
    Messages : 67
    Points : 61
    Points
    61
    Par défaut Erreur 503
    Bonjour,

    J'ai un soucis avec mon url rewrite si quelqu'un m'aider !
    voici mon arborescence
    XAMPP est installé sur 2008 Server
    le www est équivalent au htdocs

    C:\xampp\htdocs

    Mon projet Symfony est dans le dossier CG
    C:\xampp\htdocs\CG\web

    maintenant ayant tout tester
    voici le CG\.htaccess
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    <IfModule mod_rewrite.c>
        Options -MultiViews
        RewriteEngine On
        RewriteBase /CG
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ web/$1 [QSA,L]
    </IfModule>
    Quand je pointe dessus il me redirige sur le web automatiquement,

    et voici le web\.htaccess
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    <IfModule mod_rewrite.c>
        Options -MultiViews
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ app.php [QSA,L]
        #RewriteRule ^(.*)$ app_dev.php [QSA,L]
    </IfModule>
    j'ai l'erreur
    503 Service Unavailable
    et quand je comment la ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    RewriteRule ^(.*)$ app.php [QSA,L]
    j'ai l'arborecense du dossier.

    j'ai l'option du DOCUMENTROOT mais je pense plustard à avoir d'autres projet dans le htdocs.

    Merci d'avance

  2. #2
    Rédacteur
    Avatar de _Mac_
    Profil pro
    Inscrit en
    Août 2005
    Messages
    9 601
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 9 601
    Points : 12 977
    Points
    12 977
    Par défaut
    Bizarre. Y a quoi dans le fichier error_log d'Apache ? Tu peux copier-coller l'URL qui renvoie cette erreur ?

    Du détail, du détail, du détail !!!
    Revenons à la source : lisons la documentation et les fichiers de trace, la réponse à notre problème s'y trouve sans doute

  3. #3
    Membre du Club
    Homme Profil pro
    Chef de projet NTIC
    Inscrit en
    Juin 2011
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Chef de projet NTIC
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2011
    Messages : 67
    Points : 61
    Points
    61
    Par défaut Extrai du access.log
    127.0.0.1 - - [29/Dec/2012:22:27:07 +0000] "GET /Fileshare/ HTTP/1.1" 200 1857 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:09 +0000] "GET /Fileshare/ HTTP/1.1" 200 1857 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:09 +0000] "GET /Fileshare/ HTTP/1.1" 200 1857 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:09 +0000] "GET /icons/back.gif HTTP/1.1" 200 216 "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:09 +0000] "GET /icons/text.gif HTTP/1.1" 200 229 "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:09 +0000] "GET /icons/folder.gif HTTP/1.1" 200 225 "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:09 +0000] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:09 +0000] "GET /icons/image2.gif HTTP/1.1" 200 309 "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:11 +0000] "GET / HTTP/1.1" 302 - "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - root [29/Dec/2012:22:27:11 +0000] "GET /xampp/ HTTP/1.1" 200 594 "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - root [29/Dec/2012:22:27:11 +0000] "GET /xampp/head.php HTTP/1.1" 200 1393 "http://localhost/xampp/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - root [29/Dec/2012:22:27:11 +0000] "GET /xampp/navi.php HTTP/1.1" 200 3943 "http://localhost/xampp/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - root [29/Dec/2012:22:27:11 +0000] "GET /xampp/start.php HTTP/1.1" 200 1410 "http://localhost/xampp/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/css/exception_layout.css HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/css/exception.css HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/images/logo_symfony.png HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/images/grey_magnifier.png HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - root [29/Dec/2012:22:27:16 +0000] "GET /Fileshare/FSCBAO/ HTTP/1.1" 404 73872 "http://localhost/Fileshare/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/images/open_quote.gif HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/images/close_quote.gif HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/images/exception_detected.png HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/images/blue_picto_less.gif HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /_wdt/50df6e45cd5b1 HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"
    127.0.0.1 - - [29/Dec/2012:22:27:18 +0000] "GET /bundles/framework/images/blue_picto_more.gif HTTP/1.1" 404 1334 "http://localhost/Fileshare/FSCBAO/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/3.0 Chrome/22.0.1229.79 Safari/537.1"

  4. #4
    Rédacteur
    Avatar de _Mac_
    Profil pro
    Inscrit en
    Août 2005
    Messages
    9 601
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 9 601
    Points : 12 977
    Points
    12 977
    Par défaut
    On doit y voir quoi ? Il n'y a aucune erreur 503. Par ailleurs, je demandais le fichier error_log, pas access_log. Et évidemment, les extraits intéressants sont ceux datant du moment des erreurs.

    Du détail, du détail, du détail !!!
    Revenons à la source : lisons la documentation et les fichiers de trace, la réponse à notre problème s'y trouve sans doute

  5. #5
    Membre du Club
    Homme Profil pro
    Chef de projet NTIC
    Inscrit en
    Juin 2011
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Chef de projet NTIC
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2011
    Messages : 67
    Points : 61
    Points
    61
    Par défaut capture
    PHP_ERROR_LOG

    [31-Dec-2012 10:17:31 UTC] PHP Fatal error: Uncaught exception 'Symfony\Component\Routing\Exception\ResourceNotFoundException' in C:\xampp\htdocs\CG\app\cache\prod\appprodUrlMatcher.php:343
    Stack trace:
    #0 C:\xampp\htdocs\CG\app\cache\prod\classes.php(1406): appprodUrlMatcher->match('/CG/')
    #1 C:\xampp\htdocs\CG\app\cache\prod\classes.php(5103): Symfony\Component\Routing\Router->match('/CG/')
    #2 [internal function]: Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent))
    #3 C:\xampp\htdocs\CG\app\cache\prod\classes.php(4838): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseEvent))
    #4 C:\xampp\htdocs\CG\app\cache\prod\classes.php(4752): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel.request', Object(Symfony\Component\HttpKernel\Event\GetResponseEvent))
    #5 C:\xampp\htdocs\CG\app\cache\prod\classes.php(4970): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.request', Object(Symfony\Component\HttpKernel in C:\xampp\htdocs\CG\app\cache\prod\classes.php on line 5117

    et dans le navigateur j'ai bien le message :

    503 Service Unavailable

  6. #6
    Rédacteur
    Avatar de _Mac_
    Profil pro
    Inscrit en
    Août 2005
    Messages
    9 601
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 9 601
    Points : 12 977
    Points
    12 977
    Par défaut
    Je renvoie la discussion sur le forum PHP, c'est un problème de code, j'ai l'impression, rien à voir avec Apache.

    Du détail, du détail, du détail !!!
    Revenons à la source : lisons la documentation et les fichiers de trace, la réponse à notre problème s'y trouve sans doute

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    83
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 83
    Points : 55
    Points
    55
    Par défaut
    C'est un problème de code. De plus, c'est un problème en Symfony 2 mais bon, je vais quand même d'aider. Peut on voirle code relatif à cette erreur stp?

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. URLConnection et erreur 503
    Par Aoyama dans le forum Développement Web en Java
    Réponses: 1
    Dernier message: 26/05/2009, 16h43
  2. Erreur 503 - Chargement fichier plat en base
    Par drayogo dans le forum Weblogic
    Réponses: 0
    Dernier message: 18/03/2009, 16h04
  3. oracle mod_plsql erreur 503
    Par lastrecrue dans le forum Oracle
    Réponses: 0
    Dernier message: 19/12/2008, 04h33
  4. Connaitre la cause des erreurs 503
    Par clafff dans le forum Apache
    Réponses: 15
    Dernier message: 17/09/2008, 17h40
  5. [Tomcat] Modifier page d'erreur 503 (ma webapp arrêtée)
    Par divail dans le forum Tomcat et TomEE
    Réponses: 8
    Dernier message: 03/02/2006, 16h22

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo