Operation Manual

Linking a file or directory is different to moving: the files for WordPress now exist in both /usr/share and /var/www
simultaneously, without taking up any extra space on the Pis SD card. If youve told Apache to use a different directory for the
default website, change the linking command accordingly. Next, run the WordPress MySQL configuration script using the
following command, typed as a single line:
sudo bash /usr/share/doc/wordpress/examples/setup-mysql
-n wordpress localhost
This adds a new database into MySQL, installed as part of the LAMP stack, for WordPress to use. This database stores your
user accounts, posts, comments and other details. Once this script has completed, youll be told to visit http://localhost in
a browser on the Raspberry Pi to continue the installation. This instruction is slightly incorrect: the address you need to visit to
finish the WordPress installation is http://localhost/wordpress (see Figure 9-6).
Figure 9-6: Configuring WordPress in the NetSurf web browser
Fill in the form that loads in the web browser, picking a descriptive name for your site and setting a securebut memorable—
password for your user. Be sure to change the Username field from admin to something else in order to make it more secure.
When you have filled in all the fields, click the Install WordPress button at the bottom of the page.
The installation process will take a minute or two to complete, and then a new page confirming the successful installation of
WordPress will load in the browser. To start using WordPress, click the Log In button at the bottom of this page to log into
WordPress with the user name and password you chose at the earlier screen (see Figure 9-7).
Figure 9-7: Logging in to WordPress on the Raspberry Pi