How to configure symfony project in local server?

岁酱吖の 提交于 2019-12-11 06:10:07

问题


I am beginner for symfony. I have to configure the already developed project that is built using symfony. I changed the database information but when browse localhost/myproject/web there is nothing displayed. What can i do to configure the project in local server. I have created the database as well. Hope to get help. Thanks ..........


回答1:


you need to point apache to the web folder in your symfony project. or if your project reside inside apache web root you could use:

http://localhost/myproject/web/index.php but that won't show any errors. insted of that you could use:

http://localhost/myproject/web/frontend_dev.php where frontend is the name of front controler ( this file is in web/ folder).

and if then you don't get any output look into your apache server error log to find why project isn't working.

few resolves:

when in symfony project root execute this in command prompt:

php symfony cache:clear
php symfony fix-perms

and then try url above.

more info here



来源:https://stackoverflow.com/questions/653760/how-to-configure-symfony-project-in-local-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!