Reputation: 838
When I use symfony 2.8 and lower on a php server the project works fine but when I use symfony 3 I get 500 server error (That error does not come from symfony error handler, it's from Chrome. There is no log file neither cache).
Why I cannot use Symfony 3. There is the php configuration from the server. See the full at 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>
My server log:
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/
Upvotes: 0
Views: 688
Reputation: 766
Seeing your HTML code, you are on PHP 5.4
Actually, Symfony3 require a minimum version of PHP 5.5.9, while Symfony2 require a minimum version of PHP 5.3.9.
I think that is your issue.
Also, if you will upgrade your PHP version, I'll advice you to consider PHP 7.0.
Upvotes: 2