Installing a Wordpress blog locally with https ssh and plugins Installing a Wordpress blog locally with https ssh and plugins

April 28, 2023

wordpress

I recently inherited a Wordpress website that needed updating to the latest version of Wordpress and a general cleanup.

Wordpress has gone through a lot of changes in the past few months and one thing I had to get my head around was a totally new editor.

But the users of the site find the new editor difficult to use so asked me to reinstall the old 'classic' editor.

But first I had to download the site and the database and install it locally.

One thing that I had to workaround was the site uses https redirects which wernt available on my localhost/127.0.0.1 so these are the settings i had to alter to get it to work.

ini_set('display_errors', 0);
define('WP_CACHE', false);
define('WPCACHEHOME', '/home/andy/www/wordpress/wp-content/plugins/wp-super-cache/' );
define('DB_NAME', 'wp1');
define('WP_DEBUG', false);
define('FS_METHOD', 'direct' );
define('FORCE_SSL_ADMIN', false);

also in the database are 2 settings which I needed to change to get the site to work

siteurl http://127.0.0.1:86
home http://127.0.0.1:86

Once these were set, the site worked, but it was a struggle to work this out.

Next up, updating all the plugins, finding a new theme and disabling unused plugins. Also learning the difference with Elementor, Gutenberg and other things that have changed.


If you would like to contact me with this form on londinium.com, ilminster.net or via Twitter @andylondon