Drupal _ configuration after website migration _ PHP Tutorial

Source: Internet
Author: User
Tags drupal nginx server
Drupal _ configuration after website migration. Some problems have been encountered after the website is migrated to the server. here we summarize: 1. no response, no prompt, and blank page 2 is returned. there is content, but it is disordered and many are lost, in addition, there are no CSS-like websites that encounter some problems after migrating to the server. here we will summarize:

1. no response, no prompt. a blank page is returned.

2. there is content, but disorder, there are many loss, and there is no CSS style

1. the environment is the result of several queries on the nginx server. The cause of the error is that the cache memory is insufficient, resulting in expired.

Solution: configure the php5-fpm and change the default 32 M to 64 M (not enough in the future)

2. if you have any content, let's take a look at the Source Code.

@ Import url ("/drupal_flsvc/sites/all/themes/fllcc_zen/css/blocks.css? Mw.bae ");

@ Import url ("/drupal_flsvc/sites/all/themes/fllcc_zen/css/navigation.css? Mw.bae ");

@ Import url ("/drupal_flsvc/sites/all/themes/fllcc_zen/css/views-styles.css? Mw.bae ");

@ Import url ("/drupal_flsvc/sites/all/themes/fllcc_zen/css/nodes.css? Mw.bae ");

@ Import url ("/drupal_flsvc/sites/all/themes/fllcc_zen/css/comments.css? Mw.bae ");

@ Import url ("/drupal_flsvc/sites/all/themes/fllcc_zen/css/forms.css? Mw.bae"

It turns out that the path is defined by/drupal_flccs/sites.

We bound the website domain name to the/sites level.

It's easy to solve this problem

Find/drupal/sites/all/default/settings. php

(By the way, if you want to modify the Mysql link password, it will also be in this file)

[Php]

$ Databases = array (

'Default' =>

Array (

'Default' =>

Array (

'Database' => 'drupal _ flabc ',

'Username' => 'root ',

'Password' => '123 ',

'Host' => 'localhost ',

'Port' => '',

'Driver '=> 'mysql ',

'Prefix' => '',

),

),

);

The words are turning ......

[Php]

* Base URL (optional ).

*

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

* 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

* 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: 8080 ';

* $ 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_flabc ';

$ Base_url = '';

Remember not to add/at the end of the URL/

[Php]

Drupal will add it for you.

Response 1, no response, no prompt, return blank page 2, there is content, but disorder, there are a lot of loss, and there is no CSS sample...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.