Setting Up an Ubuntu Web Server

Having set up several Debian and Ubuntu web servers in the past I thought it would be a good idea to share my process. The following is a relatively comprehensive guide to installing and configuring an Apache based web server with some optimizations and basic resource monitoring. I primarily work with Ubuntu servers, but most of the commands here should work exactly the same in Debian or Ubuntu. I’ve tried to note where differences may occur.

Continue reading

First Friday script updated and simplified

NOTE: The latest version of this script can always be found here: https://github.com/PHX2600/FirstFriday

With this update I have drastically reduced and simpified the code to produce the same results. I did some rigorous testing of my own to make sure this script will calculate the correct date, but that doesn’t mean it’s bullet-proof. If you find a bug, please email me so I can fix it.

first-friday.php

Somewhere along the lines of moving my blog from one site/platform to
another I lost this sample of code.  See link above for the latest 
version of this script.

Calculate the first Friday of next month with PHP

UPDATE: This script has been updated, see: https://github.com/PHX2600/FirstFriday

While developing phx2600.org, I ran into a slight dilemma. The PHX2600 meetings occur once a month on the first Friday of every month, and we wanted to display that on the site. However, it was becoming a tedious chore to change the date once a month manually. So, being the automation addict I am, I thought, why not write a script. So one night I hammered out the following script that will calculate the first Friday of next month:

Continue reading