If you have a wordpress website on shared hosting data center and you are facing problems with automatically updating your site, probably is about the read/write permissions .
So first you need to be sure that you have write permissions on the server .
If you are not you need to do some stuff in wp-config.php file .
So you need to add :
define(‘FS_CHMOD_DIR’, (0755 & ~ umask()));
define(‘FS_CHMOD_FILE’, (0644 & ~ umask()));
and your new created folder should have 755 permissions and the files 644.
Probably now the update will work but you need to manually insert user name and password for your FTP account .
After that if you want to update your wordpress automatically without asking your user and password insert in your wp-config.php file the following stuff :
define(‘FTP_USER’,”);
define(‘FTP_PASS’,”);
define(‘FTP_HOST’,’YOURSITE.COM’);
define(‘FTP_BASE’,’/home/YOURHOSTNAME/public_html/YOURSITE.COM/’);
define(‘FTP_SSL’, false);
Hope this will help you !