I’ve got Leopard (10.5.1) with the developer tools installed and want to do some
more development in Django on my laptop. I first want to install MacPort to make it
easier to download and install various opensource projects. Using MacPorts, I’ll
get Apache
installed and configured. Finally, I’ll get the basic django working.

1. Installing Mac Ports painless. Just follow the direction at the web site. I prefered to download and install the disk image: disk image

2. You need to add port to your path. I use a ~.bashrc:

and make sure it’s available (create a new shell, a new terminal window, or “. ~/.bashrc”). The command

should print a help message.

3. I checked to make sure which apache and any options I could chose from (the “sudo” is so I can run the command as root (administrative user) and I do it each time so I have a log of my actions)

And finally, let’s install it:

Shockingly, there was an error:

I think there was a path problem involved because gawk was now installed and restarting the install worked:

I now need to tell OS X about starting up this application on system booting:

And now it’s time to configure apache:

Trying to start it apache up gave me this error:

Use your favorite editor to comment out ssl (I don’t need it, yet)

3. Start it up:

4. And prove it works by connecting to http://localhost/