I was able to use the giFT cgi under Linux with my Apache web server, and it worked great. But, as aves2k mentioned, this is no longer possible. Here's a quote from the gIFT web page:
The latest version of Kazaa and Morpehus, version 1.3.3 has broken giFT. We can no longer connect to the network and communicate with other supernodes or nodes. We believe that the protocol was changed in such a way that you must now log into a central server to get a new "key" for generating the cipher state for encryption and decryption. This was a bad move by FastTrack, as it now makes it's network reliant on a centralized server, and possibly puts them in a situation similar to Napster.
I recommend just getting gtk-gnutella, it seems to work pretty well. Kazaa/Morpheus just ruined their primary advantage that they had over Napster (no central server), basically signing their own death warrant.