Updating wordpress

If Wordpress is asking you for details to access FTP/SFTP then you may just need to change your permissions on your server to allow apache to read/write

$ chown -R apache:apache * /var/www/site