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 suivantevoici 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 [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
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();
Partager