Table of Contents
Prepare host and FTP tools
Download and unzip the WordPress package
Create a database and modify configuration files
Upload the file and run the installation wizard
Home CMS Tutorial WordPress How to install WordPress manually

How to install WordPress manually

Jul 30, 2025 am 02:10 AM

Installing WordPress mainly includes the following steps: 1. Prepare the host, FTP login information and FTP client that supports PHP and MySQL; 2. Download and unzip the package from wordpress.org to ensure that the wp-config-sample.php file is included; 3. Create a database in the host control panel, and create a configuration file wp-config.php with wp-config-sample.php to fill in the correct database information; 4. Use FTP or file manager to upload all WordPress files to the website root directory; 5. Access the domain name in the browser and enter the installation wizard, fill in the site title and administrator account information to complete the installation; 6. Delete or change the default administrator account and password in time after installation to improve security. Although there are many steps in the whole process, each step is simple to operate, and the focus is on correctly configuring the database and file upload location.

Installing WordPress is actually not difficult. As long as you have basic website operation experience, manually installing WordPress can be done by yourself. The entire process mainly involves several steps of downloading programs, configuring databases and uploading files. Let me explain how to do it step by step.


Prepare host and FTP tools

Before you start, you have to make sure you already have a virtual host that supports PHP and MySQL and has access to FTP. Many hosting providers provide the function of installing WordPress in one click, but if you want to control the installation process more flexibly or need to customize the settings, manual installation is a better choice.

You need to prepare:

  • A host environment that supports PHP and MySQL
  • FTP login information (provided by the host chamber of association)
  • Connect to the server using an FTP client like FileZilla

Some host backends also provide online file managers, you can avoid using FTP, but using FTP is more intuitive and convenient.


Download and unzip the WordPress package

Go to wordpress.org to download the latest official WordPress version. Download a .zip package and unzip it on your local computer. You will see a wordpress folder inside that contains all WordPress core files.

The key to this step is not to miss any files, especially wp-config-sample.php , which will be used to create configuration files later.


Create a database and modify configuration files

Log in to your host control panel, find the database management section (usually phpMyAdmin), and create an empty MySQL database. Then go back to the local WordPress folder, find the wp-config-sample.php file, open it, and fill in your database information:

 define('DB_NAME', 'your database name');
define('DB_USER', 'database username');
define('DB_PASSWORD', 'Database Password');
define('DB_HOST', 'localhost'); // Most of the time, keep the default

After saving, rename the file to wp-config.php , which is the core configuration file of WordPress.

Sometimes novices will get the database username or password wrong, causing the installation to fail. If you are not sure about this information, you can contact the hosting customer service directly to confirm.


Upload the file and run the installation wizard

Next, use FTP to upload all WordPress files to the root directory of your website (usually public_html or www folder). After the upload is completed, enter your URL in the browser, such as http://你的域名.com , and WordPress will automatically jump to the installation page.

Follow the prompts to fill in the site title, administrator username, password and email, and click "Install WordPress".

After the installation is completed, remember to delete or change the default administrator account and password to avoid security risks.


Basically that's it. Manually installing WordPress Although there are many steps, each step is not complicated. Just pay attention to the database configuration and file upload location.

The above is the detailed content of How to install WordPress manually. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to clear WordPress cache manually How to clear WordPress cache manually Aug 03, 2025 am 01:01 AM

To clear WordPress cache, you must first confirm the cache method before operating. 1. When using the cache plug-in, log in to the background to find the "Clear Cache" button provided by the plug-in (such as "DeleteCache" or "PurgeAll") and click to confirm the clearing. Some plug-ins support clearing separately according to the page; 2. In the absence of the plug-in, enter the cache directory under wp-content through FTP or file manager to delete the cache file. Note that the path may change depending on the host environment; 3. When controlling the browser cache, press Ctrl F5 (Windows) or Cmd Shift R (Mac) to force refresh the page, or clear the browser history and cache data, or use incognito mode to view the latest inside.

How to exclude categories from the loop How to exclude categories from the loop Aug 07, 2025 am 08:45 AM

There are three ways to exclude specific categories in WordPress: use query_posts(), use the pre_get_posts hook, or use the plug-in. First, use query_posts() to directly modify the main loop query in the template file, such as query_posts(array('category__not_in'=>array(3,5))), which is suitable for temporary adjustment but may affect paging; second, it is safer to add functions in functions.php through the pre_get_posts hook. For example, excluding the specified classification ID when judging the home page main loop, it will not affect other page logic; finally, WPCate can be used

How to migrate a single site to multisite How to migrate a single site to multisite Aug 03, 2025 am 01:15 AM

To migrate WordPress single site to multi-site mode, follow the following steps: 1. Add define('WP_ALLOW_MULTISITE',true); enable multi-site function; 2. Select subdomain or subdirectory mode according to needs; 3. Enter the "Network Installation" interface to fill in information and modify the configuration files and .htaccess rules as prompts; 4. After logging in to the background again, check whether the multi-site management interface is normal; 5. Manually activate the themes and plug-ins of each site and test compatibility; 6. Set permissions and security measures to ensure that the super administrator's permissions are controlled; 7. If you need to open registration, you should enable the corresponding options and limit the risk of spam sites. The entire process needs to be operated with caution

How to display custom user fields How to display custom user fields Aug 05, 2025 am 06:43 AM

To realize the display of custom user fields on forums, CMS or user management platforms, the following steps must be followed: 1. Confirm whether the platform supports custom user fields. For example, WordPress can be implemented through plug-ins, Discourse through background settings, and Django through custom models; 2. Add fields and configure display permissions, such as setting field types and visibility in WordPress to ensure that privacy data is only authorized to view by users; 3. Call field values in front-end templates, such as using PHP function get_user_meta() or Django template syntax {{user.profile.city}}; 4. Test the field display effect, verify the access permissions of different roles, and the mobile terminal

How to protect wp-admin with password How to protect wp-admin with password Aug 05, 2025 am 04:04 AM

There are three ways to protect the WordPress backend: 1. Use .htpasswd and .htaccess to add server-layer passwords. By creating encrypted credential files and configuring access control, you cannot enter even if you know the login address and account number; 2. Change the default login address and use plug-ins such as WPSHideLogin to customize the login URL to reduce the risk of being automated attacks; 3. In combination with the IP whitelist restricting access sources, set to allow only specific IPs to access wp-login.php in the server configuration to prevent login attempts at unauthorized locations.

How to increase upload file size limit in WordPress How to increase upload file size limit in WordPress Aug 02, 2025 am 03:28 AM

To solve the problem of WordPress being restricted in uploading large files, you can implement it in the following four ways: 1. Modify the upload_max_filesize, post_max_size and memory_limit parameters in the php.ini configuration file and restart the server; 2. Add the php_value instruction to adjust the limit in the .htaccess file of the Apache server; 3. Define the WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT constants in wp-config.php; 4. Contact the host service provider to request adjustment of the PHP limit. Priority try .htaccess or wp-config

How to optimize WordPress database performance How to optimize WordPress database performance Aug 05, 2025 am 06:51 AM

When WordPress databases run slowly, you can improve performance by regularly cleaning up junk data, optimizing table structure and indexing, enabling caching mechanisms, and adjusting database server configuration. 1. Regularly clean up spam data, such as article revisions, drafts, spam comments, etc. You can use plug-ins or manually execute SQL statements to delete it. It is recommended to once a month. 2. Optimize the database table structure and index, add indexes to high-frequency query fields (such as wp_postmeta's meta_key) to improve query efficiency, but avoid excessive indexing affecting write performance. 3. Enable the cache mechanism, such as object cache (Redis/Memcached) or use the cache plug-in (W3TotalCache/WPSuperCache), and cooperate with C

How to revert theme update How to revert theme update Aug 23, 2025 am 11:01 AM

If there is any problem after updating WordPress theme, you can roll back the old version to resolve. Method 1: Manually install the old version of the theme. You need to download the corresponding .zip file and upload it to the background to activate. Pay attention to backup settings in advance. Method 2: Use plug-ins such as WPDowngrade to manage the version, which supports direct switching and viewing of logs in the background, but some old versions still need to bring their own links. Notes include: be sure to back up website data, confirm the compatibility of the old version, prioritize operation in the test environment, and retain the current file reference modification content.

See all articles