note 119903 deleted from features.commandline.webserver by cmb
| From: | cmb@php.net | Date: | Thu, 17 Sep 2020 07:45:56 +0000 |
| Subject: | note 119903 deleted from features.commandline.webserver by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215133@lists.php.net to get a copy of this message | ||
Note Submitter: ohcc at 163 dot com
----
Do NOT use the -t option if you want to use a router script, you can change current working
directory to the web document root before launching the php built-in web server.
[works fine]
cd /d C:\Web\Server
php -S www.51-n.com:80 router.php -n -d expose_php=0 -d display_errors=0 -d
extension_dir="ext"
[always gets a 500 error]
php -S www.51-n.com:80 router.php -t C:\Web\Server -n -d expose_php=0 -d display_errors=0 -d
extension_dir="ext"