百度Bae云平台安装dedecms图文教程,一起来看看怎么在百度Bae上安装dedecms程序:
先说下如何免费申请百度Bae云平台服务器:https://www.dedecms8.com/zhanzhang/mianfeizhuji/12278.html
一、找到dedecms安装目录install,打开/install/index.php
查找else if($step==4){ ,(大约122行)在这段代码下面添加以下代码:
$host=getenv(‘HTTP_BAE_ENV_ADDR_SQL_IP’);
$port = getenv(‘HTTP_BAE_ENV_ADDR_SQL_PORT’);
$cfg_dbhost = $host.”:”.$port;
$cfg_dbname = ‘数据库名称’;
$cfg_dbuser = getenv(‘HTTP_BAE_ENV_AK’);
$cfg_dbpwd = getenv(‘HTTP_BAE_ENV_SK’);
$cfg_dbprefix = ‘~dbprefix~’;
$cfg_db_language = ‘~dblang~’;
$dbhost=$cfg_dbhost;
$dbuser=$cfg_dbuser;
$dbpwd=$cfg_dbpwd;
$dbname=$cfg_dbname;
$dbprefix=”dede_”;
$db_language=”utf-8″;
二、打开/include/common.inc.php
查找 $isSafeMode = @ini_get(“safe_mode”);
修改为:$isSafeMode = false;
接下来,访问https://www.dedecms8.com/isntall/index.php进入dedecms安装步骤即可。