Reputation: 41
I am new to ubuntu.I am using symfony 3 on ubuntu 14.04 LTS. When i run php bin/console server:run it gets started but as i try to open it in my browser as localhost:8000. It shows [ERROR] Built-in server terminated unexpectedly.
Upvotes: 1
Views: 963
Reputation: 41
It was an permissions issue with log files.I changed the permissions and now its working fine.
Upvotes: 2
Reputation: 7764
I suggest you use the debug URL when testing. So in your case try posting the following URL in your browser:
http://127.0.0.1:8000/app_dev.php
The debug URL might show more useful information.
You can also edit the app_dev.php file to allow other hosts (remote) to access it. It's located in the web
folder. The line to edit to allow remote hosts contains the following code: !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1'])
Just add your remote IP address in there, for example:
!(in_array(@$_SERVER['REMOTE_ADDR'], ['192.168.0.20', '127.0.0.1', 'fe80::1', '::1'])
Upvotes: 0