Install a web server

Install a web server - Lighttpd and php

Logging into the Raspberry Pi we can set up a webserver really quickly.

Entering a root shell so it isn't sudo city:

sudo su

Let's update the machine and make sure everything is loaded up

apt-get update

apt-get upgrade

Then lets install our web server, an ftp server, curl, php:

apt-get install lighttpd php5 php5-cgi proftpd-basic php5-gd php5-curl

and set lighttpd to use the fast cgi php module:

lighty-enable-mod fastcgi
lighty-enable-mod fastcgi-php

The we restart the server.

service lighttpd restart

There is no build for mysql on the Raspberry Pi.  Reportedly SQLite is available.  Get Simple CMS didn't require it, so I didn't install it.

Erase the contents of /var/www:

rm -rf /var/www/*

Change the permissions:

chmod 777 /var/www

Put the unzipped contents of the Get Simple CMS package in /var/www using whatever means.  Proftpd is installed so you can use ftp or scp to put everything in place.

chmod 777 /var/www

Do that again so that Get Simple can do it's configuration. 

 

Published on  January 21st, 2013