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>

そして、次の行を hosts ファイルに追加しました。

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 に答える