Installation Guide

From Scire Wiki

Jump to: navigation, search

Step 1: make sure required packages are installed. you will need: python (duh), apache, php5, mysql, adodb, smarty, mysql-python, pyopenssl, and eventually phpgacl (but that's included in the tarball at the moment) for gentoo users: USE flags i have: "apache2 bind-mysql calendar msql mysql openssl opensslcrypt php smarty sql sqlite syslog calendar crypt ldap session ssl"

Step 2: make sure things are configured. run /usr/bin/mysql_install_db edit /etc/php/apache2-php5/php.ini so the include_path line looks like: include_path = ".:/usr/share/php5:/usr/share/php:/usr/share/php/smarty"


Step 3: grab a scire snapshot tarball ex: wget http://dev.gentoo.org/~codeman/scire_current.tar.gz extract to somewhere clean like /opt/scire/ move or symlink so apache can see it. (/var/www/localhost/htdocs) change the permissions so apache can use it.

Step 4: create the scire database and main user

cd /opt/scire/docs && mysql -u root -p < scire.sql

now you'll need to seed your db with sample values found in scire2.sql. run same command as above but with scire2.sql

mysql -u root -p < scire2.sql

thirdly you'll run the command with some seed data for phpgacl to work with the UI.

mysql -D scire -u root -p < phpgacl_seed.sql

this installs scire with a default root account. you'll want to change that password. passwords are currently hashed in the DB. so you'll need to create the hash of your desired password. to do this, run this:

$ php -a
Interactive shell

php > print crypt('root', 447470567);  #change 'root' to your password, obviously.
444mwGdhEKuO.

then login to mysql and UPDATE users SET password='444mwGdhEKuO.' where username = 'root';

Step 5: give phpgacl a tempdir. as root:

cd /tmp
mkdir phpgacl_cache
mkdir phpgacl_cache/default
chown apache:users phpgacl_cache
chown apache:users phpgacl_cache/default
chmod 777 phpgacl_cache
chmod 777 phpgacl_cache/default
Personal tools