jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2011-12-31 23:19:34

krishnanandverma
Member
Registered: 2011-12-31
Posts: 5

need installation help

Dear admin,

please help me out, i tried lot but its not works
on www.jobslogger.paratus.in

// local (http://localhost/jobberbase/public)
$__instances['local'] = array(
    // should be a unique part of the url (or the entire url if you wish)
    'prefix' => 'localhost',
    // mysql credentials
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'xxx',
    'db_password' => 'xxx',
    'db_name' => 'xxx',
    'db_prefix' => '',
    // your site's full url
    'app_url' => 'http://jobslogger.paratus.in',
    // error reporting
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'On',
    // environment setting 1 (use 'local' for localhost/testing OR 'online' for live, production environment)
    'location' => 'local',
    // environment setting 2 (use 'dev' together with 'local' in the previous setting OR 'prod' with 'online')
    'environment' => 'dev',
    //'apache_mod_rewrite', 'iis_url_rewrite' -microsoft URL Rewrite module, 'iis_isapi_rewrite'
    'rewrite_mode' => 'apache_mod_rewrite'
);

// live (http://www.jobslogger.paratus.in)
$__instances['live'] = array(
    'prefix' => 'jobslogger.paratus.in',
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'xxx',
    'db_password' => 'xxx',
    'db_name' => 'xxx',
    'db_prefix' => '',
    'app_url' => 'http://www.jobslogger.paratus.in/',
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'on',
    'location' => 'online',
    'environment' => 'prod',
    'rewrite_mode' => 'apache_mod_rewrite'
);

// setup current instance
foreach ($__instances as $__instance)
{
    // http requests
    if (isset($_SERVER['HTTP_HOST']))
    {
        $_compare_to = $_SERVER['HTTP_HOST'];
    }

    if (strstr($_compare_to, $__instance['prefix']))
    {
        define('DB_HOST', $__instance['db_host']);
        define('DB_PORT', $__instance['db_port']);
        define('DB_USER', $__instance['db_user']);
        define('DB_PASS', $__instance['db_password']);
        define('DB_NAME', $__instance['db_name']);
        define('DB_PREFIX', $__instance['db_prefix']);

        // values kind of redundant, they indicate wether this is a live/production or dev/testing environment
        define('LOCATION', $__instance['location']);
        define('ENVIRONMENT', $__instance['environment']);
       
        // base url of the app
        define('APP_URL', $__instance['app_url']);
        define('REWRITE_MODE', $__instance['rewrite_mode']);
        // error reporting
        ini_set('error_reporting', $__instance['ini_error_reporting']);
        ini_set('display_errors', $__instance['ini_display_errors']);
       
        break;
    }
}
?>

please tell me the error

Offline

#2 2012-01-02 17:24:09

putypuruty
Administrator
From: Oradea, Romania
Registered: 2008-08-20
Posts: 1,042

Re: need installation help

Please use paratus.in as prefix in the $__instances['live'] part

Offline

#3 2012-01-31 14:31:43

krishnanandverma
Member
Registered: 2011-12-31
Posts: 5

Re: need installation help

i changed but still not working


// live (http://www.jobslogger.paratus.in)
$__instances['live'] = array(
    'prefix' => 'paratus.in',
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'xxx',
    'db_password' => 'xxx',
    'db_name' => 'xxx',
    'db_prefix' => '',
    'app_url' => 'http://www.jobslogger.paratus.in/',
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'on',
    'location' => 'online',
    'environment' => 'prod',
    'rewrite_mode' => 'apache_mod_rewrite'
);

// setup current instance
foreach ($__instances as $__instance)
{
    // http requests
    if (isset($_SERVER['HTTP_HOST']))
    {
        $_compare_to = $_SERVER['HTTP_HOST'];
    }

    if (strstr($_compare_to, $__instance['prefix']))
    {
        define('DB_HOST', $__instance['db_host']);
        define('DB_PORT', $__instance['db_port']);
        define('DB_USER', $__instance['db_user']);
        define('DB_PASS', $__instance['db_password']);
        define('DB_NAME', $__instance['db_name']);
        define('DB_PREFIX', $__instance['db_prefix']);

        // values kind of redundant, they indicate wether this is a live/production or dev/testing environment
        define('LOCATION', $__instance['location']);
        define('ENVIRONMENT', $__instance['environment']);
       
        // base url of the app
        define('APP_URL', $__instance['app_url']);
        define('REWRITE_MODE', $__instance['rewrite_mode']);
        // error reporting
        ini_set('error_reporting', $__instance['ini_error_reporting']);
        ini_set('display_errors', $__instance['ini_display_errors']);
       
        break;
    }
}
?>

Last edited by krishnanandverma (2012-01-31 14:37:24)

Offline

#4 2012-02-01 20:36:21

putypuruty
Administrator
From: Oradea, Romania
Registered: 2008-08-20
Posts: 1,042

Re: need installation help

Problem fixed offline: it was caused by incorrect file/folder permissions and other smaller problems.

Offline

#5 2012-02-02 14:52:59

krishnanandverma
Member
Registered: 2011-12-31
Posts: 5

Re: need installation help

now its working,
very very thanks

krishna

Offline

Board footer

Powered by FluxBB