WordPress 5.0 (or to be exact when this article is published, WordPress 5.0.2) is released as new major version with some big changes like the default editor and new concept for frontend interface of WordPress.
On this tutorial, we will install WordPress 5.0 in Raspberry Pi. I’m using Raspbian as the default operating system for my Raspberry Pi. Make sure, your raspberry pi internet connection is working and FAST. Heuheu
First, you need to update and upgrade to the latest repository and software available by this command:
sudo apt-get update sudo apt-get upgrade
then we will install the database server with this command:
sudo apt-get install mariadb-server mariadb-client
make sure you remember the root password you’re type in on those wizard. connect to MySQL/MariaDB server with:
mysql -u root -p
create a new database and setup new user:
create database wordpress; #then create user 'wordpress'@'localhost' identified by 'password'; #setup the privileges grant all privileges on 'wordpress'.* to 'wordpress'@'localhost'; #flush flush privileges;
Next step, installing Webserver and PHP by using this command:
sudo apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-mysqli php5-mbstring php5-gd php5-mcrypt php5-json
test your brand new installed webserver by looking into web browser and pointing out to : http://localhost/
Download the latest WordPress available on https://wordpress.org/download/ and extract it to ‘/var/www/html’
tar -xzvf wordpress.tar.gz -C /var/www/html
and refresh your http://localhost/ URL in your browser, the WordPress installer should be loaded.
Install wordpress, like usual. Write your database username, database password, database name and write your Blog Title.