Small white webmaster Online upgrade Dede background can not landing the difficult recovery process

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Before this, estimated I and most stationmaster similar, the construction station backstage procedure aspect is a small white one. This experience stems from a dispensable hand base online upgrade, although very frustrating to be tired, but experience brought to the background of the process of understanding let me at least can say, finally is no longer a little white webmaster!

A few days ago, a dark night, I routinely open Dede backstage to update the article. When I accidentally see the prompt to check the update of the button, I think of the site before browsing the mother of all the various teaching is Dede loophole, to follow up the official update. So, my hand was a little bit of the evil button that bothered me for the last week, everything was so quiet and peaceful that the slightest hint of what I could not understand at all was not able to change my firm update decision, so that when I came back to sprinkle my urine, The background interface becomes a huge web page cannot open the error screen. I was very calm at first turned off this page, and again into the background, but then a hint of coolness from the soles of the feet, the usual familiar with the landing interface also became 500 error hint screen.

Nani! The little white stationmaster felt a hint of panic! In the principle of asking for something, I quickly launched a difficult inquiry. The mother of the inquiry results, in fact, without the brain can know, is really a variety of content, ranging from database to file name and even space quotient, far beyond my imagination. I can only try each, first from the simple test!

Simple is to see whether there are no missing files, especially Dede and the data folder in the various files, according to the original backup files, the first rule out the problem.

Furthermore, nothing more than a replacement file, so, from the data (non-database parts), include, Dede and other seemingly related folders, with the previous backup for a time, waste a lot, but landing page or the dead fish face!

Continue to deepen Niang, see a certain big God for a similar problem after the reply, will focus on the database connection, find data under the common.inc.php file, open the following data a mess to change:

$cfg _dbhost = ' localhost ';

$cfg _dbname = ' DEDECMSV57GBK ';

$cfg _dbuser = ' root ';

$cfg _dbpwd = ' 123456 ';

$cfg _dbprefix = ' Dede_ ';

$cfg _db_language = ' GBK ';

The results can be imagined, in a completely technical small white state, this is a joke! Feel not so blind, and then in-depth understanding of the meaning of the above code, basically as follows:

This code is actually database connection information, meaning the following

$cfg _dbhost = ' localhost '; website address, basically all according to this fill, also can fill IP

$cfg _dbname = ' data '; database name, what you'll get when you buy space

$cfg _dbuser = ' data_user '; database user name, data to be given when buying space

$cfg _dbpwd = ' admin '; database connection password, data to be given when buying space

$cfg _dbprefix = ' dede_ '; database prefix, usually do not change, not clear

$cfg _db_language = ' GBK '; database language version, no changes are required unless your site has special requirements for the language version

In contrast to the original backup file based on the basic can eliminate the problem here, so you can only continue to debug the problem. And in the Niang found a big God said, may be folder permissions issues, think back to the beginning of the establishment of the station did a few folders to execute permissions, and then fart to run to space management that file permissions again, but the result is still the dead fish face!

In this way, futile work took me a few nights, finally after the crazy, I decided to use the most original way to install the Dede and restore the backup, but the last backup is one months ago, so that my site back to a month ago, the one-month update even in vain,

Before restoring a backup, I always feel unwilling, so decided to check again, because the mother basically has no new ideas, I can only cold again, the basic can be summed up, similar to the problem most of the points are database-related issues. So continue to look back to the database related issues, think back to the initial construction station according to Niang proposal, will be the data and Dede folder changed name, and adjust a file inside the code, change has gradually looking for the past. When the data file is renamed, data in the 16th line of the common.inc.php file under data is changed to the renamed FileName:

Original: Define (' Dededata ', dederoot. /data ');

After the change: define (' Dededata ', dederoot. /xxxx ');(xxxx is the original data changed name)

But when I found this line of code again, found that this line of code is not the path I changed the name after the data, I think this will not be so low-level problem, so changed back, try again, the website backstage landing page is normal! It turns out that this low-level problem has bothered me for nearly a week, online updates, The system automatically updates this line of code so that the data file cannot be found in this line of code, and there is a problem.

It seems that there are Dede and other fools the construction station program does not need to understand the program language too much, but at least to understand some of the recent procedures related knowledge, or a small problem will let small white webmaster time-consuming, but also hope that the webmaster do not like me so small white, how many also want to understand some basic knowledge, Do small disease small pain not to ask for! Then there is to use Dede to back up, even if it is not, restore the backup will not have too much damage! There is the Dede online update to be cautious, especially if you have changed the original file name and the individual file code!

This article by http://www.jn0531seo.com/Original, reprint please indicate the source!

Related Article

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.