LoginSignup
1
1

More than 5 years have passed since last update.

【PHP覚書】ビルトインウェブサーバー

Last updated at Posted at 2016-10-16

PHPのバージョンを確かめる

$ php -v

現在のディレクトリに存在する、ディレクトリやファイルを表示

$ ls

現在いるディレクトリまでのパスを表示

$ pwd

別のディレクトリに移動する

$ cd パス

ウェブサーバーの起動

ルートにしたいディレクトリに移動してコマンドを入力すると起動
下記の場合は http://localhost:8080/ にアクセスすると表示

$ php -S localhost:8080

ウェブサーバーの終了

control + C

1
1
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
1
1