Hardware Reference
In-Depth Information
Figure 9-5:
Installing
WordPress on
the Raspberry Pi
Linking a ile or directory is diferent to moving: the iles for WordPress now exist in both
/usr/share and /var/www simultaneously, without taking up any extra space on the Pi's
SD card. If you've told Apache to use a diferent directory for the default website, change the
linking command accordingly. Next, run the WordPress MySQL coniguration script using
the following command, typed as a single line:
sudo bash /usr/share/doc/wordpress/examples/setup-mysql Æ
-n wordpress localhost
his adds a new database into MySQL, installed as part of the LAMP stack, for WordPress to
use. his database stores your user accounts, posts, comments and other details. Once this
script has completed, you'll be told to visit http://localhost in a browser on the
Raspberry Pi to continue the installation. his instruction is slightly incorrect: the address
you need to visit to inish the WordPress installation is http://localhost/wordpress
(see Figure 9-6).
Search WWH ::




Custom Search