{"id":181165,"date":"2023-08-08T09:02:14","date_gmt":"2023-08-08T09:02:14","guid":{"rendered":"https:\/\/ded9.com\/?p=181165"},"modified":"2025-12-09T07:33:27","modified_gmt":"2025-12-09T07:33:27","slug":"how-to-install-wordpress-on-a-subdomain-in-cpanel","status":"publish","type":"post","link":"https:\/\/ded9.com\/tr\/how-to-install-wordpress-on-a-subdomain-in-cpanel\/","title":{"rendered":"How to Install WordPress on a Subdomain in cPanel \u2014 Step-by-Step Guide"},"content":{"rendered":"<p style=\"text-align: left;\">To build a website, we need to install it on the host. The best option for WordPress is Linux hosting, which is available today with a slightly better, easier configuration. We already mentioned installing WordPress on cPanel and DirectAdmin. For this purpose, the installation steps are done on the root host and appear in the primary address. But today, we will teach you how to install WordPress on a subdomain in cPanel. This post is valuable and practical for people who need to install multiple sites on a single host.<\/p>\n<h2 style=\"text-align: left;\">Installing WordPress on a Subdomain in cPanel<\/h2>\n<p style=\"text-align: left;\">Discussing why WordPress is installed on a subdomain in cPanel is not harmful.<\/p>\n<p style=\"text-align: left;\">There are many reasons to install WordPress on a subdomain. Typically, you use this method to distinguish between installing on a subdomain and installing on the main WordPress branch. You may make this distinction for branding, technical, or both.<\/p>\n<p style=\"text-align: left;\">For example, you may want to use a different theme or install additional plugins. Here are some examples:<\/p>\n<p style=\"text-align: left;\">Knowledge Base \/ Support \u2013 e.g., docs.yoursite.com<br \/>\nBlog \u2013 e.g., blog.yoursite.com<br \/>\nBilingual site \u2013 e.g., uk.yoursite.com<br \/>\nOnline store \u2013 e.g., shop.yoursite.com<br \/>\nCourses \u2013 eg, courses.yoursite.com<br \/>\nEvents \u2013 e.g., events.yoursite.com<\/p>\n<p style=\"text-align: left;\">The situation may also be different. For example, you may have created your online store with Shopify but want to use WordPress for your store blog because it offers more powerful blogging functionality. In this case, you must install WordPress on the subdomain in cPanel.<\/p>\n<p style=\"text-align: left;\">Now that we have examined why this is important, it is time to learn how to install it.<\/p>\n<h3 style=\"text-align: left;\"><span style=\"font-size: 14pt;\">Step 1: Create a subdomain in WordPress<\/span><\/h3>\n<p style=\"text-align: left;\">Before installing WordPress, you need to create a subdomain in cPanel. To do this, follow these steps:<\/p>\n<p style=\"text-align: left;\">Log in to your cPanel. On the Tools page, in the Domains section, click <a href=\"https:\/\/en.wikipedia.org\/wiki\/Subdomain\" target=\"_blank\" rel=\"noopener\">Subdomains<\/a>:<\/p>\n<p style=\"text-align: left;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-181166 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/subdomains.jpg\" alt=\"Log in to your cPanel. On the Tools page, in the Domains section, click Subdomains:\" width=\"606\" height=\"196\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/subdomains.jpg 606w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/subdomains-300x97.jpg 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<p style=\"text-align: left;\">On the page that opens, click on Create a Subdomain. A new domain is created here:<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter wp-image-181169 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/add-site-url.jpg\" alt=\"On the page that opens, click on Create a Subdomain. A new domain is created here:\" width=\"800\" height=\"293\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/add-site-url.jpg 800w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/add-site-url-300x110.jpg 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/add-site-url-768x281.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p style=\"text-align: left;\">Subdomain: Here, enter the exact name you want for the subdomain. For example, we tend to create a blog as a subdomain.<br \/>\nDomain: Enter the address of the central part of the leading site here.<br \/>\nDocument Root: Enter the address that will be created as a subdomain here.<\/p>\n<p style=\"text-align: left;\">After that, click the Create button to apply. No. Our subdomain has been created and is ready to install WordPress.<\/p>\n<h3 style=\"text-align: left;\"><span style=\"font-size: 14pt;\">Step 2: Download and install WordPress on the created subdomain<\/span><\/h3>\n<p style=\"text-align: left;\">Now, click on the File Manager option on the main page of cPanel and go to public_html from there.<\/p>\n<p style=\"text-align: left;\">\n<img decoding=\"async\" class=\"aligncenter wp-image-181175 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/file-manager.jpg\" alt=\"Now, click on the File Manager option on the main page of cPanel and go to public_html from there.\" width=\"800\" height=\"199\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/file-manager.jpg 800w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/file-manager-300x75.jpg 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/file-manager-768x191.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p style=\"text-align: left;\">In Public_html, a folder with the selected tisubdomain title will be seen. This is where WordPress should be installed.<\/p>\n<p style=\"text-align: left;\">Suppose the name of this folder is blog.mywebsite.com, according to our creation:<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-181172 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/subdomain-directory.jpg\" alt=\"Suppose the name of this folder is blog.mywebsite.com, according to our creation:\" width=\"800\" height=\"221\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/subdomain-directory.jpg 800w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/subdomain-directory-300x83.jpg 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/subdomain-directory-768x212.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p style=\"text-align: left;\">Now, it is enough to download the latest version of WordPress from the WordPress repository and upload the received file to the root of the subdomain. Then, extract it and move the WordPress folder&#8217;s contents to the subdomain&#8217;s primary source (blog.mywebsite.com).<\/p>\n<h3 style=\"text-align: left;\">Step 3: Create a database for WordPress<\/h3>\n<p style=\"text-align: left;\">We need to build a database to connect the content to the site. That is precisely what we did for the leading site; we must do the same for the subdomain. For this purpose, visit the main page of Cpanel and click on the MySQL database wizard option to go to the database creation page:<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-181187 size-thumbnail\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/mysql-db-wizard-150x148.jpg\" alt=\"We need to build a database to connect the content to the site. That is precisely what we did for the leading site; we must do the same for the subdomain. For this purpose, visit the main page of Cpanel and click on the MySQL database wizard option to go to the database creation page:\" width=\"150\" height=\"148\" \/><br \/>\nHere, you have to choose a name for the database, username, and password:<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-181184 size-thumbnail\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/choose-DB-name-150x150.jpg\" alt=\"Here, you have to choose a name for the database, username, and password:\" width=\"150\" height=\"150\" \/><\/p>\n<p style=\"text-align: left;\">Now, click on the Next Step option to proceed with the rest of the database creation steps:<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-181181 size-thumbnail\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/create-db-user-150x150.jpg\" alt=\"Now, click on the Next Step option to proceed with the rest of the database creation steps:\" width=\"150\" height=\"150\" \/><\/p>\n<p style=\"text-align: left;\">After entering a solid username and password, click on the Create User option to see a page similar to the image below:<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-181178 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/all-privilage.jpg\" alt=\"After entering a solid username and password, click on the Create User option to see a page similar to the image below:\" width=\"700\" height=\"499\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/all-privilage.jpg 700w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/08\/all-privilage-300x214.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p style=\"text-align: left;\">By selecting these items, we connect the user with the database. Now, click Next Step. A message indicating that the operation was successful will appear. Here, the construction and database connections are also completed.<\/p>\n<h3 style=\"text-align: left;\">Step 4: Install WordPress on the Subdomain<\/h3>\n<p style=\"text-align: left;\">Now that we have made all the preparations, it&#8217;s time for the main operation: installing WordPress on the subdomain in CPanel! For this purpose, enter the subdomain address, i.e., blog.mywebsite.com, in your address bar. In the first step, select the WordPress language, usually Farsi. After that, you will see the following image:<\/p>\n<p style=\"text-align: left;\">Now it&#8217;s time to enter the database information. Everything we made for the database must be entered in this section: after entering the above information, click the send button. You will see the following image: Now, click on the install button.<\/p>\n<p style=\"text-align: left;\">Here, we have to enter the information about the WordPress site.<\/p>\n<p style=\"text-align: left;\">Site Title: You must consider a title for your site\u2014for example, the jacket training base.<\/p>\n<p style=\"text-align: left;\">Username: Specify a username for your site.<\/p>\n<p style=\"text-align: left;\">Password: To enter the admin, you must also specify a password in addition to the username. The more complex the password, the better.<\/p>\n<p style=\"text-align: left;\">Your email: Choose an email. This email is known as the admin.<\/p>\n<p style=\"text-align: left;\">Showing to search engines: You can prevent search engines from checking your site until it is ready.<\/p>\n<p style=\"text-align: left;\"><strong>Now, click on the Launch WordPress button.<\/strong><\/p>\n<p style=\"text-align: left;\">Installing WordPress on a subdomain in cPanel was as simple as this.<\/p>\n<h2 style=\"text-align: left;\">Advantages and disadvantages of installing WordPress on a subdomain<\/h2>\n<h3 style=\"text-align: left;\">Advantages:<\/h3>\n<p style=\"text-align: left;\">A subdomain is separate from the leading site, which is good if it has a different purpose -for example, it is an excellent option for installing a blog and an online store.<\/p>\n<p style=\"text-align: left;\">You can use different themes\/plugins to install WordPress. For example, you can use a completely different theme and design for the subdomain.<\/p>\n<p style=\"text-align: left;\">While you can create separation between the original domain names, you maintain the same overall branding. That would be a different situation if you changed to a separate domain name.<\/p>\n<p style=\"text-align: left;\">You can use a different host to separate the subdomain from your main site and prevent them from influencing each other. This can be useful, provided that the content in the subdomain is generally available. For example, some VIP sites host member information on a subdomain because unique content requires more space.<\/p>\n<p style=\"text-align: left;\">You can back up sites on separate schedules optimized for each. This can save capital and resources while keeping information secure.<\/p>\n<p style=\"text-align: left;\">There is no interference between the subdomain and the primary domain.<\/p>\n<h3 style=\"text-align: left;\">Disadvantages:<\/h3>\n<p style=\"text-align: left;\">Google will likely treat subdomains as separate sites, negatively affecting your subdomain&#8217;s <a href=\"https:\/\/ded9.com\/what-is-seo\/\">SEO <\/a>because it doesn&#8217;t take full credit from your primary domain. However, SEO experts disagree about the importance of this issue.<\/p>\n<p style=\"text-align: left;\">If you install two WordPress instances separately, site management becomes complicated. (e.g., 2x the number of updates to be applied).<\/p>\n<p style=\"text-align: left;\">You often must purchase two licenses to use the same plugin on both sites. For example, the popular Elementor Pro plugin counts a subdomain as a separate site.<\/p>\n<h2>Installing WordPress on a Subdomain in cPanel<\/h2>\n<p style=\"text-align: left;\">Sometimes we need to install two WordPress installations on our site. Two WordPress sites, each with its own address. For this purpose, the best option is to create a subdomain. This way, you will have two or more sites with one domain address. In this article, we discussed how to install WordPress on a subdomain in cPanel so that you can efficiently perform this operation.<\/p>\n<h2>FAQ<\/h2>\n<div id=\"rank-math-rich-snippet-wrapper\"><div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-1\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I create a subdomain before installing WordPress?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Log in to cPanel \u2192 go to the Subdomains (or \u201cDomains\u201d) section \u2192 enter the subdomain name (e.g. \u201cblog\u201d) \u2192 cPanel automatically creates a document-root folder (e.g. \/public_html\/blog) for it.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-2\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I install WordPress on that subdomain?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>In cPanel, open the \u201cSoftaculous Apps Installer\u201d (or \u201cWP Toolkit\u201d), select WordPress \u2192 choose the subdomain from the drop-down list \u2192 leave the directory field blank \u2192 fill in site settings (admin user, password, etc.) \u2192 click \u201cInstall.\u201d<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-3\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Is a separate database required for WordPress on a subdomain?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes \u2014 typically you create a new MySQL database and user via cPanel\u2019s \u201cMySQL Databases\u201d panel, assign the user to the database with full privileges, and then provide those credentials during WordPress setup.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>To build a website, we need to install it on the host. The best option for WordPress is Linux hosting, which is available today with a slightly better, easier configuration. We already mentioned installing WordPress on cPanel and DirectAdmin. For this purpose, the installation steps are done on the root host and appear in the [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":181190,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[814],"tags":[820,929],"class_list":["post-181165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","tag-cpanel","tag-wordpress"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/posts\/181165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/comments?post=181165"}],"version-history":[{"count":4,"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/posts\/181165\/revisions"}],"predecessor-version":[{"id":265955,"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/posts\/181165\/revisions\/265955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/media\/181190"}],"wp:attachment":[{"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/media?parent=181165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/categories?post=181165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ded9.com\/tr\/wp-json\/wp\/v2\/tags?post=181165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}