need some assistance for zf2 installation

天涯浪子 提交于 2019-12-12 18:25:17

问题


I'm using windows 7 32-bit, and xampp 1.8.1.

I followed http://samminds.com/2012/07/zend-framework-2-installation-on-xampp-for-windows/ to install zf2.

I downloaded 'http://msysgit.googlecode.com/files/Git-1.8.4-preview20130916.exe' and installed in "D:\Program Files\Git".

I installed my project by 'git' by the command-

git clone git://github.com/zendframework/ZendSkeletonApplication.git F:\xampp\htdocs\zen

and my zend skeleton was installed in "F:\xampphtdocszen" folder.

the folder structures are:

now the tutorial says to type:

php composer.phar self-update
php composer.phar install

these lines but when I typed

php composer.phar self-update

in git cli and pressed 'Enter' then got this error-

what should I do now to install zf2 successfully ? please tell me with detail (detail folder path,detail cli command etc.)

-Thanks.

Edit:

I got this error while trying-

php composer.phar install

error:

RESOLVED

I had to uncomment this line on php.ini-

extension=php_openssl.dll

回答1:


Folder structure for XAMPP is not rite: Structure must be like F:\xampp\htdoc\ZendSkeletonApplication

Steps to install zend framework 2:

1) Git clone https://github.com/zendframework/ZendSkeletonApplication (Rename the project)My project name was Zf2BlogTutorial C:\xampp\htdoc\Zf2BlogTutorial

2)Create a virtual host for your project(copy this code at the end of C:\xampp\apache\conf\extra\httpd-vhosts.conf )

<VirtualHost *:80>
    DocumentRoot "c:/xampp/htdocs/Zf2BlogTutorial/public"
    ServerName local.blog
    ServerAlias local.blog
    <Directory "c:/xampp/htdocs/Zf2BlogTutorial/public">
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory> </VirtualHost>

3) go to C:\Windows\System32\drivers\etc\hosts and put this at the end:

127.0.0.1      local.blog

4) go to Zf2BlogTutorial(project folder)

5)

php composer.phar install

php composer.phar self-update

5)http://local.blog on browser and you will see zend framework 2 page



来源:https://stackoverflow.com/questions/19484511/need-some-assistance-for-zf2-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!