2014-02-18 57 views
0

我按照官方網站上的指南:http://framework.zend.com/manual/2.0/en/user-guide/skeleton-application.html開始使用Zend Skeleton應用程序。Zend Skeleton Apache無法重啓

鍵入作曲家命令後:

php composer.phar self-update 
php composer.phar install 

,並建立虛擬主機,我得到的一步「重新啓動您的Web服務器」。 阿帕奇無法重新啓動,並期待在Apache2的文件夾中的錯誤日誌時:

[Tue Feb 18 23:38:50 2014] [error] [client 127.0.0.1] File does not exist: E:/Dev Soft/Zend/Apache2/htdocs/whmsg.js, referer: http://zf2-skeleton/ 
[Tue Feb 18 23:38:50 2014] [error] [client 127.0.0.1] File does not exist: E:/Dev Soft/Zend/Apache2/htdocs/whtopic.js, referer: http://zf2-skeleton/ 
[Tue Feb 18 23:38:50 2014] [error] [client 127.0.0.1] File does not exist: E:/Dev Soft/Zend/Apache2/htdocs/whutils.js, referer: http://zf2-skeleton/ 
[Tue Feb 18 23:38:50 2014] [error] [client 127.0.0.1] File does not exist: E:/Dev Soft/Zend/Apache2/htdocs/whproxy.js, referer: http://zf2-skeleton/ 
[Tue Feb 18 23:38:51 2014] [error] [client 127.0.0.1] File does not exist: E:/Dev Soft/Zend/Apache2/htdocs/whutils.js, referer: http://zf2-skeleton/ 
[Tue Feb 18 23:38:51 2014] [error] [client 127.0.0.1] File does not exist: E:/Dev Soft/Zend/Apache2/htdocs/whlang.js, referer: http://zf2-skeleton/ 
[Tue Feb 18 23:38:51 2014] [error] [client 127.0.0.1] File does not exist: E:/Dev Soft/Zend/Apache2/htdocs/whtopic.js, referer: http://zf2-skeleton/ 
[Tue Feb 18 23:40:53 2014] [notice] Parent: Received restart signal -- Restarting the server. 
[Tue Feb 18 23:40:53 2014] [notice] Child 5908: Exit event signaled. Child process is ending. 
Syntax error on line 3 of E:/Dev Soft/Zend/ZendServer/etc/sites.d/vhost_zf2-skeleton.conf: 
DocumentRoot takes one argument, Root directory of the document tree 
[Tue Feb 18 23:40:54 2014] [notice] Child 5908: Released the start mutex 
[Tue Feb 18 23:40:54 2014] [notice] Child 5908: All worker threads have exited. 
[Tue Feb 18 23:40:55 2014] [notice] Child 5908: Child process is exiting 

這是什麼一堆文件丟失的? 我錯過了什麼?

vhost_zf2-skeleton.conf:

<VirtualHost *:80> 
ServerName zf2-skeleton 
DocumentRoot E:/Dev Soft/ZF2-Skeleton/public 
SetEnv APPLICATION_ENV "development" 
<Directory E:/Dev Soft/ZF2-Skeleton/public> 
    DirectoryIndex index.php 
    AllowOverride All 
    Order allow,deny 
    Allow from all 
</Directory> 

回答

2

因爲你使用的是Windows,我認爲你需要的路徑周圍的報價:

DocumentRoot "E:/Dev Soft/ZF2-Skeleton/public" 

您可能還需要使用逃脫反斜槓而不是正斜槓:

DocumentRoot "E:\\Dev Soft\\ZF2-Skeleton\\public" 
+0

謝謝,它現在正在工作。沒想到它那麼簡單。 – Mick