简体   繁体   中英

Symfony - Applications run without Apache server

I used to think that the internal web server which SYMFONY uses is part of APACHE server, which runs with the following command:

$ php bin/console server:start

But as I turn off the Apache server on my PC (windows 10) the internal web server still producing without any problems, so is it that the internal web server has nothing to do with the Apache server or it's something unusual?

PHP provides a standalone built-in web server .

You can try it by running php -S localhost:3000 -t web at the root directory of your project then browsing http://localhost:3000/app_dev.php .

All commands that are part of the server:* namespace are related to the PHP built-in server .

For more informations, look at the command directly.

它在服务器中使用PHP构建

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