Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run php bin/console in symfony

Tags:

php

symfony

I'm new on symfony, after following instruction to install it, it said i have to run:

bin/console server:run 

i type it on my symfony instalation folder. but i got error:

Could not open input file: bin/console

and then i'm searching the answer in here and it told me to run app/console

bin/console server:run 

but it just got the same problem. is it i miss some bin folder here or something? since i can't see bin folder or app folder on my project root folder. here's my project folder structure: enter image description here

like image 521
Ying Avatar asked Nov 09 '22 00:11

Ying


1 Answers

You obviously cloned a Git repo, which does not contain all Symfony framework components.

You have to create symfony project through symfony installer http://symfony.com/doc/current/setup.html

or

with composer composer create-project symfony/framework-standard-edition my_project_name.

like image 148
Jan Rydrych Avatar answered Nov 15 '22 11:11

Jan Rydrych