jobberBase php安装无法正常工作

时间:2012-05-06 20:04:28

标签: php softaculous

我在arvixe上使用自动安装(softaculous)安装了jobberBase。由于这是所有自动安装的任何错误的机会很少。我仍然做了双重检查,数据库创建得很好;配置看起来也很精细。

我在许多其他线程上也看到了这个错误,但无法在任何地方找到解决方案;所以看起来像是一个常见的安装问题。很可能php无法连接到DB!任何帮助将受到高度赞赏。

Warning: mysqli::mysqli() expects parameter 5 to be long, string given in /home/muskete3/public_html/jobber/_includes/class.Db.php on line 20

Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /home/muskete3/public_html/jobber/_includes/class.Db.php on line 72

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /home/muskete3/public_html/jobber/_includes/class.Db.php on line 73

Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /home/muskete3/public_html/jobber/_includes/class.Db.php on line 31

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /home/muskete3/public_html/jobber/_includes/class.Db.php on line 32

Fatal error: Call to a member function fetch_assoc() on a non-object in /home/muskete3/public_html/jobber/_includes/class.JobberSettings.php on line 23 

我的配置文件是:

<?php
/**
 * Define environments
 *
 */

// local (http://localhost/jobberbase/public)
$__instances['local'] = array(
    // should be a unique part of the url (or the entire url if you wish)
    'prefix' => 'www.jobs41.net',
    // mysql credentials
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => '***',
    'db_password' => '***',
    'db_name' => '***',
    'db_prefix' => '',
    // your site's full url
    'app_url' => 'http://www.jobs41.net/jobber/',
    // 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.yourjobberbasedomain.com)
$__instances['live'] = array(
    'prefix' => 'www.jobs41.net',
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'muskete3_jobb563',
    'db_password' => '6Sn82hxv7P',
    'db_name' => 'muskete3_jobb563',
    'db_prefix' => '',
    'app_url' => 'http://www.jobs41.net/jobber/',
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'Off',
    'location' => 'online',
    'environment' => 'prod',
    'rewrite_mode' => 'apache_mod_rewrite'
);

1 个答案:

答案 0 :(得分:0)

以前我安装的不是根目录;因此它安装在public_html / job中。现在,当我再次在根目录中安装它时,它工作正常。