Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony server:run error

Tags:

nginx

symfony

I'm getting this error when I'am trying to run myproject, symfony2 project. I think that the error came up because on that port 8000 I have ajenti server running with nginx.

Server running on http://127.0.0.1:8000

Quit the server with CONTROL-C.
  RUN  '/usr/bin/php5' '-S' '127.0.0.1:8000' '/srv/myproject/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php'
  RES  1 Command did not run successfully

What should I do ?

I checked files permissions. sudo chmod 777 -R /srv/myproject

like image 862
Tarida George Avatar asked Jan 10 '23 03:01

Tarida George


1 Answers

use the command like this:

php app/console server:run 127.0.0.1:8080

to run the server on port 8080 or change the port to your own preference

like image 139
Udan Avatar answered Jan 18 '23 19:01

Udan