WordPress Basic Environment Configuration and Quick Installation Guide

2-minute read
2026-04-08
2026-06-04
2,383
I earn commissions when you shop through the links below, at no additional cost to you.

Basic Environment Requirements and Preparation Work

Before starting to install WordPress, it is crucial to ensure that your server or local computer meets the minimum requirements for its operation. An improperly configured environment can lead to installation failures, slow website performance, or even security vulnerabilities.

Version requirements for server software

WordPress is an application built on top of PHP and MySQL, so there are specific requirements for both of these technologies. The official recommendation is to use PHP 7.4 or a later version; it is even better to use PHP 8.0 or higher for improved performance and better security support. For the database, MySQL 5.6 or a later version, or the compatible MariaDB 10.1 or later versions, are required. You can choose either Apache or Nginx as your web server – both are widely supported. Additionally, make sure that the necessary PHP extensions are enabled. mysqli(Or mysqlnd)、opensslcurldomexiffileinfohashmbstring and xml

Create and configure a database

Whether you are using a local environment or a remote host, you will need a dedicated database. If you are using a shared virtual host, you can usually create a database through the “MySQL Database Wizard” in the control panel (such as cPanel). If you are managing the server yourself, you can use the command line or the phpMyAdmin tool to perform this task. Create a new database and note down its name. Next, create a separate user for that database and grant that user “all permissions” on the database. Make sure to carefully record the database name, username, password, and the database host address (which is usually the same as the server address). localhostHowever, this may vary in certain web hosting environments.)

Recommended Reading WordPress Website Building Guide: Create a Professional Website from Scratch

Downloading and Deploying WordPress Core Files

After obtaining the environment that meets the requirements, the next step is to obtain the WordPress program files and place them in the correct directory so that they can be accessed over the network.

UltaHost WordPress Hosting
30-day refund guarantee, unlimited bandwidth and database usage, free DDoS protection; purchase for 3 years and get a discount of 50%.

Methods to obtain the official installation package

The most straightforward way is to visit the download page on the WordPress official website to obtain the latest stable version. For a better Chinese-language experience, it is recommended to download the version that includes Simplified Chinese from the WordPress Chinese community. You will receive a file with the… .zip Compressed files with a specific suffix. On the server, you can also use them. wget Or curl The command is downloaded directly from the official website, for example:wget https://wordpress.org/latest.zip

Upload the file to the root directory of the website.

If you are working locally, you just need to extract the compressed package. For online servers, you will need to use an FTP/SFTP client (such as FileZilla) or the file manager in the hosting control panel to transfer the extracted files to the server. wordpress Upload all the contents of the folder to the root directory of the website. The root directory is usually… public_htmlwww Or htdocsPlease make sure to upload all hidden files (such as…) .htaccessOnce completed, your website’s root directory should directly contain the necessary files. wp-adminwp-contentwp-includes Core folders, etc.

Run the installation wizard and perform the basic configuration.

The file deployment is complete. You can now access your domain name or local address via a browser to start the well-known “5-Minute Installation” process. This graphical interface will guide you through the final configuration steps.

Fill in the database connection information.

Enter your website address in the browser, and you will first see a language selection interface. Select “Simplified Chinese” and proceed. The next crucial step is to configure the database connection. You need to enter the database information you prepared in the previous steps accurately: the database name, username, password, database host, and table prefix. The table prefix is set to a default value by default. wp_For security reasons, it is recommended to change it to a unique and difficult-to-guess prefix, for example: wp7b3_Click the “Submit” button. If the information is correct, WordPress will create the configuration file. wp-config.php

Recommended Reading The Ultimate Guide to Optimizing WordPress Website Performance: From Speed Testing to Practical Caching Techniques

Setting up site information and administrator accounts

After the successful database connection, you have reached the final step of the installation process. On this page, you need to set a title for your website; this title can be changed at any time later from the administration panel. You will also need to create the first user account, which will be the administrator of the website. Make sure to use a strong password and provide a valid email address. It is recommended not to use the default settings. admin As the username, you can also choose whether to allow search engines to index your website. For sites that are still under development, it is recommended to uncheck this option first. Click “Install WordPress” and wait for a moment; the system will then notify you that the installation was successful.

Key security and performance settings after installation

Successful login to the WordPress backend dashboard does not mean the work is done. Performing some initial settings can significantly enhance the security and usability of your website, laying a solid foundation for its long-term development.

Adjust the settings for fixed links and discussions.

In the background sidebar, navigate to “Settings” -> “Fixed Links.” Please do not use the “Plain” format, as it is not friendly to search engines. It is recommended to choose the “Article Title” option or a custom structure. /%postname%/ Or /%category%/%postname%/This will make the links to your articles clearer and easier for search engines to understand. Next, go to “Settings” -> “Discussion” and adjust the comment settings according to the nature of your website. For corporate websites, you may want to turn off “Allow other blogs to send citation notifications” and “Allow new articles to receive citation notifications” in order to reduce spam.

hosting.com Shared Hosting
High performance with AMD EPYC CPUs, NVMe SSD storage and LiteSpeed, 24/7, 24x7 expert in-house support, advanced security measures including SSL, brute force, malware and DDoS protection, savings of up to 73%

Basic measures to enhance security

Security should be established from the very first day. First of all, please make sure… wp-config.php The file has been successfully created, and any existing files in the root directory have been deleted. wp-config-sample.php File. Similarly, delete it as well. readme.html and wp-admin/install.php File: Install a security plugin immediately, for example… Wordfence Security Or Sucuri SecurityAnd enable its firewall and scanning features. Regularly updating the WordPress core, themes, and plugins is the most important and effective way to maintain security.

summarize

Installing WordPress is a logical and well-structured process that involves preparing the environment, deploying the necessary files, using the installation wizard, and making post-installation settings. By following the steps outlined in this guide, even beginners can set up a fully functional WordPress website in a short amount of time. The key to a successful installation lies in attention to detail, especially during the database configuration and initial security settings stages. A stable and secure foundation will provide a solid basis for creating website content, expanding its functionality, and optimizing its performance.

FAQ Frequently Asked Questions

What should I do if the page remains blank or an error message appears during the installation process?

This is usually caused by PHP configuration issues or insufficient memory. First, please check whether your server meets the minimum PHP version requirements for WordPress. Then, try to edit the configuration files via FTP. wp-config.php To increase the PHP memory limit, add the following code at the beginning of the file:define('WP_MEMORY_LIMIT', '256M');At the same time, check the server error logs for more detailed error information.

Recommended Reading How to Choose & Customize Open Source WordPress Themes: A Complete Guide from Installation to Optimization

How to change a website address from HTTP to HTTPS?

If you have already configured an SSL certificate for your domain name, you need to make changes in the WordPress backend and the database. First, go to “Settings” -> “General” and update the values in “WordPress Address (URL)” and “Site Address (URL)”. http:// change into https:// And save the changes. If issues such as circular redirects occur on the website after the modifications, you may need to make further edits. wp-config.php File: Add a new line:define('FORCE_SSL_ADMIN', true);

How to reset the WordPress administrator password if you have forgotten it?

There are several ways to reset a password. The fastest way is to use the “Forgot Password?” link on the login page, assuming that the administrator’s email address can receive emails properly. If the email address is unavailable, you can directly modify the database using the phpMyAdmin tool. Locate your user data table (for example… wp_usersEdit the corresponding user's record and modify it accordingly. user_pass Replace the value of the field with a new MD5 hash, or use an SQL command to perform the update. A safer approach is to… WP-CLI Command-line tool execution:wp user update 1 --user_pass=新密码

InterServer Shared Hosting
Shared hosting $2.50 USD per month , first month $0.1 USD promo code tryinterserver, 461 cloud apps scripts, one click install.

After installation, you are unable to upload media files, or you receive a message indicating that you don’t have write permissions for the directory?

This is a file permissions issue. WordPress needs to have the necessary permissions to function correctly. wp-content/uploads The directory has write permissions, which are necessary to save uploaded images, documents, and other files. You need to ensure that the directory exists using FTP or the server’s command line, and set its permissions to 755 on a Linux server. If the issue persists, you may need to change the owner of the directory to the user running the web server process (such as www-data or apache). Please be cautious when adjusting permissions, as incorrect settings can pose security risks.