Onga inc

subtitle

さくらVPS CentOSにLaraveilをインストールする

スクリーンショット 2015-02-15 0.40.38

さくらVPS Centosに
laraveil 5をインストールしたメモ

phpのバージョンは5.6です。
事前に依存関係のあるモジュールをインストールする必要があります。
sudo yum install php-mbstring –enablerepo=epel –enablerepo=remi –enablerepo=remi-php56
sudo yum install php-phpunit-PHPUnit –enablerepo=epel –enablerepo=remi –enablerepo=remi-php56
sudo yum install php-mcrypt –enablerepo=epel –enablerepo=remi –enablerepo=remi-php56
sudo yum install php-mysql –enablerepo=epel –enablerepo=remi –enablerepo=remi-php56

プロジェクトを作成
composer create-project laravel/laravel your-project-name –prefer-dist

コンポーザーでインストール
composer install

サーバーを起動させて、laraveilの画面が出現すればOKです。
php artisan serve –port=80

さくらvpsの環境では、ホストIPを指定する必要がありました。
php artisan serve –port=80
php artisan serve –host 0.0.0.0 –port=80

Onga

A designer, developer and entrepreneur. Spends his time travelling the world with a bag of kites. Likes journalism and publishing platforms.

Comments