Tout est dans le titre !
J'essaie le tutoriel "Démarrez avec Zend Framework 2".
J'ai une machine sous Mageia 2.
J'ai installé ZendFramework-2.1.4 dans /usr/share/php et créé un lien symbolique "zf2" dans le même répertoire.
J'ai modifié le include_path dans /etc/php.ini comme suit :
include_path = ".:/usr/lib64/php/:/usr/share/pear/:/usr/share/php/:/usr/share/php/zf2/library"
J'ai récupéré le fichier ZendSkeletonApplication-master.tar et l'ai décompressé dans /var/www/html puis renommé le répertoire créé en zf2-tutorial.
J'en arrive donc à l'étape suivante :
Pour installer Zend Framework 2 dans votre application, vous devez simplement taper :
1 2
|
php composer.phar install |
Mais rien ne passe !
Sur le tutoriel original, il y a une commande suppélementaire :
To install Zend Framework 2 into our application we simply type:
1 2
| php composer.phar self-update
php composer.phar install |
Les deux commandes ne renvoient pas d'erreur mais pas non plus ce qui est annoncé par le tutoriel :
Installing dependencies from lock file
- Installing zendframework/zendframework (dev-master)
Cloning 18c8e223f070deb07c17543ed938b54542aa0ed8
Generating autoload files
J'ai quand même essayé de faire la suite, c'est à dire la configuration du vhost, en créant le fichier /etc/httpd/conf/vhosts.d/zf2-tutorial_vhost.conf comme suit :
1 2 3 4 5 6 7 8 9 10 11 12
| NameVirtualHost *:80
<VirtualHost *:80>
ServerName zf2-tutorial.localhost
DocumentRoot /var/www/html/zf2-tutorial/public
SetEnv APPLICATION_ENV "development"
<Directory /var/www/html/zf2-tutorial/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost> |
J'ai ajouté cette ligne dans mon fichier /etc/hosts :
127.0.0.1 zf2-tutorial.localhost
Mais quand j'essaie d'accéder au site, j'ai une jolie page blanche ! 
Une idée ?
Partager