LoginSignup
5
4

More than 5 years have passed since last update.

Cloud9でLEMP7-fpm環境をサクっと作り、concrete5を入れてみた

Posted at

concrete5で手軽にnginx+PHP7-fpm試したいな〜 と思ったので、「せや、Cloud9に入れたれ!」と思ったので、どうしたらいいのか考えてみました。

既に用意してくれてるヤツがおったで!

とっても親切な人がいました

使い方

wgetでシェルスクリプトを取ってきて実行します。

bash
wget -O - https://raw.githubusercontent.com/GabrielGil/c9-lemp/master/install.sh | bash

起動

bash
lemp start

終了

bash
lemp stop

いちいちnginxとMySQLをそれぞれ起動したり終了したりせずに済むので便利ですね。

concrete5のインストール

コンクリートファイブジャパンのKatzさんが便利なシェルスクリプトを用意してくれています。こちらの記事を参考にインストールすればOK

nginx.confの設定

concrete5のパスの読み出し方に対応させるため、location /のところを下記の内容に変更します。

/usr/local/nginx/conf/nginx.conf
        location / {
            index  index.php;
            if (!-e $request_filename) {
            rewrite ^ /index.php last;
            }
        }   

これまた、[コンクリートファイブジャパンのiwamon様が書かれた記事](http://qiita.com/jey0taka/items/b72ec37dfe308bd735ee)を参考に致しました。

起動してみよう

lemp startした後に、Previewボタンを押せば、concrete5のインストール画面になるかと思います。

インストールが完了したら、その速さにシビれてください。PHP5.5.9との比較情報はコチラ

お疲れ様でした。

5
4
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
5
4