一个 子域名 is a powerful tool that allows you to create a completely separate website or application under the umbrella of your main domain name (e.g., staging.yourdomain.com
或者 blog.yourdomain.com
).
Unlike an addon domain, which acts as a secondary primary site, a subdomain is simply a division of your existing domain. This makes it ideal for:
- Staging & Testing: Creating a private copy of your live site to test updates and changes before pushing them live.
- Micro-sites: Running a dedicated e-commerce store, a support portal, or a separate community forum.
- Development: Launching a new project without having to buy a new domain name.
If you are hosted with Quape and use cPanel, the entire process is completed in two simple phases using the Softaculous 应用程序安装程序—the fastest and most common method.
目录
切换Steps to Install WordPress on a Subdomain
Phase 1: Creating the Subdomain in cPanel
The first step is to formally register the subdomain with your hosting server, which creates a dedicated folder for your new WordPress files.
Step 1: Log in to Your cPanel Account
Access your cPanel dashboard using the link provided by Quape (usually yourdomain.com/cpanel
). Once logged in, navigate to the “Domains” 部分。
- 点击 “Subdomains” icon.
Step 2: Define and Create the Subdomain
On the 子域名 page, you need to define three fields:
- 子域名: Enter the desired prefix (e.g.,
staging
,dev
, 或者shop
). - Domain: Use the dropdown menu to select the main domain you want to attach the subdomain to (e.g.,
您的域名.com
). The full URL will display below (e.g.,staging.yourdomain.com
). - Document Root: This path automatically generates the folder where the files will be stored (e.g.,
/public_html/staging
). This is where the installer will place your new WordPress files.
- 点击 “Create” 按钮。
cPanel will confirm success. You now have a ready-made folder on your server to house the WordPress installation.
Phase 2: Installing WordPress via Softaculous
With the subdomain active, we use the one-click installer to complete the installation effortlessly.
Step 3: Access the WordPress Installer
Return to the main cPanel dashboard and locate the “软件” 部分。
- 点击 “WordPress Manager by Softaculous” 或 “Softaculous Apps Installer” icon.
- On the WordPress overview screen, click the blue “立即安装” 按钮。
Step 4: Configure the Installation URL (Critical Step)
This step requires careful attention to ensure WordPress is installed in the correct location:
- Choose Protocol: 选择
https://
(Quape provides a free SSL, making HTTPS the standard). - Choose Domain: Use the dropdown menu and select the exact subdomain you just created (e.g.,
staging.yourdomain.com
). - In Directory: LEAVE THIS FIELD COMPLETELY BLANK. If you enter anything here, WordPress will install in a subfolder (e.g.,
staging.yourdomain.com/test
), which defeats the purpose of installing on the subdomain root.
Step 5: Set Up the Site Details and Admin Account
Fill out the required site information:
场地 | Instruction and Best Practice |
---|---|
站点名称 | A descriptive name (e.g., “Quape Staging Area”). |
管理员用户名 | Choose a unique username. Avoid ‘admin’ for security. |
管理员密码 | Use the password generator to create a strong, secure password and save it immediately. |
管理员邮箱 | Use an active email address for critical notifications and password recovery. |
Step 6: Finalize and Launch
- Advanced Options: For beginners, you can leave these as default.
- 电子邮件安装详细信息: Enter an email address to receive a permanent record of your login details and site URLs.
- 点击最后 “安装” 按钮。
Softaculous will take about a minute to complete the installation and configure the necessary files and database.
Post-Installation Access
Once complete, Softaculous will provide the two essential links:
- Your Subdomain Site URL:
https://staging.yourdomain.com
- 您的管理 URL(仪表板):
https://staging.yourdomain.com/wp-admin
Use the Administrative URL, and your chosen Admin Username and Password to log in and start customizing your new WordPress project.
Effortlessly Manage Multiple Sites with Quape Hosting
Installing WordPress on a subdomain is an effective strategy for growth and development, but running multiple installations requires a robust hosting platform that can dedicate the necessary resources to all your projects simultaneously.
在 Quape, we offer high-performance WordPress 托管 和 专用服务器 designed for multisite efficiency. Our optimized infrastructure ensures that whether you’re building a simple blog on your main domain or running a complex staging site on a subdomain, all your sites operate at peak speed and reliability.
Don’t let managing multiple projects slow you down. Choose Quape and get the dedicated resources and support you need to handle every subdomain with confidence.
- 如何在 VPS 上逐步安装 WordPress - 2025 年 10 月 10 日
- 如何轻松地在子域名上安装 WordPress - 2025 年 10 月 10 日
- 如何在 cPanel 中逐步安装 WordPress - 2025 年 10 月 9 日