Problems with .htaccess and AFP over Netatalk

After yesterdays triumph of establishing contact with my virtual server over AFP, using Netatalk, I was perplexed today to find that my .htaccess files weren’t having any effect. Listing the files on the shared volume on my Mac seemed to show that they were there:

~$ ls -Al /Volumes/Home Directory/www/sites/jackspeak/site/
total 736
-rwxr-xr-x   1 simon  simon    401  6 Apr 18:08 .htaccess
drwxr-xr-x@ 10 simon  simon    296  5 Apr 11:30 .svn
-rwxr-xr-x@  1 simon  simon   2941  5 Apr 11:30 500.html

But running the same command on the Linux virtual server showed very different results:

~$ ls -Al /www/sites/jackspeak/site/
total 736
-rwxr-xr-x   1 simon  simon    401  6 Apr 18:08 :2ehtaccess
drwxr-xr-x@ 10 simon  simon    296  5 Apr 11:30 :2esvn
-rwxr-xr-x@  1 simon  simon   2941  5 Apr 11:30 500.html

Apache wasn’t seeing any .htaccess files because there wasn’t any there… something had translated the “.” into “:2e”. What was this strange set of characters “:2e” which was screwing with my files? Continue reading Problems with .htaccess and AFP over Netatalk

Problems mounting a Debian drive over AFP

It took me ages to find the answer to this, so I figured I’d post the answer for posterity; hopefully between us, Google and I can help the next person avoid that hassle.

I’ve created a Debian virtual server in Parallels for some development work. To ease the pain of mounting drives, I’ve configured AFP (Apple File Protocol) on the server. (As a sidenote: there’s some issues with Debian’s AFP package, netatalk, and OS X Leopard which mean you have to recompile netatalk, for which you can find instructions here. You probably also want to have your server auto-discovered and appearing in the “Shared” areas of the finder, for which you can find instructions there. Some Debian chutzpah will be required to follow both these sets of instructions.)

All was running well, and I was happy, until one day the drives stopped mounting… Continue reading Problems mounting a Debian drive over AFP