gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 12:36:03 25 4
gpt4 key购买 nike

我一直在搜索 stackoverflow 和整个谷歌来查找和回答这个问题,但我没有运气。

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

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

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

我现在正在使用带 cPanel 的 linux 托管服务器的实时主机,我不知道如何找到 public_html,有人可以帮助我解决这个“案例”/Applications/XAMPP/xamppfiles/htdocs/myproject':"??

提前致谢!

最佳答案

Cpanel/WHM public_html 的默认目录是:

/home/cpanel-用户名/public_html

Here are some more common directories if needed

关于php - Codeigniter 在本地主机上没问题,但在实时服务器上显示 "database.php does not exist",如果我使用 linux cPanel,我如何找到我的数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41773216/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com