关于XAMPP的Zend Framework 2.2.1

时间:2013-06-26 11:47:01

标签: xampp zend-framework2

我正在尝试在XAMPP上安装ZendFramework最新版本。我在环境变量上添加了XAMPP目录.XAMPP服务器在8080端口上正常工作。之后我安装了git并分别运行以下命令:

git clone git://github.com/zendframework/ZendSkeletonApplication.git zendtest
cd zendtest
php composer.phar self-update
php composer.phar install

我没有收到任何错误。之后我将这些行添加到C:\ xampp \ apache \ conf \ extra \ http-vhosts.conf文件中:

<VirtualHost *:8080>

    <DocumentRoot "C:/xampp/htdocs/zendtest/public"
    ServerName www.zendtest.loc zendtest.loc
    ServerAlias zendtest.loc
    <Directory "C:/xampp/htdocs/zendtest/public">
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *:8080>
  <DocumentRoot "C:\xampp\htdocs">
  ServerName localhost
</VirtualHost>

并将此行添加到主机文件:

127.0.0.1:8080 zendtest.loc localhost

通过这些调整,XAMPP上的apache服务器不起作用。当我按下apache服务器的启动按钮时,XAMPP应用程序没有响应。每当我恢复http-vhosts.conf文件时,XAMPP都能正常工作。我做错了什么?

1 个答案:

答案 0 :(得分:0)

I am able to notice a typo error in the httpd-vhosts.conf file. Please replace this line <DocumentRoot "C:/xampp/htdocs/zendtest/public" with  DocumentRoot "C:/xampp/htdocs/zendtest/public" (remove the preceding angular bracket).

I checked this in my local box Xampp was refusing to start but works fine after removing the angular bracket.