WP upgrade – need to lower security for time of upgrade

LOOSEN PERMISSIONS:

Reset the permissions of all files to

1
664

:


1
find /path/to/site/ <span class="nt">-type</span> f <span class="nt">-exec</span> chmod 664 <span class="o">{}</span> <span class="se">\;</span>

Reset permissions of directories to

1
775

:


1
find /path/to/site/ <span class="nt">-type</span> d <span class="nt">-exec</span> chmod 775 <span class="o">{}</span> <span class="se">\;</span>

 

TIGHTEN PERMISSIONS:


1
2
3
sudo chmod g+w /var/www/HTML_PATH/wp-content
sudo chmod -R g+w /var/www/HTML_PATH/wp-content/themes
sudo chmod -R g+w /var/www/HTML_PATH/wp-content/plugins