Fri, 09 Apr 2004
topvirtual hosts and cgi
I had this working before, mostly with the help of this script [citation on macosxhints.com][post on patrickgibson.com] Because of my iBook mishaps, all my tweaks were wiped, and I haven't had the time to reinstate the changes.
So this is what I did (essentially doing everything that the script does manually):
- Open
/etc/httpd/httpd.conf - Find the line
#AddHandler cgi-script .cgiand remove the# - Add the following lines to the end of
/etc/httpd/httpd.conf:NameVirtualHost 127.0.0.1 Include /private/etc/httpd/virtualhosts - In
/private/etc/httpd/virtualhosts, create a file named_localhost - The contents of this file should be:
<VirtualHost 127.0.0.1> DocumentRoot "/Library/WebServer/Documents" ServerName localhost <Directory "/Library/WebServer/Documents"> Options All AllowOverride None <Directory </VirtualHost> - Again, in
/private/etc/httpd/virtualhosts, create a file with the same name as the virtual host name. For example, if you want a host that will be accessed withhttp://blog, create a file namedblog - The contents of this file should be as follows (Replace
$USERNAMEwith your username and$VHOSTNAMEwith your desired hostname<VirtualHost 127.0.0.1> DocumentRoot "/Users/$USERNAME/Sites/$VHOSTNAME" ServerName localhost <Directory "/Users/$USERNAME/Sites/$VHOSTNAME" Options Indexes FollowSymLinks ExecCGI AllowOverride All </Directory> </VirtualHost> - Open a root shell by typing
sudo bashand entering your password - Run the following commands (again, replace
$VHOSTNAMEwith your desired hostname):niutil -create . /machines/$VHOSTNAME niutil -createprop . /machines/$VHOSTNAME ip_address 127.0.0.1 niutil -createprop . /machines/$VHOSTNAME name $VHOSTNAME niutil -createprop . /machines/$VHOSTNAME serves './local' - Restart apache with
apachectl restart.
> /computers/macosx/unix > permalink > 0 comments
Sun, 04 Apr 2004
topemacs carbon
Don't ask me how I got here, but trying to install GNOME 2.6 on my iBook running Panther is taking me to really strange places.
While a pre-built binary for Emacs 21.3.50 on Carbon (built on 2003-10-25) already exists (which I'm currently using), I thought I'd try building it from CVS myself (following these instructions)
(Since Andrew Choi has apparently resigned from maintaining the Carbon port, the continued existence of his webpage is in question, and so the instructions go something like this:)
export CVS_RSH="ssh"
cvs -z3 -d:ext:anoncvs@savannah.gnun.org:/cvsroot/emacs co emacs
cd emacs
./configure --with-carbon --without-X
make bootstrap
sudo make install
The main reason is to see whether I can get Károly Lőrentey's multi-tty support to work. (I applied his frequently updated patches.)
> /computers/macosx/unix > permalink > 1 comments
Fri, 02 Apr 2004
topfam 2.7.0 macosx patch
I have begun the long, lonely journey of compiling GNOME 2.6, and the first roadblock I
hit was in the prereqs with fam. Now I
realize that you only really need this for Nautilus, and since I'm
running MacOSX, I don't really need to use it as a file manager
(although, surprisingly, there are times when it can be handy.) But I
am a resolute pedant.
So I collected the FreeBSD patches for fam 2.6.8, applied them to the fam 2.7.0 source, did a little more tweaking specific for Darwin, and came up with this patch. So fam now compiles, but I don't know if it actually works.
It's pretty amazing the things you can do with code without even understanding a single line of it.
(The cleaner thing to do would be to utilize MacOSX's built-in file-change notification, but I have no idea how to do that.)
> /computers/macosx/unix > permalink > 0 comments

