LoginSignup
2
2

More than 5 years have passed since last update.

CentOS 6.6 で Laravel4 を使う準備

Last updated at Posted at 2014-11-26

php5.4の用意

  1. epelレポジトリの追加
  2. iusレポジトリの追加
  3. php5.3の削除
  4. php5.4のインストール
$ sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ sudo rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-11.ius.el6.noarch.rpm
$ yum repolist ius  # iusがレポジトリに登録されているかどうかの確認
$ sudo rpm -e php php-common php-cli php-devel php-pear
$ sudo yum install php54 php54-common php54-cli

その他追加パッケージのインストール

  • mycrpt
  • pdo
$ sudo yum install mycrypt
$ sudo yum install php54-mycrypt
$ sudo yum install php54-pdo

composerのインストール

# curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/local/bin/composer

Laravelプロジェクトの作成

$ composer create-project laravel/laravel hogehoge --prefer-dist

[参考サイト]
http://www.monster-dive.com/blog/web_system/20140328_001128.php

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