The following commands can be used if python or php is installed.
The directory where you executed the command will be webroot.
python
command
python -m http.server --cgi 8000
command
python -m CGIHTTPServer 8000
php
php5.4〜
command
php -S localhost:8000
If neither python nor php specify a port number, 8000 is assigned by default.
Recommended Posts