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

Zend Framework PHP Discussion :

Erreur Zend après déploiment sous Ubuntu [ZF 1.10]


Sujet :

Zend Framework PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 102
    Par défaut Erreur Zend après déploiment sous Ubuntu
    Bonjour,

    J'ai une application que j'ai développé avec Zend 1.10.6 et elle marche très bien en local sous Windows avec l'environnement suivant :
    - Windows XP
    - Apache 2.2.11
    - PHP 5.2.8
    - MySQL 5.1.31
    - Zend 1.10.6

    J'ai déployé cette application depuis plus d'une semaine sur un serveur Ubuntu avec PHP 5.3.2, Apache 2.2.14 et Zend 1.10.6
    mais je n'arrive pas à la faire fonctionner et ce malgré que l'erreur que j'ai est très connu sur internet.
    J'ai essayé la solution qui se trouvant sur le forum et qui consiste à ajouter des librairies dans le set_include_path

    Qqn peut-il me dire s'il y a des manipulations particulières à faire lorsqu'on veut passer du mode local vers le mode serveur ou lorsqu'il y a des manipulations à faire pour le passage de Windows vers linux

    Merci de m'aider

    mon erreur est la suivante
    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
    [Mon Sep 13 11:09:06 2010] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 mod_fcgid/2.3.4 PHP/5.3.2-1ubuntu4.2 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2010-01-10) mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
    [Mon Sep 13 11:43:50 2010] [error] [client 172.xx.x.xxx] File does not exist: /var/www/favicon.ico
    [Mon Sep 13 11:44:23 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(Zend/Auth/Adapter/DBTable.php): failed to open stream: No such file or directory in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:44:23 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(): Failed opening 'Zend/Auth/Adapter/DBTable.php' for inclusion (include_path='/var/www/ticket_incident/application/../library:.:/var/www/ticket_incident/library/Zend/Auth/Adapter:/var/www/ticket_incident/library:/var/www/ticket_incident/application/models:.:/usr/share/php:/usr/share/pear') in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:44:23 2010] [error] [client 172.xx.x.xxx] PHP Fatal error:  Class 'Zend_Auth_Adapter_DBTable' not found in /var/www/ticket_incident/application/controllers/IndexController.php on line 44, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:44:23 2010] [error] [client 172.xx.x.xxx] File does not exist: /var/www/favicon.ico
    [Mon Sep 13 11:44:34 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(Zend/Auth/Adapter/DBTable.php): failed to open stream: No such file or directory in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:44:34 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(): Failed opening 'Zend/Auth/Adapter/DBTable.php' for inclusion (include_path='/var/www/ticket_incident/application/../library:.:/var/www/ticket_incident/library/Zend/Auth/Adapter:/var/www/ticket_incident/library:/var/www/ticket_incident/application/models:.:/usr/share/php:/usr/share/pear') in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:44:34 2010] [error] [client 172.xx.x.xxx] PHP Fatal error:  Class 'Zend_Auth_Adapter_DBTable' not found in /var/www/ticket_incident/application/controllers/IndexController.php on line 44, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:45:14 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(Zend/Auth/Adapter/DBTable.php): failed to open stream: No such file or directory in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:45:14 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(): Failed opening 'Zend/Auth/Adapter/DBTable.php' for inclusion (include_path='/var/www/ticket_incident/application/../library:.:/var/www/ticket_incident/library/Zend/Auth/Adapter:/var/www/ticket_incident/library:/var/www/ticket_incident/application/models:.:/usr/share/php:/usr/share/pear') in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:45:14 2010] [error] [client 172.xx.x.xxx] PHP Fatal error:  Class 'Zend_Auth_Adapter_DBTable' not found in /var/www/ticket_incident/application/controllers/IndexController.php on line 44, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:52:22 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(Zend/Auth/Adapter/DBTable.php): failed to open stream: No such file or directory in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:52:22 2010] [error] [client 172.xx.x.xxx] PHP Warning:  include_once(): Failed opening 'Zend/Auth/Adapter/DBTable.php' for inclusion (include_path='/var/www/ticket_incident/application/../library:.:/var/www/ticket_incident/library/Zend/Auth/Adapter:/var/www/ticket_incident/library:/var/www/ticket_incident/application/models:.:/usr/share/php:/usr/share/pear') in /var/www/ticket_incident/library/Zend/Loader.php on line 146, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:52:22 2010] [error] [client 172.xx.x.xxx] PHP Fatal error:  Class 'Zend_Auth_Adapter_DBTable' not found in /var/www/ticket_incident/application/controllers/IndexController.php on line 44, referer: http://172.xx.x.xxx/ticket_incident/public/index/login
    [Mon Sep 13 11:52:22 2010] [error] [client 172.xx.x.xxx] File does not exist: /var/www/favicon.ico
    voici mon index.php qui se trouve dans ticket_incident/public
    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
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    <?php
     
    // Define path to application directory
    defined('APPLICATION_PATH')
        || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
     
    // Define application environment
    defined('APPLICATION_ENV')
        || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
     
    // Ensure library/ is on include_path
    set_include_path(implode(PATH_SEPARATOR, array(
        realpath(APPLICATION_PATH . '/../library'),
    realpath(APPLICATION_PATH . '/models'),
        get_include_path(),
    )));
     
     
    /** Zend_Application */
    require_once 'Zend/Application.php';
     
    // Create application, bootstrap, and run
    $application = new Zend_Application(
        APPLICATION_ENV,
        APPLICATION_PATH . '/configs/application.ini'
    );
     
    $application->bootstrap()
                ->run();

  2. #2
    Membre chevronné Avatar de manuscle
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2004
    Messages
    488
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Distribution

    Informations forums :
    Inscription : Septembre 2004
    Messages : 488
    Par défaut
    Salut,

    Si tu avais un problème d'include_path ça aurait planté dès index.php car il n'aurait pas trouvé 'Zend/Application.php';

    Dans le message d'erreur il te dit qu'il ne trouve pas Zend/Auth/Adapter/DBTable.php ce qui est normal vu que Zend/Auth/Adapter/DBTable.php n'existe pas dans la librairie de Zend

    Je pense qu'il trouvera Zend/Auth/Adapter/DbTable.php.

    T'a un problème de casse je pense

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 102
    Par défaut
    Merci beaucoup et très bien vu.
    Ce qui est curieux est que le projet marche très bien sous Windows avec l'environnement décrit dans mon message et la casse n'a posé aucun problème.

    Merci encore une deuxième fois

  4. #4
    Membre chevronné Avatar de manuscle
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2004
    Messages
    488
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Distribution

    Informations forums :
    Inscription : Septembre 2004
    Messages : 488
    Par défaut
    Je pense que c'est lié au fait que la casse n'a pas d'importance sous windows, ToTo.txt et toto.txt représente le meme fichier.

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 102
    Par défaut
    C'est bien ça

    Merci beaucoup

  6. #6
    Membre confirmé
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    102
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 102
    Par défaut
    Bonjour

    Comme je l'ai déjà mis dans un autre endroit de ce forum, le problème de casse entre Windows et linux est un vrai casse-tête.
    Conseil à ceux qui travaille sous Window et souhaite déployer sous Linux, ne faites pas la même erreur que moi car j'ai souffert pour renommer tout mes controlleurs, mes tables, mes Textarea....
    N'attendez pas la dernière minute pour dire ça marche bien sous Windows, donc ça doit marcher sous Linux.

    Par contre, s'il est possible de paramétrer linux pour qu'il ne soit pas sensible à la casse, ça serait le top

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

Discussions similaires

  1. problème après installation de zend sous ubuntu
    Par sadiyadieye dans le forum Zend Framework
    Réponses: 5
    Dernier message: 17/12/2011, 10h06
  2. Erreur démarrage Eclipse sous ubuntu 8
    Par apolo113 dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 04/11/2008, 10h23
  3. Réponses: 3
    Dernier message: 30/04/2008, 22h28
  4. pb wifi sous ubuntu 7.10 et erreur bios
    Par moi89 dans le forum Réseau
    Réponses: 1
    Dernier message: 21/11/2007, 08h12
  5. [débutant] erreurs après installation sous windows
    Par Lhetre dans le forum Modules
    Réponses: 2
    Dernier message: 22/06/2007, 17h03

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