LoginSignup
33
26

More than 5 years have passed since last update.

PHP ビルトインウェブサーバーを起動するコマンドのメモ

Last updated at Posted at 2015-07-20

PHP ビルトインウェブサーバーを起動するコマンド

$ php -S 0.0.0.0:8000

注意事項

  • ポート番号を指定しないと起動しない。
  • ポート番号は任意の番号で。
  • ポート番号 80 は利用できない。( Mac OSX 10.10.4 + PHP 5.4.36 にて確認。)
  • localhost:8000 とすると http://localhost:8000/ でのみアクセス可能。
    • IP アドレスやホスト名でもアクセスしたい場合は 0.0.0.0:8000 とする。
33
26
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33
26