wordpress index.php file permissions code example

Example: wordpress file permissions

sudo chmod 755 /var/www/html/
sudo chmod 755 /var/www/html/wp-includes
sudo chmod 644 /var/www/html/.htaccess
sudo chmod 644 /var/www/html/wp-admin/index.php
sudo chmod 755 /var/www/html/wp-admin/js/
sudo chmod 755 /var/www/html/wp-content/themes
sudo chmod 755 /var/www/html/wp-content/plugins
sudo chmod 755 /var/www/html/wp-admin
sudo chmod 755 /var/www/html/wp-content
sudo chmod 640 /var/www/html/wp-config.php

Tags:

Misc Example