How to Update WordPress Directly Without Using FTP

In this tutorial, I will help you update WordPress website directly without using ftp account. If you are not able to update/upgrade your WordPress and plugins to a newer version without providing your FTP connection information. This is a common issue whereby the WordPress system can’t write to your /wp-content folder directly.

Updating WordPress

What's the problem

WordPress will only prompt you for your FTP connection information while trying to install plugins or a WordPress update if it cannot write to /wp-content directly. Otherwise, if your web server has write access to the necessary files, it will take care of the updates and installation automatically. This method does not require you to have FTP/SFTP or SSH access, but it does require your to have specific file permissions set up on your webserver. It will try various methods in order, and fall back on FTP if Direct and SSH methods are unavailable.
In some cases, The FTP issue normally happens when you are on shared hosting and when WordPress is having a conflict with permissions and ownerships.

How to Fix the WordPress Updates

If for some reason you do not want to rely on the automatic check for which filesystem method to use, you can define a constant, 'FS_METHOD' in your wp-config.php file. Open wordpress-site/wp-config.php add
define('FS_METHOD','direct');
Update WordPress directly

It will allow you to use the 'direct' method of installing wordpress plugins, wordpress themes, or wordpress updates.

Detail documentation about WordPress Update and Permission:
Filed under: Wordpress TutorialsTagged with: , ,