Setting up a Debian box for development: making a LAMP: apache2

Add a user for the web stuff # adduser httpd Choose a simple (but secure) password. # apt-get install apache2 Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed:   apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3   libaprutil1-ldap Suggested packages:… Continue reading

Intranet: setup DJBDNS to respond for *.local to help development

  0. Follow instructions to setup a DNS Cache   1. Create an alias for eth0: # nano /etc/network/interfaces auto eth0:0 iface eth0:0 inet static address 10.0.0.251 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.254 2 . restart networking # /etc/init.d/networking restart   3. Use tinydns-conf to setup djbdns  #… Continue reading

Code:: css-message-box

I just started a Google Code hosted project since I’m always in need of pretty message boxes for my HTML things. Let me know if you want/can contribute to it. It’s currently licensed under GPL 2.0 Here’s the address: http://code.google.com/p/css-message-box/   Why: This seems to have been dead for a… Continue reading

Center a unordered UL/LI based menu

I lost count of how many times I broke my head trying to do this…. so taking a note will hurt less for sure: styles: #footer{text-align:center;list-style:none} #footer li{display:inline} HTML <ul id=”footer”> <li><a href=”1.php”>Link 1</a></li> <li><a href=”2n.php”>Link 2</a></li> <li><a href=”3.php”>Link 3</a></li> </ul> Really simple in the end