LoginSignup
1
1

More than 5 years have passed since last update.

Amazon Linux 上でとりあえずPHPの開発環境っぽいのをざっと構築するシェルスクリプトを書いた

Last updated at Posted at 2015-10-22

以下。
https://gist.github.com/YU81/4ddafe488f0bece58c28
HEADのrawのURLは以下。
https://gist.githubusercontent.com/YU81/4ddafe488f0bece58c28/raw/InitAmazonLinux_201503_for_PHP5.6.sh

やってることは以下。

  • remiリポジトリの追加
  • PHP5.6とMySQLのインストール
  • なんとなく必要になりそうなPHPのモジュールと、依存関係のあるパッケージの明示的なインストール
  • あるといいPHP以外のコマンドをインストール
  • wwwユーザの作成
  • composerのインストール
  • FuelPHP, Laravel, Lumen のインストール
  • nginx のconfファイルをFuelPHP前提っぽい感じに差し替え。
  • php-fpm をwwwユーザで動作させるようにconfファイルを差し替え。

AMIから起動して、以下やったらだいたい通る。

curl https://gist.githubusercontent.com/YU81/4ddafe488f0bece58c28/raw/InitAmazonLinux_201503_for_PHP5.6.sh | sh

wget して修正して実行でももちろんOK。
本来自分用の秘伝のナントカ系なので。

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