Leopard’s Apache2 doesn’t rewrite

Have finally moved my postfix mail and blog servers to Leopard. Unfortunately none of the WordPress permalinks would work, despite having tried everything I could think of to enable URL rewriting, and testing with a fresh test blog install. Seems others have similar problems here.
and here
 

Fortunately fink can do an Apache install, with a mod_rewrite that actually works.

So
fink install apache2-common
daemonic install apache2
(I think I must have done a fink install apache2-mpm-prefork somewhere along the line too, but fink’s not listing it as installed)
After this I noticed lots of error messages in the System log about launchd trying to start Apache unsuccessfully:

Aug  6 00:00:05 botrytis-local org.apache.httpd[90412]: (13)Permission denied: make_sock: could not bind to address [::]:80
Aug  6 00:00:05 botrytis-local org.apache.httpd[90412]: (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
Aug  6 00:00:05 botrytis-local org.apache.httpd[90412]: no listening sockets available, shutting down
Aug  6 00:00:05 botrytis-local org.apache.httpd[90412]: Unable to open logs
Aug  6 00:00:05 botrytis-local com.apple.launchd[244] (org.apache.httpd[90412]): Exited with exit code: 1
Aug  6 00:00:05 botrytis-local com.apple.launchd[244] (org.apache.httpd): Throttling respawn: Will start in 10 seconds

So I thought I’d disable the built-in System apache:

cd /System/Library/LaunchDaemons
sudo launchctl unload -w org.apache.httpd.plist

and then removed /System/Library/LaunchDaemons/org.apache.httpd.plist to a safe position in case I ever need it. Of course this is messing with a System file, which you shouldn’t do, but I figure I can probably live with that.

Meanwhile, blog permalinks now seem to be working properly. Yay!

Now I just need to work out why I keep getting this in the system log
fseventsd[67]: callback_client: ERROR: d2f_callback_rpc() => (ipc/send) timed out (268435460) for pid 263

Leave a Reply

Your email address will not be published. Required fields are marked *