My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
SettingUpShindigAndPartuza  

Featured
Updated Feb 4, 2010 by chabotc

Setting up PHP Shindig + Partuza

required:

  • apache2 with mod_rewrite support
  • php 5.2.x with mcrypt, openssl, gd, simplexml, json & mysqli extensions
  • mysql 5.x
  • svn to check out the code

checking out the code, assumes htdocs root is /var/www/html and webserver user/group is apache.apache:

# cd /var/www/html
# svn co http://svn.apache.org/repos/asf/incubator/shindig/trunk/ shindig
# svn checkout http://partuza.googlecode.com/svn/trunk/ partuza
# chown apache:apache partuza/html/images/people

creating database and setting up tables (add grants, users etc to this plus -u

<user>
and password to these commands as you like)

# cd /var/www/html/partuza
# mysqladmin create partuza
# mysql partuza < partuza.sql

configuring shindig and partuza, first add the data handlers to shindig by changing the following fields:

  'person_service' => 'PartuzaService',
  'activity_service' => 'PartuzaService',
  'app_data_service' => 'PartuzaService',
  'messages_service' => 'PartuzaService',
  'oauth_lookup_service' => 'PartuzaOAuthLookupService',
  'extension_class_paths' => '/path/to/partuza/Shindig'

Change db_host, db_user, db_passwd, shindig_url and partuza_url entries:

# nano /var/www/html/partuza/html/config.php

create 2 host aliases:

# nano /etc/hosts 

add:

127.0.0.1	partuza shindig

configure apache:

# nano /etc/httpd/httpd.conf

add:

<VirtualHost 127.0.0.1:80>
        ServerName partuza
        DocumentRoot /var/www/html/partuza/html
</VirtualHost>

<VirtualHost 127.0.0.1:80>
        ServerName shindig
        DocumentRoot /var/www/html/shindig/php
</VirtualHost>

restart apache:

# apachectrl restart

(or service httpd restart on redhat like systems)

point your browser at http://partuza

Notes

web_prefix if you set the web_prefix to anything else then '/', please remember to also update the references in the html/js/container.js and html/css/container.css files. Since these are static files they need to be updated by hand.

Comment by keveemil...@gmail.com, May 30, 2008

If you are setting up a virtual host on your local machine, you might need to change either your Hosts File or on a pre 10.2 mac use the NetInfo Manager.

Comment by naimishb...@gmail.com, Jun 4, 2008

Could you please give virtualhost for IP address. I cant able to create virtualhosts for my server.

Comment by bkud...@gmail.com, Aug 15, 2008

For "first add the data handlers to shindig by changing the following fields...", changes should be made to the file: shindig/php/config/container.php.

Comment by skystree...@gmail.com, Aug 21, 2008

Alternately, for "first add the data handlers to shindig by changing the following fields...", you can instead just add a file called local.php to the folder shindig/php/config/ and have it contain:

<?php

$shindigConfig = array(
        'people_service' => 'PartuzaPeopleService',
        'activity_service' => 'PartuzaActivitiesService',
        'app_data_service' => 'PartuzaAppDataService',
        'extension_class_paths' => '../../partuza/Shindig'
);
?>}}}
Comment by danbrick...@gmail.com, Sep 15, 2009

Anyone see "Sep 15 21:01:33 2009? warn? VirtualHost? 127.0.0.1:80 overlaps with VirtualHost? 127.0.0.1:80, the first has precedence, perhaps you need a NameVirtualHost? directive" ?

(Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch Server)

Comment by pavithran.s, Sep 18, 2009

@skystreet101 It should be

'extension_class_paths' => '../../../partuza/Shindig'

because partuza is located one more level upper than shindigs base directory .

Comment by tmaas...@gmail.com, Apr 14, 2010

Does anybody known which changes should be made in html/js/container.js if i set the web_prefix to anything else then '/'

I set my web_prefix to '/partuza/html'. I can see the home-site but the links doesnt work. For example I got a 404 error by requesting .../partuza/html/login.

Comment by relaxno...@gmail.com, Jul 13, 2010

Shindig is out of the incubator (apparently), proper checkout command is:

svn co http://svn.apache.org/repos/asf/shindig/trunk/ shindig

Comment by mcgee.ma...@gmail.com, May 8, 2012

FYI -- Partuza trunk works with Shindig 2.5.0 beta1, if anyone is wondering. Because I am using Apache Httpd 2.4 OpenSSL edition, I did not need to uncomment the following PHP DLL extensions in php.ini. In fact, trying to instantiate them in php.ini made PHP not load correctly. Leave the following commented out: ;extension=php_openssl.dll ;extension=php_zip.dll ;extension=php_mcrypt.dll

Comment by mcgee.ma...@gmail.com, May 9, 2012

I may have misspoke. Turns out I cannot get Partuza to properly work with Shindig 2.5 beta. The use of a local.php file with the $shindigConfig array keeps Partuza from properly working. That being said, is Partuza still an active application? Seems like a great idea to keep it going, but it hasn't seen much change in 2 years :-(


Sign in to add a comment
Powered by Google Project Hosting