Ste Wright the Web Developer
Since the launch of the Raspberry Pi, one thing which I saw as an oversight (and according to other sources, many would agree) was the amount of memory the Raspberry Pi shipped with – 256mb wasn’t enough. Understandably one of the core aims the Foundation had with the Raspberry Pi unit was to keep costs low, but something I hoped to have seen at launch was a ‘Model C’ with more memory.
Pictured: The Raspberry Pi Model B
Since first reading about the Raspberry Pi, I instantly started thinking of the endless possibilities for this tiny little handy PC. I went down the predictable (slightly boring and a bit geeky) route of running one as a web server, others have been a bit more imaginative then I have been. I’ve had some good results so far, this site is indeed hosted from my own Raspberry Pi computer.
The next part of my project is to install an IMAP capable mail server, but here’s some of the other uses and projects I’ve found whilst clicking on the old ‘tinterweb!
So far, I’ve covered overclocking your Raspberry Pi, preparing to run your Raspberry Pi as a web server, installing Apache, PHP and MySQL and installing PhpMyAdmin. I’m assuming you’ve at least set your hostname and installed Apache, PHP and MySQL on your Raspberry Pi for this tutorial.
Before we go ahead and install WordPress, we need to ensure that outgoing email can be sent from your Raspberry Pi. In this tutorial, I’ll cover installing Postfix, which is a mail transport agent.
Good news all! I’m launching Dingleberry DNS, a free DNS service to allow you to point a domain to your Raspberry Pi. This service will allow you to access your Raspberry Pi remotely, run a website from your Raspberry Pi and much more.
Here’s what you need to qualify for free DNS:
- A registered domain, ie example.com
- A Raspberry Pi connected to the Internet
- A Static IP address (unfortunately I can’t support dynamic IP addresses yet).
Contact me to apply, all I’ll need is some information about your project and I’ll get the DNS set up. Hosted email can also be provided for a small fee.
In case you didn’t know, this site is hosted on a Raspberry Pi computer. The purpose of this project has been to establish whether or not the £30 computer was capable of reliably hosting a WordPress site, and so far the results have been promising.
PhpMyAdmin is a handy web interface for managing local MySQL databases, and can make database queries, management and backups easy.
In this tutorial, I’m going to talk you through installing PhpMyAdmin on your Raspberry Pi powered web server. I’m assuming you’ve got Raspbian installed, and you’ve followed my tutorial: install Apache, PHP and MySQL on Raspberry Pi.
The fundamental services required to turn your Raspberry Pi into a web server consist of Apache (the web server itself), PHP (scripting language) and MySQL (database server). When installed on a Linux based system, the collective term for these is LAMP.
There are other secondary services which aren’t quite as important at this stage to provide FTP and outbound mail, but that’ll be covered in a separate tutorial.
In this tutorial, you’ll learn how to squeeze as much performance as possible out of your Raspberry Pi, and prepare it ready to become a live functioning web server. Be sure to follow Installing Apache, PHP and MySQL on your Raspberry Pi once you’re done.
I’m assuming you know your way around Terminal, and you’ve got Raspian installed.