0
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 3 years have passed since last update.

laravel Apacheのルートディレクトリにソースをcloneしたときにすること 個人メモ

0
Posted at

すること

  1. mysqlのユーザを作成

  2. .envファイルの作成と記載、.envの権限を770に設定する。

  3. 下記コマンドを実行する。

    $ sudo chmod 770 /var/www/クローンしたディレクトリ
    $ sudo chmod 770 storage -R
    $ sudo chmod 770 bootstrap/cache -R
    $ composer install
    $ php artisan key:generate
    $ php artisan config:cache
    $ php artisan migrate
    $ sudo chown -R apache:apache /var/www/クローンしたディレクトリ名
    
  4. apacheにオーナー変更した後にcomposer updateとinstallが実行できなくなるので一旦cloneした時のユーザにオーナーを戻してからcomposer updateやinstallを実行する。

  5. apacheのドキュメントルートの設定を変更する。

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