|
SettingUpShindigAndPartuza
Setting up PHP Shindig + Partuzarequired:
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 Notesweb_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. |
Sign in to add a comment
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.
Could you please give virtualhost for IP address. I cant able to create virtualhosts for my server.
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.
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' ); ?>}}}