Ich möchte Server von Symfony verwenden, um meine Apache2 zuerst zu schließen.So beheben Sie php.DEBUG: fsockopen(): Verbindung abgelehnt?
service apache2 stop
Mein Befehl Geschichte in symfony:
symfony new myblog lts
cd /home/debian8/myblog
php app/console server:run -vvv
[2016-03-19 15:14:11] php.DEBUG: fsockopen(): unable to connect to 127.0.0.1:8000 (Connection refused) {"type":2,"file":"/home/debian8/myblog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/ServerCommand.php","line":59,"level":28928}
[OK] 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' '/home/debian8/myblog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php'
ERR [Sat Mar 19 15:14:36 2016] 127.0.0.1:36496 [200]:/
ERR [Sat Mar 19 15:14:37 2016] 127.0.0.1:36497 [200]: /_wdt/cf9a53
ERR [Sat Mar 19 15:14:37 2016] 127.0.0.1:36498 [200]: /favicon.ico
ERR [Sat Mar 19 15:14:37 2016] 127.0.0.1:36499 [200]: /favicon.ico
ERR
Einige Material sagen, es ist die Tatsache, dass Port 8000 hören Sie nicht in das Problem auf Ergebnis.
Wie man den eingebauten Dev-Server in symfony richtig einstellt?