简体   繁体   中英

How to run a Symfony app without using the built-in server?

In the documentation is clearly explained how to run the built-in server to run a Symfony App.

Ok, all works well and i'm very happy, but:

How can i run a Symfony App without using the server but simply something like http://localhost/path/to/symfonyApp/web/app.php ?

Here the documentation: http://symfony.com/doc/current/cookbook/web_server/built_in.html

也许这样可以帮助: 使用wamp安装Symfony 2

在文档中也对此进行了说明: 配置Web服务器

It's not too hard, if you're running a local server (Apache/wamp) and have PHP configured to it already. If you're on a windows machine you'll want to run it with a nice linux-esque terminal like Cygwin . You'll also want to have Composer to automate a lot of your Symfony tasks.

Then just download Symfony and put it in your web facing folder (htdocs, www, whatever you call it) and configure it according to what you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM