Pi to WordPress – Part 2: Installing WordPress
This is part 2 of a series, documenting the setup of an out-of-the-box Raspberry Pi to a self-hosted SSL WordPress site.
To install WordPress on your Pi, I’ll revert to an excellent guide by Christian Cawley. You should be all set up to start straight into Step 1 of his article:
One amendment; in Step 3, to install MySQL, you may receive an error:
pi@pi:/var/www/html $ sudo apt install mysql-server php-mysql -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mariadb-server-10.0
E: Package 'mysql-server' has no installation candidate
As the readout recommends, you simply need to install mariadb-server-10.0 instead:
sudo apt install mariadb-server-10.0 php-mysql -y
The remainder of the guide works as printed, including any commands referencing mysql.
Once complete, you should have a working WordPress site that you can reach locally. In the next part, we will be discussing public (internet) access to your WordPress site over HTTP initially.