Create the database that the WordPress installation will use:
$ mysql> create database wordpress;
Do not miss the semi-colon at the end of the statement. After creating the database, you should see the following message:
Query OK, 1 row affected (0.00 sec)
Exit MySQL using Ctrl + D keys.
To access the Raspberry Pi in the browser, navigate to http://192.168.2.104 (IP address of your Raspberry Pi). In case you do not know the IP, check it by running the command hostname–I on the terminal.
You should see the error page; this is good! Click the button marked as ‘Create a Configuration File’ followed by ‘Let’s go!’ button on the next page.
Now, fill basic site information as mentioned below:
Database Name: wordpress
User Name: root
Database Host: localhost
Table Prefix: wp_
Upon successful database connection, you will get the contents of your wp-config.php file as shown in Fig. 8.
Copy this text then return to the Pi terminal and open the nano editor by running the command nano wp-config.php. Paste the copied text into the blank wp-config.php file. Save this file and exit the nano editor. Then come back to Fig. 8 and hit ‘Run the install’ button.
You should see a ‘Welcome’ screen as shown in Fig. 9. Fill in the required information shown in this window.
Now, you will get your web page on the screen. The web page with customised theme is shown in Fig. 10.
If you want to do some changes in your web page, write the IP address on the address bar as given below (also shown in Fig. 11):
A window will open on the screen for entering your username and password as shown in Fig. 12. Fill the information, give a title to your site and create username and password.
You can make changes in your web page from the admin web page as shown in Fig. 13.
The author is working as assistant manager at Samtel Avionics Ltd