Home > CentOS, Rillsoft > How to install RIS (CentOS 5.4)

How to install RIS (CentOS 5.4)

RIS installation

# cd /var/www/html
# rm ris_mysql.zip
# wget --http-user=*** --http-passwd=*** http://www.rillsoft.com/download/src/ris_mysql.zip
# unzip -uo ris_mysql.zip -d /var/www/html/ris
# chmod -R 777 cache log blob
# chown -R apache:apache /var/www/html
# php symfony cc


Configure Apache 2

Open httpd.conf

# vi /etc/httpd/conf/httpd.conf

At the end of your config file you’ll need to add the following code:

DocumentRoot /var/www/html/web
<Directory /var/www/html/web>
   <IfModule sapi_apache2.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_admin_value open_basedir none
   <IfModule mod_php5.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_admin_value open_basedir none
   Options +FollowSymLinks -Indexes
   AllowOverride All

Alias /sf /var/www/html/lib/vendor/symfony/data/web/sf
<Directory /var/www/html/lib/vendor/symfony/data/web/sf>
   AllowOverride All
   Allow from All
# /etc/init.d/httpd restart


PHP configuration check

Execute the check script.

# cd /var/www/html
# php lib/vendor/symfony/data/bin/check_configuration.php

You will see the following results:

*                              *
*  symfony requirements check  *
*                              *

php.ini used by PHP: /etc/php.ini

*  The PHP CLI can use a different php.ini file
*  than the one used with your web server.
*  If this is the case, please launch this
*  utility from your web server.

** Mandatory requirements **

  OK        PHP version is at least 5.2.4 (5.2.10)

** Optional checks **

  OK        PDO is installed
  OK        PDO has some drivers installed: mysql, odbc, sqlite
  OK        PHP-XML module is installed
  OK        XSL module is installed
  OK        The token_get_all() function is available
  OK        The mb_strlen() function is available
  OK        The iconv() function is available
  OK        The utf8_decode() is available
  OK        A PHP accelerator is installed
  OK        php.ini has short_open_tag set to off
  OK        php.ini has magic_quotes_gpc set to off
  OK        php.ini has register_globals set to off
  OK        php.ini has session.auto_start set to off
  OK        PHP version is not 5.2.9


Database configuration

Open databases.yml

# vi  /var/www/html/config/databases.yml

Make sure to change host, dbname, myUser and myPassword to match your account.

      classname: DebugPDO
      debug: { realmemoryusage: true, details: { time: { enabled: true }, slow: { enabled: true, threshold: 0.1 }, mem: { enabled: true }, mempeak: { enabled: true }, memdelta: { enabled: true } } }
      classname: DebugPDO
    class: sfPropelDatabase
      classname: PropelPDO
      dsn: 'mysql:host=localhost;dbname=ris'
      username: myUser
      password: myPassword
      encoding: utf8
      persistent: true
      pooling: true


# vi  /var/www/html/config/propel.ini
propel.targetPackage       = lib.model
propel.packageObjectModel  = true
propel.project             = ris
propel.database            = mysql
propel.database.driver     = mysql
propel.database.createUrl  = ${propel.database.url}
propel.database.url        = mysql:host=localhost;dbname=ris
propel.database.user       = myUser
propel.database.password   = myPassword
propel.database.encoding   = utf8


Configuration for Swift_FailoverTransport

# vi  /var/www/html/apps/frontend/config/factories.yml
    class: sfMailer
      logging:            %SF_LOGGING_ENABLED%
      charset:            %SF_CHARSET%
      delivery_strategy:  realtime
        class:            Swift_SmtpTransport
          host:           smtp.googlemail.com
          port:           465
          encryption:     ssl
          username:       myUser
          password:       myPassword


Initialize database

Run the following symfony tasks:

# cd /var/www/html
# php symfony cc
# php symfony propel:insert-sql --no-confirmation
# php symfony propel:data-load --trace --env=dev --application=frontend
Categories: CentOS, Rillsoft Tags:
  1. No comments yet.
  1. No trackbacks yet.