Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Pages: 1
Salut tout Le monde :
J'essaye depuis une semaine d'installer le framework zend en local (Easyphp) mais je n'arrive pas l'installer.
Si quelqun peut m'aider.
voila j'ai mis un dossier lib sous www dont j'ai mis la library de zend franmework
Mon site s'appelle monsite il est sous www
C:\Program Files\EasyPHP 2.0b1\www\monsite
monsite
\php
\ctrl
\models
\view
\public
\images
\scripts
\styles
J'ai défini mes variables comme suit
define("ROOT_URL","http://localhost/monsite/"); define("BASE_PATH","C:/Program Files/EasyPHP 2.0b1/www/"); define("BASE_URL","monsite/"); define("INCLUDE_PATH_SEPARATOR",":"); //Définition de l'include_path set_include_path( BASE_PATH.BASE_URL.INCLUDE_PATH_SEPARATOR. BASE_PATH.BASE_URL.'php'.INCLUDE_PATH_SEPARATOR. BASE_PATH.BASE_URL.'php/view'.INCLUDE_PATH_SEPARATOR. BASE_PATH.'lib'.INCLUDE_PATH_SEPARATOR. get_include_path());
Le résultat me donne deux erreurs
Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\EasyPHP 2.0b1\www\monsite\index.php on line 18
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='C:/Program Files/EasyPHP 2.0b1/www/monsite/:C:/Program Files/EasyPHP 2.0b1/www/monsite/php:C:/Program Files/EasyPHP 2.0b1/www/monsite/php/view:C:/Program Files/EasyPHP 2.0b1/www/lib:.;C:\PROGRA~1\EASYPH~1.0B1\\php5\pear\') in C:\Program Files\EasyPHP 2.0b1\www\monsite\index.php on line 18
Merci si quelqun peut m'aider
Hors ligne
Oû se trouve ta library Zend ?
Car je ne vois pas de path qui pointe directement vers la library.
Par exemple :
define("BASE_LIBRARY","C:/Program Files/EasyPHP 2.0b1/library");
Oû /library/ contient un dossier /Zend/ contenant la library.
(je te conseil d'utiliser Zend Core plutot que EasyPhp, bien que ton problème ne vient pas de cela)
Hors ligne
Ok ouais j'ai pas vu qu'il été bien dans l'include path :
BASE_PATH.'lib'.INCLUDE_PATH_SEPARATOR.
Je te conseille fortement de mettre ta library en dehors de ton www, bien que en local, c'est pas forcement utile (en fait, c'est utile quand tu dois gérer plusieur app en local, ainsi tu te base toujours sur la même library).
Pour ton problème, je ne vois pas, cela vient -peut-être- de l'espace dans l'url (EasyPHP 2.0b1), mais cest pas sûr
Hors ligne
Remarques qui n'apporte rien à ton problème:
- En alternative à EasyPHP il existe aussi Wamp
- Au lieu d'utiliser INCLUDE_PATH_SEPARATOR, utilise PATH_SEPARATOR, qui est une constante par défaut de PHP (pas besoin de la definir) qui s'adapte à l'environnement où tu te trouve (Linux/Windows) contrairement à INCLUDE_PATH_SEPARATOR.
Hors ligne
ok je vais installer le WampServer et la première erreur c'est à partir du fichier .htaccess qui contient le code suivant
RewriteEngine on
RewriteRule .* index.php
php_flag magic_quotes_gpc off
php_flag register_globals off
J'ai l'erreur suivante
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
T'as une idée ça peux être koi???:
Dernière modification par Nessma (08-01-2008 11:04:09)
Hors ligne
Mr.MoOx a écrit:
As tu activer le module de réécriture?
C'est bon ça marchais
Merci
Hors ligne
C'est bon j'ai pu installer le framework mais avec WampServer et non easyphp
Merci pour vos conseils
Hors ligne
Pages: 1