WordPress Web Server Setup on Raspberry Pi

Pooja Juyal

26409
Advertisement

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)

Advertisement

Exit MySQL using Ctrl + D keys.

WordPress configuration

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
Password:
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.

The wp-config.php file page
Fig. 8: The wp-config.php file page

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.

Welcome screen on WordPress
Fig. 9: Welcome screen on WordPress

Now, you will get your web page on the screen. The web page with customised theme is shown in Fig. 10.

Fig. 10: WordPress we server hosted on Raspberry Pi
Fig. 10: WordPress we server hosted on Raspberry Pi

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):

Fig. 11: Entering IP address for making changes
Fig. 11: Entering IP address for making changes

192.168.2.104/wp-admin

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.

Fig. 12: Entering username and password
Fig. 12: Entering username and password
Fig. 13: Admin page to make changes on your web page
Fig. 13: Admin page to make changes on your web page

The author is working as assistant manager at Samtel Avionics Ltd

Advertisement


2 COMMENTS

  1. hello!,I love your writing very a lot! percentage we keep up a correspondence extra about your post on AOL?
    I need a specialist in this area to solve my problem.
    May be that is you! Having a look forward to look you.

SHARE YOUR THOUGHTS & COMMENTS

Please enter your comment!
Please enter your name here