LoginSignup
2
4

More than 5 years have passed since last update.

Lumenをcentos7とphp7で環境作成する

Last updated at Posted at 2016-12-23

vagrant 取得

$ cd ~/Lumen
$ vagrant box add centos/7
$ vagrant init centos/7
$ vagrant up
$ vagrant ssh

php7 install

$ sudo su
$ yum install epel-release
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
$ yum install --enablerepo=remi,remi-php70 php php-devel php-mbstring php-pdo php-gd git

composer install

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

MySQL 5.7 install

この方の記事を参考にしました。
http://qiita.com/ksugawara61/items/336ffab798e05cae4afc

lumen install

$ /usr/local/bin/composer global require "laravel/lumen-installer”
$ export PATH="$PATH:~/.config/composer/vendor/bin"
$ cd /var/www/html/
$ mkdir lumen
$ cd lumen
$ lumen new site

lumenインストール時のエラー

lumen をcomposer経由でインストールしようとした時のエラー
lumen にはzipエクステンションが必要

2
4
2

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
4