首页 > php教程 > php手册 > 正文

Drupal_网站迁移后的配置

php中文网
发布: 2016-06-13 10:55:48
原创
962人浏览过

网站往服务器迁移后遇到了一些问题,这里汇总一下:

1,无响应无提示,返回空白页面

2,有内容,但是错乱,有很多丢失,而且没有CSS样式

 

1,环境是 nginx服务器 经过几番查找,发现问题的原因是:cache memory 不够,导致 expired了

解决办法:配置php5-fpm ,将默认的 32M 改为 64M(以后的话可能还不够)

 

2,有内容,我们就去看看Source Code

 

@import url("/drupal_fllcc/sites/all/themes/fllcc_zen/css/blocks.css?mjwbae");

@import url("/drupal_fllcc/sites/all/themes/fllcc_zen/css/navigation.css?mjwbae");

@import url("/drupal_fllcc/sites/all/themes/fllcc_zen/css/views-styles.css?mjwbae");

@import url("/drupal_fllcc/sites/all/themes/fllcc_zen/css/nodes.css?mjwbae");

@import url("/drupal_fllcc/sites/all/themes/fllcc_zen/css/comments.css?mjwbae");

@import url("/drupal_fllcc/sites/all/themes/fllcc_zen/css/forms.css?mjwbae"

原来是我们的路径都定义的  /drupal_fllcc/sites

而我们把网站的域名绑到了 /sites  那一级了

解决这个问题很简单

找到  /drupal/sites/all/default/settings.php

 

(对了,当时要修改Mysql链接密码的话也是在这个文件里面)

[php]  

$databases = array (  

  'default' =>   

  array (  

    'default' =>   

    array (  

      'database' => 'drupal_fllcc',  

      'username' => 'root',  

      'password' => '123456',  

      'host' => 'localhost',  

      'port' => '',  

      'driver' => 'mysql',  

      'prefix' => '',  

    ),  

某地板超炫企业网站1.1
某地板超炫企业网站1.1

1、演示:以截图为准 2、程序说明 程序试用后台:http://你的域名/admin/login.asp 后台登陆帐号:admin 密码:admin123 说明: 这个是基于asp+access的企业网站源码,数据库已设有有防下载,网站更安全 要修改网站,自定义你自己要的页面,和美化页面都是你自己完成,网站源码程序完整,后台功能强大。 调试运行环境:要安装IIS服务器(IIS的安装和配置,安装好

某地板超炫企业网站1.1 0
查看详情 某地板超炫企业网站1.1

  ),  

);  

 

言归正转……

[php]  

 * Base URL (optional). 

 * 

 * If Drupal is generating incorrect URLs on your site, which could 

 * be in HTML headers (links to CSS and JS files) or visible links on pages 

 * (such as in menus), uncomment the Base URL statement below (remove the 

 * leading hash sign) and fill in the absolute URL to your Drupal installation. 

 * 

 * You might also want to force users to use a given domain. 

 * See the .htaccess file for more information. 

 * 

 * Examples: 

 *   $base_url = 'http://www.example.com'; 

 *   $base_url = 'http://www.example.com:8888'; 

 *   $base_url = 'http://www.example.com/drupal'; 

 *   $base_url = 'https://www.example.com:8888/drupal'; 

 * 

 * It is not allowed to have a trailing slash; Drupal will add it 

 * for you. 

 */  

//$base_url = 'http://localhost/drupal_fllcc';  

 $base_url = '';  

 

记得不能在URL的最后加 /

 

[php]  

Drupal will add it for you.  

 

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门推荐
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号