Installing Partuza on Mac OS X (Leopard)

This section will guide you through installing Partuza on a local Apache server on Mac OS X (Leopard), which allows you to host the sample OpenSocial social networking container at http://partuza/.

The first step is to obtain and configure the Partuza container code base. To obtain the source code for Partuza, open Terminal and enter the following commands:

mkdir /Library/WebServer/Documents/partuza
cd /Library/WebServer/Documents/partuza
svn checkout http://partuza.googlecode.com/svn/trunk/ .

Once the checkout has completed, we need to change the permissions of the people images directory. The web server runs under a different username and set of permissions, so taking this step will allow it to write thumbnails to that directory:

chmod 777 partuza/html/images/people

Now we need to add the host entry so that the system can relate a virtual host entry with localhost. Edit your hosts file to add this entry:

sudo vi /etc/hosts

There should be an existing entry for localhost and shindig, such as:

127.0.0.1  localhost shindig

We need to add the Partuza reference to this entry so we can reference our new shindig directory. Your new entry should look like this:

127.0.0.1  localhost shindig partuza

Save and close this file. Now that the host entry is in place, we need to change the configuration settings for http://partuza/ to our virtual hosts configuration file. Load the virtual hosts file.

sudo vi /etc/apache2/extra/httpd-vhosts.conf

The entries for localhost ...

Get Programming Social Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.