繁体   English   中英

Zend Skeleton Apache无法重启

[英]Zend Skeleton Apache failed to restart

我正在关注官方网站上的指南: http//framework.zend.com/manual/2.0/en/user-guide/skeleton-application.html以开始使用Zend Skeleton应用程序。

输入composer命令后:

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

并设置虚拟主机,我进入“重新启动您的Web服务器”步骤。 在查看Apache2文件夹中的错误日志时,Apache无法重新启动:

[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>

因为您使用的是Windows,我认为您需要围绕路径引用:

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

你也可能需要使用转义反斜杠而不是正斜杠:

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM