wordpress file permissions ubuntu code example
Example 1: change wp permission ubuntu
chmod 775 /var/www/wordpress
Example 2: 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