I am trying to work with Symfony2 with the new PHP 5.4 and its built-in server. I downloaded Symfony2 and unzipped it on my server and added this router.php file, like the one mentioned here :
<?php if (isset($_SERVER['SCRIPT_FILENAME'])) { return false; } else { require 'Symfony/web/app.php'; } ?>
The web server itself works because if I replace router.php
with something simple, like phpinfo();
, it outputs it correctly, but with the specified router.php
script the site remains white / blank. If I open developer tools, it returns 500 Server error
.
I start the server as follows:
/home/php54/php -S 0.0.0.0:88 router.php
In my shell, I have no error message output.
source share