2014.1.23 discuz Forum Migration +vps Configuration notes

Source: Internet
Author: User
Tags vps import database

Although this is not my first time to transfer this forum, but after all, it is the first time to configure their own VPS, write something to remember

One: About VPS configuration 1. Connect to the server with TeamViewer

This VPS IDC itself with a remote control of the page, with a browser open after feeling very card, and seems to have not given RDP, so I thought of TeamViewer, used to help others to repair the computer remote control is used this, software volume is very small, and comes with Chinese. I have also considered VNC, but VNC control the host in the intranet is very troublesome, so I chose the teamviewer as a remote control tool.

TeamViewer unattended machines such as maintenance servers can be set to "unattended access." First, you need to register an account, and then install TV on the server after the login to the account and set the password and check the "Authorization xx Easy Access" on it (xx is your user name)

I don't have to elaborate on how to do it. In the right side of the pane to find your server, double-click, enter the password on it, the password seems to automatically save, that is, as long as the loss will not have to lose.

Just open may be 16 color mode, that is normal phenomenon, one will be able to become 256 colors

Just opened

A few seconds later

2. Create a new Web site & Bind domain name in IIS

For those of me who are used to such an integrated development environment as WAMP, it's a bit overwhelming to start facing IIS. This VPS environment is mysql+iis+fastcgi+php, the other three I know what, but FastCGI this I do not know what is. The following quote from Baidu Encyclopedia

fastcgi is like a resident (long-live) CGI, which can be executed all the time, so long as it is activated, it will not take a moment to fork once (this is the most notorious fork-and-execute mode of CGI). It also supports distributed operations where the FastCGI program can execute and accept requests from other Web servers on hosts other than the Web server. FastCGI is a language-independent, extensible architecture for CGI open extensions whose main behavior is to keep the CGI interpreter process in memory and thus achieve high performance. As we all know, the repeated loading of CGI interpreter is the main reason of poor CGI performance, if the CGI interpreter remains in memory and accepts the FASTCGI process manager scheduling, it can provide good performance, scalability, fail-over characteristics and so on.
In other words, he is the interpreter of the various server scripts, which is the output of the PHP code after it is run, and it acts as a connector between IIS and PHP. The version of IIS on the server is IIS6, the new Web site on the left "site" point left, and then choose "New"-"site", according to the hint step-by-step is OK, only need to note, for Discuz this program needs to give him write permission, draw arrows to choose, the last do not choose, Because I feel this seems to be with the 404 when the directory file has a great relationship to the security of the site is a great threat, so do not choose if you forgot to select these when you create a new site you can also find these options in the home directory of the site properties and set the binding domain name: Select the website you created, right-click, Web tab, Click Add, TCP port fill 80, Host header value fill your domain name (note Do not bring http://) Click OK, and then into your domain DNS, add records, dump a record to your host public network IP can be two: transfer Discuz1. Import Database

About the import database can be carried out in phpMyAdmin, but the default upload size of the environment is only 2 m, I do not bother to change, so on the server installed Navicat, built a database, and built a separate account for DZ to use, ran directly through the SQL file is good.

2. Change the configuration file of DZ

The following emphasis on the change DZ configuration file, maybe some friends to Baidu a search on the forehead to change config folder config.inc.php, in fact, this is only 40%, the complete modification of the database configuration needs to change three files. We all know that discuz at least three parts of the main city: Discuzboard, Ucenter,discuzboard is the main program of the forum, and Ucenter is the management database, Modify the Config folder under the config.inc.php just modify the Discuzboard database configuration, if only modify him will cause the page can normally display users and the background but not landing problems. Here are my three files and all the places that need to be modified:

1.\config\config.inc.php

(Note this backslash: The Windows host is "\" and the Linux host is "/", if the result of mixing is not to find this directory)

1 $_config[' DB '] [' 1 '] [' dbhost '] = ' localhost ';//database host address, Local is localhost or 127.0.0.12 $_config[' DB '] [' 1 '] [' dbuser '] = ' user ';//Database user name3 $_config[' DB '] [' 1 '] [' dbpw '] = ' password ';//Database Password4 $_config[' DB '] [' 1 '] [' dbcharset '] = ' UTF8 ';//database Grooming (in other words, coding)5 $_config[' DB '] [' 1 '] [' pconnect '] = ' 0 ';6 $_config[' DB '] [' 1 '] [' dbname '] = ' name ';//Database name7 $_config[' DB '] [' 1 '] [' tablepre '] = ' pre_ ';//Table Prefixes8 $_config[' DB '] [' slave '] = ';9 $_config[' DB '] [' Common '] [' slave_except_table '] = ';

2.\config\config_ucenter.php

 define  (' uc_dbhost ', ' localhost '); //  database host address  define  (' Uc_dbuser ', ' user '); //  define  (' UC_DBPW ', ' Pass '); //  password  define  (' Uc_dbname ', ' name '); //  database name  define  (' Uc_dbcharset ', ' UTF8 '  define  (' Uc_dbtablepre ', ' name '. Pre_ucenter_ '); //  here name is changed to database name, Pre_ucenter_ is ucenter table prefix, if not default at installation,  define  (' Uc_dbconnect ', 0); 

3.\uc_server\data\config\config.inc.php

Define (' uc_dbhost ', ' localhost '); // Host Address Define (' Uc_dbuser ', ' user '); // User name Define (' UC_DBPW ', ' password '); // Password Define (' Uc_dbname ', ' name '); // Database name Define (' Uc_dbcharset ', ' UTF8 '); // database Grooming (encoding) Define (' Uc_dbtablepre ', ' pre_ucenter_ '); // Table Prefixes

------------------------------

Hey.. Toss it out in the morning (>_<)

2014.1.23 discuz Forum Migration +vps Configuration notes

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.