I installed symfony 3, ran the server and got a connection refused when I ran the webserver
<p>I auto-generated a Symfony 3 application with the CLI they provide and I put it inside my <code>www/html</code> folder, which my apache2 server serves its files from:</p>

<p>Then I tried to do:</p>

<pre><code>$ php bin/console server:start -vvv

$ sudo php bin/console server:start -vvv

$ php bin/console server:start 127.0.0.1:2040 
</code></pre>

<p>but I keep getting the following error:</p>

<pre><code>[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} 
</code></pre>

<p>I can't find any concrete answer on what this could be, other than it could be that the port is busy, which is why I tried with port 2040 as well.</p>

<p>Symfony official's documentation talks about some user rights running the webserver and that the PHP CLI should have the same permissions or something? I'm not that used to configure Apache/Ubuntu so I don't know what to do to test it out in that regard. Any hints? </p>