1

我正在尝试在 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 都会正常工作。我究竟做错了什么?

4

1 回答 1

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.
于 2013-11-27T07:17:39.073 回答