Home  >  Article  >  Backend Development  >  Drupal_Configuration after website migration_PHP tutorial

Drupal_Configuration after website migration_PHP tutorial

WBOY
WBOYOriginal
2016-07-14 10:09:451139browse

The website encountered some problems after migrating to the server. Here is a summary:

1, no response, no prompt, return to blank page
2. There is content, but it is messy, a lot is missing, and there is no CSS style
1. The environment is nginx server. After several searches, it was found that the cause of the problem is: insufficient cache memory, resulting in expired
Solution: Configure php5-fpm and change the default 32M to 64M (it may not be enough in the future)
2. If there is content, let’s take a look at the 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"
It turns out that our paths are defined /drupal_fllcc/sites
And we tied the domain name of the website to the /sites level
Solving this problem is easy
Find /drupal/sites/all/default/settings.php
(By the way, if you want to change the Mysql link password at that time, it is also in this file)
[php]
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'drupal_fllcc',
'username' => 'root',
'password' => '123456',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
Back to business...
[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 = '';
Remember not to add /
at the end of the URL
[php]
Drupal will add it for you.

http://www.bkjia.com/PHPjc/477633.html

truehttp: //www.bkjia.com/PHPjc/477633.htmlTechArticleThe website encountered some problems after migrating to the server. Here is a summary: 1. No response, no prompt, and a blank page is returned. 2. There is content, but it is messy, a lot is missing, and there is no CSS...
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