Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > os-src > by-pkgid > e687afb653b241657cdce86a536d0d6c > files > 2

php-laconica-0.5.0-5.fc12.src.rpm

First time changes
1. MySql Changes

>mysql -uroot -p -e 'create database <database_name>';
Replace <database_name> with database name.

>mysql -uroot -p -e "grant all privileges on laconica.* to
> laconica@localhost identified by '<password>'";
Replace '<password>' with password

>mysql -uroot -p <database_name> < db/laconica.sql

2. Please don't forget to update config.php and dataobject.ini after
changing database name and password.

a. Changes needed to config.php:
 #can add the paths here
 define('INSTALLDIR', dirname(__FILE__));
 set_include_path(get_include_path() . PATH_SEPARATOR . INSTALLDIR . '/usr/share/php/laconica/');

 The rest of the settings in config.php are somewhat
 self-explanatory. These are the ones I changed for my installation:

 $config['site']['name'] = 'site_name';
 $config['site']['server'] = 'example.com';
 $config['site']['path'] = 'laconica';
 $config['site']['fancy'] = true;
 $config['site']['theme'] = 'stoica';
 $config['site']['email'] = 'email_id@domain.com';
 $config['site']['broughtby'] = '<name>';
 $config['site']['broughtbyurl'] = 'http://example.com/';
 $config['db']['database'] = 'mysql://<database_name>:<password>@localhost/laconica';
 $config['db']['ini_laconica'] = $config['db']['schema_location'].'/path/to/stoica.ini';

b. Changes needed to dataobject.ini:
database = mysql://<database_name>:<password>@localhost/laconica 
schema_location = /var/www/example.com/docs/laconica/classes   # Path to schema 
class_location = /var/www/example.com/docs/laconica/classes    # Path to class
require_prefix = /var/www/example.com/docs/laconica/classes    # prefix


3. Create avatar and file folder in /var/www/example.com/ Change
permissions to avatar folder

sudo chown -R apache avatar
sudo chmod -R ug+rw avatar