1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

laravel 備忘録

Posted at

#composerのインストール

ninja@localhost:~$ curl https://getcomposer.org/installer | php
ninja@localhost:~$ sudo mv composer.phar /usr/local/bin/composer

#unzipのインストール(laravelでプロジェクト作成時に怒られるので)

sudo apt-get install unzip

#laravelでプロジェクト作成

ninja@localhost:~$ composer create-project --prefer-dist laravel/laravel website
ninja@localhost:~$ sudo chmod -R 755 website/storage/

#nginxのroot変更

/etc/nginx/sites-available/default.
ninja@localhost:~$ sudo vi /etc/nginx/sites-available/default

root /home/ninja/website/public;

nginxを再起動
ninja@localhost:~$ sudo service nginx restart

ブラウザからアクセスする。
http://xxx.xxx.xxx.xxx

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?