LoginSignup
6
6

More than 5 years have passed since last update.

vagrant+nginxにLarave4導入

Last updated at Posted at 2014-09-02

前提条件
 centosにnginxとmysqlとphpとcomposerをインストール済み

・自分は下記の手順で環境を構築
・vagrantで作ったローカル環境(centOS)にnginxを導入してみた
 http://qiita.com/TetsuTaka/items/68900b57309b89a8ed7c
・vagrant+CentOSにmysql5.6を導入
 http://qiita.com/TetsuTaka/items/682cac36c34a93992ace
・mysqlを自動接続する様にする
 http://qiita.com/TetsuTaka/items/acdf7c440457258a1214
・vagrant+CentOSにphp5.5(当時の最新版)を導入
 http://qiita.com/TetsuTaka/items/8bf8877a7d603fcaf9ef
・vagrant+CentOSにcomposerを導入
 http://qiita.com/TetsuTaka/items/1431bb202e1a00777f82
※「.php」を使える様にする。phpinfo()を確認する方法
 http://qiita.com/utano320/items/36b6eac2bbd5bb5657f6

・Larave4をインストール
自分はドキュメントルートが「/var/www/html」なので、その配下で下記を実施。
※ phpのインストール時にphp-mcryptをインストールしていないとエラーが出ます

composer create-project laravel-ja/laravel プロジェクト名 --prefer-dist

ではでは、publicの中のindex.phpを拝見しますかね。。。
「Error_in_exception_handler」・・・?

エラーにハマりました。

まずはこちらを見つける。
http://sugi511.hatenablog.com/entry/2014/08/11/Laravel4でインストールした時に「Error_in_exception_handler.」

んで、chmodが機能せず、こちらを見つける。
http://www.webcyou.com/?p=5464

解決!

無事にindex.phpが表示され、Larave4の画面が見れました^^

・Larave4導入の参考サイト

http://www.monster-dive.com/blog/web_system/20140328_001128.php
6
6
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
6
6