Tag: wp-config.php

How to update WordPress without using FTP

How to update WordPress without using FTP

I’ve written the below instructions on how to update WordPress directly opposed to updating the installation via FTP. This is primarily aimed at individuals who have WordPress installed on Linux and for those who have direct access to the server (SSH).

1) Connect to your server via SSH
2) Browse to your WordPress Installation directory
3) Open wp-config.php with your preferred editor (I prefer vim). Run the following command with sudo elevation. I.e:

sudo vim wp-config.php

4) Add the following to the bottom of the wp-config.php file and save:

define(‘FS_METHOD’, ‘direct’)

If you copy the above command you may need to type the ‘ symbols yourself as sometimes it doesn’t copy correctly.

Security Note:
Once you’ve updated wordpress I would recommend disabling the above by adding a # when finished.

For example:

#define(‘FS_METHOD’, ‘direct’)

Where do I host my wordpress site?

For those who are interested, I currently host my WordPress site on a DigitalOcean Droplet. It’s fast, cost effective and the support from DigitalOcean has been incredible over the years. I’m very happy with the service so I’ve added a link below if you’d like to know more:

DigitalOcean.com