需要zf2安装的一些帮助 [英] need some assistance for zf2 installation

查看:126
本文介绍了需要zf2安装的一些帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Windows 7 32位和xampp 1.8.1。

我遵循 http://samminds.com/2012/07/zend-framework-2-installation-on-xampp-for-windows/ 安装zf2。 我下载了 ' http://msysgit.googlecode.com/files/Git-1.8.4-preview20130916.exe ,并安装在 D :\Program Files\Git



我通过命令'git'安装了我的项目 -


$ $ b pre $ g $ git clone git: c>

,我的zend骨架安装在 F:\xampphtdocszen 文件夹中。



文件夹结构是:



现在教程说要输入:

  php composer.phar self-update 
php composer.phar安装

这些行,但是当我键入

  php composer .phar自更新

在git cli中并按下'Enter'后出现此错误 -


现在要成功安装zf2?请详细告诉我(详细文件夹路径,详细cli命令等)。



- 感谢。



<



我在尝试时遇到了这个错误 -



pre> php composer.phar install

错误:





已解决



我必须取消注释此行在php.ini上 -

  extension = php_openssl.dll 


解决方案

XAMPP的文件夹结构并非如此:
结构必须像F:\xampp\htdoc\ZendSkeletonApplication



安装zend framework 2的步骤:
$ b <1> Git clone https://github.com/zendframework/ZendSkeletonApplica
(重命名项目)我的项目名称为Zf2BlogTutorial
C:\xampp\htdoc\Zf2BlogTutorial



2 )为您的项目创建一个虚拟主机(在C:\xampp\apache\conf\extra\httpd-vhosts.conf的末尾复制此代码)

 < VirtualHost *:80> 
DocumentRootc:/ xampp / htdocs / Zf2BlogTutorial / public
ServerName local.blog
ServerAlias local.blog
< Directoryc:/ xampp / htdocs / Zf2BlogTutorial /公共>
DirectoryIndex index.php
AllowOverride全部
允许,拒绝
全部
允许< / Directory> < /虚拟主机>



3)转到C:\ Windows \ System32 \drivers\etc\hosts
并在最后加上:

  127.0.0.1 local.blog 

4)去Zf2BlogTutorial(项目文件夹)

5)

  php composer.phar安装

php composer.phar自更新

5) http://local.blog 在浏览器上,你会看到zend框架2页面


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

解决方案

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

这篇关于需要zf2安装的一些帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆