Skip Ribbon Commands
Skip to main content

Stenoweb Home Page


Debian Wheezy LLMP

This is the home page to Stenoweb.
​​How to build an LLMP stack on a blank Debian system. This approach works well for me because it is easy to replicate on another system and system migration or recovery after a disaster is easy.​​
  1. ​​Install Debian, with no package options. Aftward, do all of this as root:
  2.  apt-get install lighttpd gd php5-cgi php5-mysql php5-gd mysql-server-5.5 imagemagick php5
  3. lighty-enable-mod userdir fastcgi fastcgi-php
  4.  /etc/init.d/lighttpd force-reload
  5.  mysqladmin -u root password NEWPASSWORD
The lighttpd config file is at /etc/lighttpd/lighttpd.conf
The php binary location is at 

You can change the port by changing server.port = from 80 to, for example, 81.

Eventually I'd also like to set up a backup script. In general, the backup script needs to do the following:
  1. Create a folder in a scratch location with a title such as YYYY-MM-DD-Backup
  2. ​preserve all of the databases in MySQL
  3. preserve /etc/lighttpd/lighttpd.conf (the only file I have actually changed)
  4. Preserve /var/www
  5. preserve /home/
  6. tar up YYYY-MM-DD-Backup as YYYY-MM-DD-Backup.tar
  7. delete YYYY-MM-DD-Backup folder