How to build a WordPress blog on Tencent cloud server system?

Are detailed in this blog, is divided into three steps:

Methods about building a blog on WordPress Tencent cloud-based server framework, I would like to write divided into three parts.
1. Purchase Tencent cloud server and a domain name and for the record;
2. Set the desired station on the cloud server environment, not just the configuration of WordPress environment;
3. the desired profile configuration WordPress, without having to load plug-ins and FTP change the theme.

Purchase servers and domain names on the record and Tencent cloud

Server: buy cloud server, it can be based on individual circumstances, such as occupation, establishment requirements, and so on. On Baidu can be found to many similar articles, not repeat them here. I bought a student server to take the blog site, 120 yuan a year, Windows2012 Chinese Standard Edition (1-core, 2GB, 1Mbps), enough.

Domain Name: domain name registration is recommended to buy Tencent cloud, if you already have a domain name, then let it go. There Tencent cloud of domain name registration link https://buy.cloud.tencent.com/domain?from=console, submit orders after registering it, probably tens of dollars.

Web site for the record: this is probably the most complex operation there, and recommended here Tencent launched its own website for the record tutorial, https: //cloud.tencent.com/document/product/243/18909, go by the process, it would probably be half months, taking advantage of this time, you can build a blog myself on the server. (Tips: When you pay attention to the site for the record, can not handle the camera is mailed curtain, to develop camera points take pictures quickly, the same day I completed the application process, followed by other news just fine.)

Configure the required station on the cloud server environment, not just the configuration of WordPress environment

When you buy a good server, you can connect remotely on your server configuration required for the environment. More comprehensive Tencent cloud server configuration links in this http://bbs.qcloud.com/thread-10594-1-1.html.

On the server needs to be configured three aspects, first configure IIS environment, http: //bbs.qcloud.com/thread-8414-1-1.html; Next is configured Mysql environment, http: //bbs.qcloud. com / thread-8422-1-1.html; and finally the environment configuration of php, http: //bbs.qcloud.com/thread-8420-1-1.html.

Follow the tutorial suggest that you perform when you configure PHP environment, expanding the board to take configuration, try to open, when the late otherwise use phpMyAdmin, 500 internal error.

phpMyAdmin: Download phpMyAdmin, https: //www.phpmyadmin.net/downloads/, enter C: \ inetpub \ wwwroot folder; New phpMyAdmin folder after extracting the phpMyAdmin will just downloaded, copy all the files to the folder, php configuration to ensure a good case, open the browser, type http: // localhost / phpMyAdmin will jump to the login interface. Mysql carried out with the account password before logging configuration, log in, create a new database, named after the tutorial go again, but it is recommended to use their own definition of database and table names when using a real database, it will lead to security problems.

WordPress: Download wordpress, https: //cn.wordpress.org/download/releases/. Wordpress extract the files and then copy all the files thrown into the C: \ inetpub \ wwwroot; point your browser to http: // localhost /, wordpress configuration interface, refer to the program set up Wordpress tutorial (Windows environment), https: // link. jianshu.com/?t=http://bbs.qcloud.com/thread-10304-1-1.html, appears tutorials success prompted to complete all aspects of the page.

WordPress configuration required configuration files without FTP to load plug-ins and change the theme

When you install WordPress, very likely to submit questions database information failed. So once this problem occurs, you can try to modify the wp-config-sample.php, and save the modified content to wp-config.php file, put down your WordPress folder, you can solve. Details are as follows:

  • This file is used to automatically generate installer wp-config.php profile,
  • You can not use the site, you need to manually copy this file,
  • And rename it to "wp-config.php", and then fill in the relevant information.
  • This document contains the following configuration options:
    • MySQL settings
    • Key
    • Database table prefix
    • ABSPATH
  • @link https://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php
  • @package WordPress
    */

// ** MySQL settings - specific information from the host you are using ** //
name / ** WordPress database * /
the DEFINE ( 'DB_NAME', 'fill in the name of the database');

/ ** MySQL database username * /
the DEFINE ( 'DB_USER', 'fill in the username');

/ ** MySQL database password * /
the DEFINE ( 'DB_PASSWORD', 'fill the database password');

/ ** MySQL host * /
DEFINE ( 'DB_HOST', $ {database_server _ENV}); // recommended to fill this variable, a host can automatically identify, no configuration.

When the default / ** Create a data character encoding table * /
DEFINE ( 'db_charset', 'UTF8');

/ ** database finishing type. If in doubt, do not change * /
the DEFINE ( 'DB_COLLATE', '');

/**#@+

  • Identity authentication key and salt.
  • Changed to any unique string!
  • Or directly access {@link https://api.wordpress.org/secret-key/1.1/salt/
  • Key Generation Service} WordPress.org
  • Any changes will cause all cookies fails, all users will have to log in again.
  • @since 2.6.0 free to fill this part of the like may be used suitably for changes
    /
    DEFINE ( 'auth_key', 'K M ^ = {X4m_q BUX Jum2_mnn X-Y:?!. B2M ] -, LG (^ 2PJu6
    [yFy' );
    DEFINE ( 'SECURE_AUTH_KEY', 'Xh,;!! HV8) -eUu + | W (AR} R5yW @ D / Q [~ @] bC.s + P,) _ 45 | the IB / | X = the I [#I ');
    DEFINE (' LOGGED_IN_KEY ','. 8 Katex the parse error: the Expected 'the EOF', GOT '&' AT position 166: ... My; J 9T | 7YSxmk &, E (/ 5V & + r4Lr + 07 ...! I7o ^ the Y { D <| 0% M | PTc ');
    DEFINE ('!. logged_in_salt ',' V | [L ## C [. 9 NHS3)> ^ v8mHQo $>. 6 <0bCw / T} = | <-, the C-S & 2bnC ?; p8t.j Z-% C] -hI ');
    DEFINE (' NONCE_SALT ',' ^ V & #jMZV%:?! 6FJ & 8st4 | G.nq: ~ the U-f6egITEK5 the LS & S39WJ. 9% P = {96uR; 7 L7 iD% + S | ');

/**#@-*/

/**

  • WordPress Table Prefix.
  • If you have needs to install multiple WordPress in the same database, for each WordPress settings
  • Different table prefix. Prefix name only as numbers, letters underlined.
    * /
    $ Table_prefix = 'wp1_';
    // first blog
    $ table_prefix = 'wp2_'; // second blog
    $ table_prefix = 'wp3_'; // third blog

/**

  • Private developers: WordPress debugging mode.
  • This value to true, WordPress will display the prompt for the development of all.
  • It is strongly recommended to enable WP_DEBUG plug-in developers in the development environment.
  • For additional information can be used for debugging, visit Codex.
  • @link https://codex.wordpress.org/Debugging_in_WordPress
    */
    define(‘WP_DEBUG’, true);

/**

  • zh_CN locale: enable ICP record number display
  • You may be provided to modify the conventional →.
  • To disable, remove or comment out the Bank. DEFINE ( 'WP_ZH_CN_ICP_NUM', to true);
    * /

/* All right! Please do not continue editing. Please save this document. Use happy! * /

Absolute path / ** WordPress directory. * /
IF (! Defined ( 'ABSPATH'))
DEFINE ( 'ABSPATH', dirname ( the FILE .) '/');

/ ** then add the following information, without having to FTP can install WordPress plugins and themes * /

define(‘WP_TEMP_DIR’,ABSPATH.‘wp-content/tmp’);
define(“FS_METHOD”,“direct”);
define(“FS_CHMOD_DIR”,0777);
define(“FS_CHMOD_FILE”,0777);

/ ** WordPress set variables and include files. * /
Require_once (ABSPATH 'WP-settings.php'.);

Finally, modify your wp-content folder and all files to 777 permissions on it. As an example the windows platform. Right folder, click [Properties] to find 'safe' card, to which all users and groups - Full Control permissions to. So we do not need FTP account can install WordPress plugin and theme.

Finally, the last, I wish you're done and Kazakhstan, have questions, please leave a message at the bottom, I will promptly reply!

Published 15 original articles · won praise 11 · views 20000 +

Guess you like

Origin blog.csdn.net/y609532842/article/details/84259795