Reputation: 98
I've been using Symfony Built-in server, but now when I use the command: php bin/console server:start
it is not starting anymore. It says: couldn't open input file : bin/console
. How can I solve this problem ?
Upvotes: 0
Views: 9735
Reputation: 919
With symfony 5.x, (probably 4.x, I did not check), enter
symfony server:start
from your web application folder.
The symfony application can be reached in a browser with the URL returned by the command.
Upvotes: 0
Reputation: 2434
the error couldn't open input file : bin/console
means that it cannot find the bin
folder.
two possiblities :
php bin/console ...
command.php app/console ...
Upvotes: 0
Reputation: 795
Symfony version 5.0: symfony server:start
Before: php bin/console server:run
Upvotes: 0
Reputation: 38
You need to use the following command:
php app/console server:run
Upvotes: 2
Reputation: 1922
Just use app/console
instead of bin/console
.
On the documentation page you can select your current Symfony version. In Symfony 3.0 bin/console
is using. In early versions - app/console
.
Compare: Symfony 2.7 built-in web server and Symfony 3.0 built-in web server.
Upvotes: 2