WordPress installed!

Picture of the WordPress login
My very own wordpress login

I have now installed WordPress so that I can make a diary of the actions I am doing and remember what I have been upto!

Installing WordPress was fairly straightforward. As you would expect there are several post about how to do it. However there still remain a few catches. For example, mysql is no longer in the repositories for installation on Raspberry Pi and so the instructions at https://www.makeuseof.com/tag/host-wordpress-raspberry-pi/ could not be followed line for line. On the other hand the instructions at https://pimylifeup.com/raspberry-pi-mysql/ had been updated to use the correct database and so use mariadb in place of mysql, but missed out a minor step to restart the apache2 server after the installation of php-mysql.

Another thing that caught me out was the URL for the site. This started as localhost. This was fine for looking at it on the Raspberry Pi, however links and images did not work when viewed from other machines. I then put in the URL – 192.168.1.231. That seemed ok at first, however when I put the SD Card in another Raspberry Pi (the Pi Zero W running the Christmas Tree) the URL changed to 192.168.1.232 and again links were broken. I could not easily fix that as the login was also broken (there is advice about ways to deal with this at https://wordpress.org/support/article/changing-the-site-url/ ). It was simplest to reinsert the SD card into the Pi 4 and then login and adjust the settings again. So now set to have the URL http://rapsberrypi – not sure that is the end of the issue though! [This paragraph added 4 January 2020].

A bit more tweaking – I have now moved the WordPress installation to its own directory /var/www/html/wordpress. I followed the steps on https://wordpress.org/support/article/giving-wordpress-its-own-directory/ and also set the site URL to http://raspberrypi.home [6 January 2020]. New update [20 February 2020] now moved onto a static IP with our new provider Vodafone so have a public URL – www.mcandrewmk.co.uk and so needed to again change URL following instructions at https://wordpress.org/support/article/changing-the-site-url/ (though because of using a subdirectory had to set the WP_SITEURL to have /wordpress at the end.)

Anyway WordPress is now up and running! I will now try to remember to blog each time I do something interestingish. I also should do some retrospective bloggin about various things already done i.e.:

Leave a Reply

Your email address will not be published. Required fields are marked *