Monday, October 15, 2012

Install LAMP on Raspberry Pi

While dropping the kids off at the first day of school, I ran into our district's technology coordinator and ended up talking about a television monitor he wanted to turn into a digital sign. I thought the Raspberry Pi would be a cheap, usable tool to accomplish this. I played around with it and discovered Concerto, an open source solution developed at the Rensselaer Polytechnic Institute. I got it working on the RPi as a server and a client. Unfortunately, I ran out of space on the SD card as I forgot to increase the partition. So here we go starting over. This time I am going to document the steps. First we want to install apache, mysql and php to make the RPi a LAMP server. I found outstanding documentation here: http://fusionstrike.com

First instructions: download the Debian disk image from http://www.raspberrypi.org/downloads. I use Win32DiskImager to write the image to an sd card(http://www.softpedia.com/get/CD-DVD-Tools/Data-CD-DVD-Burning/Win32-Disk-Imager.shtml). There is a great config screen. I like to enable ssh, expand the root file structure to fill card (forgot this last time), set timezone and overclock. Changing the password would be a good idea as well. Checking for upgrades is a good idea as well.

Install apache: http://fusionstrike.com/2012/installing-apache2-raspberry-pi-debian. I like to use Putty to ssh into my pi (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html).

Install mysql: http://fusionstrike.com/2012/setting-mysql-raspberry-pi-debian

Install php: http://fusionstrike.com/2012/setting-php-raspberry-pi-debian

Install phpmyadmin: http://fusionstrike.com/2012/installing-phpmyadmin-raspberry-pi-debian. The first time, I usually get a 404 not found error. Running the two commands toward the end of the tutorial fixes it.


No comments: