phpweb迁移常见问题
2015-12-24 16:32:03   来源:   评论:0 点击:

phpweb迁移,涉及到域名修改,mysql和php版本改变问题

1.若变换了url方式,修改/cache/configs/system.php文件

www.alq11.com/article/为例
return array(
//w88中文路径
'web_path' => '/article/',
upload_url' => 'https://www.alq11.com/article/uploadfile/', //附件路径
js_path' => 'https://www.alq11.com/article/statics/js/', //CDN JS
'css_path' => 'https://www.alq11.com/article/statics/css/', //CDN CSS
'img_path' => 'https://www.alq11.com/article/statics/images/', //CDN img
'app_path' => 'https://www.alq11.com/article/',//动态域名配置地址

phpsso_api_url' => 'https://www.alq11.com/article/phpsso_server', //接口地址
);
?>

2.升级了mysql
如:mysql5.0升级到mysql5.5
     用mysql指令从mysql5.0导出,然后在mysql5.5导入,可能有部分格式不兼容,需要手工修改

3.后台设置新的URL
   设置->站点->修改




4.迁移后,更新缓存,并重生成静态页
  因为更换了URL,那么生成的网页和URL不同,需要后台更新

相关热词搜索:版本 域名 问题

上一篇:PHPweb设置文章的审核功能
下一篇:织梦(DEDECMS)w88中文程序及数据库迁移搬家教程

分享到: function postToWb(){ var _t = encodeURI(document.title); var _url = encodeURIComponent(document.location); var _appkey = encodeURI("cba3558104094dbaa4148d8caa436a0b"); var _pic = encodeURI('https://www.alq11.com/article/uploadfile/2015/1224/20151224043650808.png'); var _site = ''; var _u = 'https://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t; window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' ); } document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); 收藏