LoginSignup
0
0

More than 1 year has passed since last update.

ローカル環境を立ち上げる

Posted at

概要

PHPでのローカルサーバーの立ち上げ方。

手順

前提1:PHPはインストールされている状態
前提2:Macを使用

  1. ターミナルを立ち上げる
  2. 立ち上げたい「phpファイル」や「htmlファイル」のあるディレクトリに移動する (cd {移動したいディレクトリのパス})
  3. コマンド :puts 'php -S localhost:8080'
  4. ブラウザで puts 'http://localhost:8080/'にアクセス
  5. 表示される
0
0
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
0
0