LoginSignup
10
10

CentOS6.4にLaravelをインストールする

Last updated at Posted at 2013-11-23

Laravelで遊ぶためにインストールしようとしたら結構苦労したので
あの「You have arrived.」を見るまでにしたことをメモ。

必要なものインストール
yum -y install php php-mcrypt php-mbstring libmcrypt libmcrypt-devel libxml2 libxml2-devel openssl openssl-devel httpd httpd-devel

composerをインストール
curl -sS https://getcomposer.org/installer | php -- --install-dir=/bin

phpのバージョンアップ
cd /tmp/
wget http://jp1.php.net/get/php-5.5.6.tar.gz/from/this/mirror
tar xzvf php-5.5.6.tar.gz
cd php-5.5.6
./configure --with-apxs2=/usr/sbin/apxs --with-openssl --with-mcrypt
make
make test
make install

laravelをインストールする
cd /var/www/html
composer.phar create-project laravel/laravel laravel

storageディレクトリの権限を変更
cd laravel
chmod 777 -R app/storage/

--追記--
久しぶりにやったらmcryptがyumでインストール出来なかったので以下のとおりソースからインストール
wget http://elders.princeton.edu/data/puias/unsupported/6/x86_64/libmcrypt-2.5.8-9.puias6.x86_64.rpm
wget http://elders.princeton.edu/data/puias/unsupported/6/x86_64/libmcrypt-devel-2.5.8-9.puias6.x86_64.rpm
rpm -ivh libmcrypt-2.5.8-9.puias6.x86_64.rpm
rpm -ivh libmcrypt-devel-2.5.8-9.puias6.x86_64.rpm

10
10
1

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