WordPress showed many permission problems when we tried to install it on a fresh install of Unix -- Ubuntu 16.04, the first and most annoying problem is the plugins from WordPress.org will not install locally and the WordPress continue to complain of access problem and asking for ftp credentials.
So, to solve this issue the first thing to do is change the ownership of WordPress folder to the www-data:
and change the chmod for the WordPress folder to allow write and read for the wp-content folders
the most important step to avoid this problem is to add this option to wp-config.php
Here is a nice blog post which explain how to install WordPress the right way :
install-wordpress-ubuntu-16-04
So, to solve this issue the first thing to do is change the ownership of WordPress folder to the www-data:
sudo chown -R www-data:www-data /var/www/html
and change the chmod for the WordPress folder to allow write and read for the wp-content folders
the most important step to avoid this problem is to add this option to wp-config.php
define('FS_METHOD', 'direct');
Here is a nice blog post which explain how to install WordPress the right way :
install-wordpress-ubuntu-16-04
No comments:
Post a Comment