WordPress is a blog platform written in PHP. This article describes how to install WordPress on Windows Server 2012.
NoteIt's recommended that you can configure a personal blog by using a Tencent Cloud marketplace image. It may take a long time to set up the Discuz! forum manually.
Although PHP version 5.6.20 and later and MySQL version 5.0 and later support WordPress, we recommend using PHP 7.3 and MySQL 5.6 or later versions for security reasons.
The following software is involved in building WordPress:
Log in to the Windows instance using RDP (recommended).
You can also use other login methods that you are more comfortable with: log in to a Windows CVM instance using a remote desktop.
See Manually Building a WIPM Environment.
NoteYou can download the latest WordPress version from the official WordPress website.
Download WordPress and decompress it into a directory on the CVM.
For example, you can decompress it into C:\wordpress
.
Click >
> MySQL 5.6 Command Line Client to open the MySQL command line client.
Run the following commands on the MySQL command line client to create a database for WordPress.
For example, create a database named wordpress
.
create database wordpress;
Find wp-config-sample.php
under C:\wordpress
and rename it to wp-config.php
.
Open the wp-config.php
file with a text editor, and modify the relevant configuration information according to Step 3: Installing and configuring WordPress as shown below:
Save wp-config.php
.
Click to open Server Manager.
On the left sidebar, select IIS. Click the name of the server in the Server column to the right. Select Internet Information Services (IIS) Manager. The Internet Information Services (IIS) Manager window appears.
In the Internet Information Service (IIS) Manager window, expand your server on the left sidebar and click your website. The website management page appears, as shown below:
Delete websites bound to port 80.
You can change the port to another unused port, such as 8080.
In the Actions column on the right, click Add Website.
In the pop-up window, enter the following information and click OK.
wordpress
.C:\wordpress
.Find php.ini
under the directory that contains PHP. Open it with a text editor and make the following changes:
extension=php_mysql.dll
and delete the ;
at the beginning.extension=php_mysqli.dll
or extension=mysqli
and delete the ;
at the beginning.extension_dir= "ext"
and delete the ;
at the beginning.Save the php.ini
file.
http://localhost/wp-admin/install.php
. The WordPress installation page appears.Required Information | Description |
---|---|
Website Name | Name of the WordPress site. |
Username | Account name of the WordPress administrator. For security reasons, use a name other than `admin`. |
Password | Use a strong password, different than your current password. Store it in a secure location. |
Email address used to receive notifications |
If you encounter a problem when using CVM, refer to the following documents for troubleshooting:
Was this page helpful?