Introduction
WordPress is a blog platform written in PHP. This article describes how to install WordPress on Windows Server 2012.
Software
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.
These are the software involved:
- Operating system: Windows Server 2012
- Web server: IIS 8.5
- Database: MySQL 5.6.46
- Hypertext interpreter: PHP 7.3.12
- Blog platform: WordPress 5.3
Procedure
Step 1: Logging in to Windows CVM
Step 2: Setting up WIMP
- Install IIS.
- Deploy PHP 5.6.20 or later.
- Install MySQL 5.6 or later.
Step 3: Installing and configuring WordPress
You can download the latest version of WordPress from the official WordPress website.
- Download WordPress and decompress it to a directory on the CVM.
For example, you can decompress it to C:\wordpress
.
- Right-click
. Input cmd in Run and press Enter to open a command line window.
- Run the following commands in the command line window 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 as wp-config.php
.
- Use a text editor to open
wp-config.php
and edit the configuration information as detailed in Step 4: Installing MySQL.
- Save
wp-config.php
.
- Click
to open Server Manager.
- In the navigation panel to the left, select IIS. Right-click the name of the server in the Server column and select Internet Information Services (IIS) Manager to open the Internet Information Services (IIS) Manager window.
- In the Internet Information Service (IIS) Manager window, expand your server in the left navigation panel and select your website. This opens the website management page.
- Delete websites bound to port 80.
You can change the port to another unused port, such as 8080.
- Click Add Website.
- Input necessary information and click OK.
- Website name: name of the website, such as
wordpress
.
- Application pool: select DefaultAppPool.
- Physical path: the directory that contains WordPress, such as
C:\wordpress
.
- Find
php.ini
under the directory that contains PHP. Open it with a text editor and make the following changes:
- The necessary changes are different for different PHP versions.
- For PHP 5.x, find
extension=php_mysql.dll
and delete the ;
at the beginning.
- For PHP 7.x, find
extension=php_mysqli.dll
and delete the ;
at the beginning.
- Find
extension_dir= “ext”
and delete the ;
at the beginning.
14 Save php.ini
.
Step 4: Verifying the WordPress Configuration
- Open a browser window on your local machine and visit
http://localhost/wp-admin/install.php
. The WordPress installation page appears.
- Input information as prompted by the installation wizard. Click Install WordPress to complete the process.
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 | Email address used to receive notifications |
Now, you can log in to your WordPress blog website and publish blogs.
Using a Domain Name
Use a domain name that makes your website easier to remember. We recommend you obtain a domain name and set it to point to your WordPress site. If you are installing WordPress just to learn the process, you can skip this step.
FAQ
If you encounter a problem when using CVM, refer to the following troubleshooting documents based on your actual situation.
Was this page helpful?