Home  >  Article  >  php教程  >  使用百度Bae云平台服务器安装原版dedecms的方法

使用百度Bae云平台服务器安装原版dedecms的方法

WBOY
WBOYOriginal
2016-06-21 08:49:511938browse

百度应用引擎(BAE)是百度推出的网络应用开发平台。基于BAE架构,使开发者不需要维护任何服务器,只需要简单的上传应用程序,就可以为用户提供服务。BAE有能力将原本单机的LAMP架构,变成分布式架构。

下面iOS100知识库教大家怎么在百度Bae上安装原版dedecms

1、打开/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";

2、打开/include/common.inc.php

查找 $isSafeMode = @ini_get("safe_mode");

修改为:$isSafeMode = false;
转载请注明出处:http://www.ios100.net/open/dedecms/15973.html

 



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn