Month: October 2016

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

Migrating DHCP Server configuration to a new Server- netsh

Migrating DHCP Server configuration to a new Server- netsh

Situation:

You have installed a new Server into an existing domain, or to replace an existing server. To save time you would like to export the DHCP Server Scope options and then import them into the new server.

Below is an easy way of migrating the DHCP Server settings with minimal effort. This will export all settings (Scope/Reservations etc).

Export Command on current server:

1) Open an Administrative Command Prompt
2) Use the following command to export the existing DHCP configuration:

netsh dhcp server export dhcp.txt all

3) Copy the dhcp.txt file to the new server

Import command on new server:
1) Open an Administrative Command Prompt
2) Use the following command to import the existing DHCP configuration:

netsh dhcp server import dhcp.txt all

Hopefully this has been useful to you.