Quantcast
Channel: jmalan | St George Utah Full-Stack Dev AWS/PHP/LAMP/Laravel/Livewire/MVC/ReactJS/VueJS
Viewing all articles
Browse latest Browse all 7

WordPress Directory Permissions

$
0
0

Once you have your instance of WordPress installed on your server and IF you are running a Linux-based system such as Ubuntu this example will work for you to set your directory permissions correctly.

This is assuming you already have followed the WP installation steps and their directions didn’t work. I have also found cases where I used Forge to set up my WordPress installation then they update their installer and directory permissions no longer work.

This seems to work every time. First CD into the directory of the root of the project, such as, cd /var/www/html/wordpress. Then copy and paste the following command:

 

chown www-data:www-data  -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--

That’s It! If your environment is a little different you may have other variables not taken into account with this solution however I have found this fixes most directory permission issues.

The post WordPress Directory Permissions appeared first on St George Utah Full-Stack Dev AWS/PHP/LAMP/Laravel/Livewire/MVC/ReactJS/VueJS.


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images