I installed symfony 3, started the server and got the connection when I started the web server

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?

+4
2

, . Symfony 3 PHP 5.6, , PHP 7.1. , , .

, php bin/symfony_requirements. , php.ini xdebug.scream, . , - .

, -.

+2

, , /etc/php 5/cli/php.ini, , , php.ini , - , . , , , , - apache2 localhost: 80/my_project, localhost: 80/my_project/web, , , php-, . , :)

0

All Articles