How to Install / Update WordPress Automatically Without Using FTP
How to Install / Update WordPress Automatically Without Using FTP
Date published: 21/08/2019
Introduction
In many circumstances, you are not able to update/upgrade your WordPress and plugins to a newer version without providing your FTP connection information.
This is the most common issue whereby the WordPress system can’t write to your /wp-content
folder directly.
- To solve this issue you need to define/update the FTP details in your wp-config.php file so WordPress will recognize it.
- Alternatively, you can also provide WordPress with write access to your
/wp-content
folder by accessing the FTP root file and changing the folder file permission (CHMOD) to 775 rather than the default 755 and 644.
Solution
1. Open the/wp-config.php
Go to wp-config.php.
2. Append FS_METHOD
Paste the following code to your wp-config.php file.
define('FS_METHOD','direct');
3. Save and upload
Now, you can proceed to upload the file to your WordPress root folder on your server, and it should work right away. Uploading can be done directly from your host control panel.
Conclusion
In order to choose this ‘direct’ method implemented, you will be able to update or upgrade your WordPress and plugins installations to newer versions without having to provide any FTP details.
Thanks for using pheonix solutions.
You find this tutorial helpful? Share with your friends to keep it alive.