Archive September 2008

Easy PHP on Shell

Easy PHP on Shell

A question I see quite often around campus is how to get PHP working on shell. The easy way is to add a shebang to the top of your php file. Simply add one of these lines (for php4 and php5 respectively) to the very top of any php file that you’re going to be using. Make sure there are no spaces or empty lines above the shebang.

Read more…

Server Topology

Server Topology

Our web-cluster at EMU Marketing is slightly unique, so I thought I would go over it a bit. We’re currently running three physical servers: a G4 PPC Xserve, an Xserve Xeon and a commodity server running FreeBSD 7.0. The Xserve Xeon is being used as a secure apache server (running mod_ssl) to handle HTTPS requests.

Read more…

The new tag cloud…

The new tag cloud…

Pat’s design for the new Cultural Forum site included a tag cloud layout inspired by Wordle. Unfortunately Wordle was written on IBM time and because of this the author isn’t allowed to release the source code. Wordle also has no API so it wasn’t really an option. After a few weeks of avoiding the problem I got an idea and hammered out a working proof of concept. Since then the script has been revised and improved a bit. Now users can click and drag to reorganize tags and the system repositions the other tags on the fly in browser.

Read more…

Simple SSH port forward on Mac OS X Server

Simple SSH port forward on Mac OS X Server

In the our office we’re hosting several jailed apache servers (FreeBSD) behind a Mac OS X server reverse-proxy (pound). Obviously this caused some access limitations to the jailed machines on the private network. To work around this we were able to port-forward ssh connections from the reverse proxy to specific jails. Unfortunately this was not well documented by Apple.

Read more…