*INSTALLATION*
Setup Chitkar on the Local Server
Ensure you have the minimum requirements for Yii (including PDO enabled in PHP)
Download chitkar files from repository on sourceforge (SVN checkout is best to keep up to date)
https://svn.code.sf.net/p/chitkar/code/ chitkar
Create a database in your local MySQL server called “chitkar”. Import the db scheme from /chitkar/protected/data/schema.mysql.sql
Edit /chitkar/protected/config/main.php and enter the username and password required in your local MySQL server here:
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=chitkar',
'emulatePrepare' => true,
'username' => 'username',
'password' => 'password',
'charset' => 'utf8',
),
Edit /chitkar/protected/config/console.php and enter the same details in the db array
Login to chitkar as “admin”/”admin” and go to the Admin section, then go to the Users section.
Create an administrator user (this MUST happen first, since as soon as any user exists, the default admin/admin password will stop working). Admin users have “Yes” to all user options.
Logout, then log back in as your new admin user.
Go to Admin section, then go to the Settings section. Update all the required settings.
Set up cron jobs
Your local server’s scheduling tool (cron or at) should be setup to run two jobs on a regular (as in every 5 minutes or so) basis. These are the queue processing job and the remoteStats processing job. For a linux server, the following commands will do the trick:
*/5 * * * * /usr/bin/php /var/www/chitkar/cron.php queue
*/2 * * * * /usr/bin/php /var/www/chitkar/cron.php remoteStats
Set up the remote webserver
On your public web server create a directory called “chitkar” and copy all the files from /chitkar/website into it. Make sure that the permissions on this directory allow php to create/delete/edit files.