Search code examples
phpcommand-prompt

php build in server is not showing document root


the problem: I try to set up the build in php test server whit the commanprompt i use the command php -S localhost:4100 and it outputs this

enter image description here

but acording to wiki's and so it shoud output this

enter image description here

note: this is a recreation

info: i am running PHP 7.4.6 (cli) (built: May 12 2020 11:38:54) ( ZTS Visual C++ 2017 x64 ) and my php filles (where i unzipped it in the installation) is C:\static\php

- thanks already julian


Solution

  • You are comparing Windows output instead of Linux output. If Your server service is available under localhost:4100 then everything is OK so far :)