Andromeda/PHP on OS X

Software Update to 10.2.4 shut down PHP and took Andromeda with it. Luckily I had notes from setting it up the first time, and I thought they might be useful to someone else. Take these instructions along with your own judgement and back up all your important files first - I'm definitely not an expert.

Starting with OS X.2.4 running, assuming Web Sharing is already turned on in the Sharing Prefences, and you've already downloaded Andromeda.
(~ indicates your home directory)

1. Rename andromeda.php to index.php, and put it in your ~/Music/iTunes/iTunes Music folder.

2. As described here, use the following commands to enable PHP:

" cd /etc/httpd"
"sudo apxs -e -a -n php4 libexec/httpd/"
"echo 'echo "AddType application/x-httpd-php .php" >> /etc/httpd/httpd.conf' | sudo sh -s"

3. Use Get Info to change the owner of /etc/httpd/httpd.conf:

"cd /etc"
"open httpd"

select the httpd.conf icon, press Apple-I,
open Ownership and Permissions,
unlock the padlock and
change the owner to 'me'

then use BBEdit Lite to add the following lines to the Aliases section, changing USERNAME to your username:

    Alias /mp3/ "/Users/USERNAME/Music/iTunes/iTunes Music/"

<Directory "/Users/USERNAME/Music/iTunes/iTunes Music">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all

and modify one section to read:

<IfModule mod_dir.c>
    DirectoryIndex index.html index.php

then save the file, change the owner back to system, and lock the padlock again.

4. Use Get Info to change the permissions of the ~/Music folder to
Owner: read/write
Group: read only
Others: read only
and apply these to all enclosed items.

5. Use

"sudo apachectl graceful"
to restart the web server .

6. Use a browser to go to
7. If you want to change the appearance, put the text file for a new skin in the same folder as index.php.
8. As Rendezvous is now enabled by default, you might want to put a file called index.htm in your webserver root (/Library/Webserver/Documents) that redirects automatically to /mp3/