当我在php服务器上使用symfony 2.8和更低版本时,项目工作正常,但是当我使用symfony 3时,我得到500服务器错误(该错误不是来自symfony错误处理程序,它来自Chrome。它有。没有日志文件也没有缓存)。
为什么我不能使用Symfony 3。 有来自服务器的php配置。 查看latest Steffen Forkmann's post处的完整内容
["http://a.tile3.opencyclemap.org/landscape/{z}/{x}/{y}.png","http://b.tile3.opencyclemap.org/landscape/{z}/{x}/{y}.png","http://c.tile3.opencyclemap.org/landscape/{z}/{x}/{y}.png"]
["http://a.tile.openstreetmap.org/{z}/{x}/{y}.png","http://b.tile.openstreetmap.org/{z}/{x}/{y}.png","http://c.tile.openstreetmap.org/{z}/{x}/{y}.png"]
["http://otile1.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png","http://otile2.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png","http://otile3.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png","http://otile4.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png"]
["http://a.tile.stamen.com/watercolor/{z}/{x}/{y}.png","http://b.tile.stamen.com/watercolor/{z}/{x}/{y}.png","http://c.tile.stamen.com/watercolor/{z}/{x}/{y}.png","http://d.tile.stamen.com/watercolor/{z}/{x}/{y}.png"]
["http://a.tile2.opencyclemap.org/transport/{z}/{x}/{y}.png","http://b.tile2.opencyclemap.org/transport/{z}/{x}/{y}.png","http://c.tile2.opencyclemap.org/transport/{z}/{x}/{y}.png"]

<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>
&#13;
我的服务器日志:
<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>
答案 0 :(得分:2)
查看HTML代码,您使用的是PHP 5.4
实际上,Symfony3需要最低版本的PHP 5.5.9,而Symfony2则需要最低版本的PHP 5.3.9。
我认为这是你的问题。
另外,如果您要升级PHP版本,我建议您考虑使用PHP 7.0。