Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save malkafly/2c7f67c4551de5d8c4573e39f2302c43 to your computer and use it in GitHub Desktop.

Select an option

Save malkafly/2c7f67c4551de5d8c4573e39f2302c43 to your computer and use it in GitHub Desktop.

Revisions

  1. @AkshatJen AkshatJen created this gist May 24, 2021.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@

    cd /var/www/my_website_serving_dir

    sudo chown -R $USER:www-data .

    sudo find . -type f -exec chmod 664 {} \;
    sudo find . -type d -exec chmod 775 {} \;

    sudo chgrp -R www-data storage bootstrap/cache
    sudo chmod -R ug+rwx storage bootstrap/cache