Codeigniter 在本地主机上没问题,但在实时服务器上显示 "database.php does not exist",如果我使用 linux cPanel,我如何找到我的数据库?

Codeigniter is ok with localhost, but on a live server it says "database.php does not exist", how can I locate my database if I use linux cPanel?

我一直在搜索 Whosebug 和整个 google 以找到并回答这个问题,但我没有运气。

我想我知道我的问题是什么,但我不知道解决方案。

在我本地主机上的 codeigniter index.php 配置中,我的代码如下所示。

$root = dirname(__FILE__);
switch ($root) {
    case '/Applications/XAMPP/xamppfiles/htdocs/myproject':
        define('ENVIRONMENT', 'development');
    break;
    default:
        define('ENVIRONTMENT', 'production');
    break;
}

我现在使用的是带 linux 托管服务器和 cPanel 的实时主机,我不知道如何找到 public_html,谁能帮我解决我必须放什么在这个 "case '/Applications/XAMPP/xamppfiles/htdocs/myproject':"??

提前致谢!

Cpanel/WHM public_html 的默认目录是:

/home/cpanel-username/public_html

Here are some more common directories if needed