Next on our list, we need to get PHP and MySQL set up if we’re ever going
to host something like WordPress or Drupal. Let’s get everything
apt-get install php5 mysql-server php5-mysql. During the
setup, you will need to set a password for the root user of the MySQL
server. Make sure to set something long, complicated, and different than
your shell password, you don’t want your entire server compromised if
someone figures out your MySQL password.
Now, restart Apache with
service apache2 restart so we can start using
Next, navigate to where you put the example file last time, remove your
old example file (it should be
index.html), and make
<?php phpinfo(); ?>
Now, head over to your site and take a look, you should see something similar to this:
If you see that, you’re done here. Next, we’ll set up FTP accounts, then get WordPress running.
Other posts in this series: