Zend Framework2.0(zf2) Windows上安装配置
1.到https://github.com/zendframework/ZendSkeletonApplication下载zip包解压文件到根目录
2.cd到网站根目录,执行 C:\wamp\bin\php\php5.4.3\php.exe composer.phar self-update(PHP路径替换成你自己的安装路径) ,提示Downloading: 100% ,表示下载完成。
3.执行 C:\wamp\bin\php\php5.4.3\php.exe composer.phar install , 此时提示下载相关的包,耐心等待即可。
4.配置虚拟主机,这一步没有什么好说的,就是注意,把根目录配置到public ,例如我的:
<VirtualHost *:80>
ServerAdmin webmaster@qinrh-host.localhost
DocumentRoot “E:/website/zfp/public”
ServerName zfp.com
ServerAlias www.zfp.com
DirectoryIndex index.html index.php
<Directory “E:/website/zfp/public”>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
5.浏览器打开配置的虚拟机,如果看到以下页面表示安装成功。
来自:http://www.comelook.net/190.html


浙公网安备 33010602011771号