I automatically generated a Symfony 3 application with the CLI provided by it, and I placed it in my folder www/html, which my apache2 server serves its files:
Then I tried to do:
$ php bin/console server:start -vvv
$ sudo php bin/console server:start -vvv
$ php bin/console server:start 127.0.0.1:2040
but I keep getting the following error:
[2016-03-18 00:06:14] php.DEBUG: fsockopen(): unable to connect to 127.0.0.1:8000 (Connection refused) {"type":2,"file":"/var/www/html/sample_symfony_blog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/ServerCommand.php","line":59,"level":28928}
I can’t find a specific answer to what this might be, except that the port is busy, so I also tried using port 2040.
Symfony's official documentation talks about some user rights on a web server and what should the CLI for PHP have the same permissions or something else? I'm not used to setting up Apache / Ubuntu, so I don't know what to do to check it out in this regard. Any hints?