【发布时间】:2016-01-05 03:57:55
【问题描述】:
当我在 php 服务器上使用 symfony 2.8 及更低版本时,项目运行良好,但是当我使用 symfony 3 时,我收到 500 服务器错误(该错误不是来自 symfony 错误处理程序,而是来自 Chrome。也没有日志文件缓存)。
为什么我不能使用 Symfony 3。 有来自服务器的 php 配置。 在https://jsfiddle.net/guervyl/o66hsyu4/查看全文
<style type="text/css"> body {
background-color: #ffffff;
color: #000000;
}
body,
td,
th,
h1,
h2 {
font-family: sans-serif;
}
pre {
margin: 0px;
font-family: monospace;
}
a:link {
color: #000099;
text-decoration: none;
background-color: #ffffff;
}
a:hover {
text-decoration: underline;
}
table {
border-collapse: collapse;
}
.center {
text-align: center;
}
.center table {
margin-left: auto;
margin-right: auto;
text-align: left;
}
.center th {
text-align: center !important;
}
td,
th {
border: 1px solid #000000;
font-size: 75%;
vertical-align: baseline;
}
h1 {
font-size: 150%;
}
h2 {
font-size: 125%;
}
.p {
text-align: left;
}
.e {
background-color: #ccccff;
font-weight: bold;
color: #000000;
}
.h {
background-color: #9999cc;
font-weight: bold;
color: #000000;
}
.v {
background-color: #cccccc;
color: #000000;
}
.vr {
background-color: #cccccc;
text-align: right;
color: #000000;
}
img {
float: right;
border: 0px;
}
hr {
width: 600px;
background-color: #cccccc;
border: 0px;
height: 1px;
color: #000000;
}
</style>
<body>
<div class="center">
<table border="0" cellpadding="3" width="600">
<tr class="h">
<td>
<h1 class="p">PHP Version 5.4.41</h1>
</td>
</tr>
</table>
<br />
<table border="0" cellpadding="3" width="600">
<table border="0" cellpadding="3" width="600">
<tr class="v">
<td>
This program makes use of the Zend Scripting Language Engine:
<br />Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
<br /> with the ionCube PHP Loader + Intrusion Protection from ioncube24.com (disabled) v5.0.7, Copyright (c) 2002-2015, by ionCube Ltd.
<br /> with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
<br />
</td>
</tr>
</table>
</div></body>
我的服务器日志:
Mon, 04 Jan 2016 19:46:51 -0500 AH01630: client denied by server configuration: /home/vol12_3/byethost16.com/b16_17125264/mine.byethost16.com/htdocs/src/
Mon, 04 Jan 2016 19:46:51 -0500 AH01630: client denied by server configuration: /home/vol12_3/byethost16.com/b16_17125264/mine.byethost16.com/htdocs/app/
Mon, 04 Jan 2016 19:46:51 -0500 AH00128: File does not exist: /home/vol12_3/byethost16.com/b16_17125264/mine.byethost16.com/htdocs/favicon.ico
Mon, 04 Jan 2016 19:47:35 -0500 AH00128: File does not exist: /home/vol12_3/byethost16.com/b16_17125264/mine.byethost16.com/htdocs/icons/text.gif
Mon, 04 Jan 2016 19:47:46 -0500 AH00128: File does not exist: /home/vol12_3/byethost16.com/b16_17125264/mine.byethost16.com/htdocs/favicon.ico
Mon, 04 Jan 2016 20:45:53 -0500 AH00128: File does not exist: /home/vol12_3/byethost16.com/b16_17125264/mine.byethost16.com/htdocs/web/app_dev.php
Mon, 04 Jan 2016 20:47:51 -0500 AH00128: File does not exist: /home/vol12_3/byethost16.com/b16_17125264/mine.byethost16.com/htdocs/web/
【问题讨论】:
-
向我们展示您服务器的错误日志。
-
您的网络服务器不允许访问您的应用程序的源文件,并且找不到很多其他文件。检查您的 Web 服务器配置和相关的文件权限。您是否也真的尝试访问公开服务器上的开发前端控制器?