From f1faa5793d27b7075418c081950c22ee709c419e Mon Sep 17 00:00:00 2001 From: joancipria Date: Fri, 12 May 2017 00:07:18 +0200 Subject: [PATCH 1/2] Solved permissions problems with Avatars folder using secure 755 permissions. It also applies to other folders/upload actions. --- _one-click-installation/bootstrap.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_one-click-installation/bootstrap.sh b/_one-click-installation/bootstrap.sh index 541aee348..ac714ae85 100644 --- a/_one-click-installation/bootstrap.sh +++ b/_one-click-installation/bootstrap.sh @@ -77,6 +77,10 @@ sudo mysql -h "localhost" -u "root" "-p${PASSWORD}" < "/var/www/html/${PROJECTFO # writing rights to avatar folder sudo chown -R www-data "/var/www/html/${PROJECTFOLDER}/public/avatars" + +# If you are working with Vagrant, adding the www-data user to vagrant's group let you upload images to the avatars folder with 775 permissions. Of course, it also applies to other folders. +#sudo usermod -a -G vagrant www-data + # if this didn't work for you, you can also try the hard way: #sudo chmod 0777 -R "/var/www/html/${PROJECTFOLDER}/public/avatars" From 94f5727d8342777f9dc9933603e0d719fc071746 Mon Sep 17 00:00:00 2001 From: joancipria Date: Fri, 12 May 2017 00:33:27 +0200 Subject: [PATCH 2/2] Fixed description --- _one-click-installation/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_one-click-installation/bootstrap.sh b/_one-click-installation/bootstrap.sh index ac714ae85..805c1f980 100644 --- a/_one-click-installation/bootstrap.sh +++ b/_one-click-installation/bootstrap.sh @@ -78,7 +78,7 @@ sudo mysql -h "localhost" -u "root" "-p${PASSWORD}" < "/var/www/html/${PROJECTFO # writing rights to avatar folder sudo chown -R www-data "/var/www/html/${PROJECTFOLDER}/public/avatars" -# If you are working with Vagrant, adding the www-data user to vagrant's group let you upload images to the avatars folder with 775 permissions. Of course, it also applies to other folders. +# If you are working with Vagrant, adding the www-data user to vagrant's group let you upload images to the avatars folder with 755 permissions. Of course, it also applies to other folders. #sudo usermod -a -G vagrant www-data # if this didn't work for you, you can also try the hard way: