How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Hello Everybody, today I will teach you to install XAMPP On Windows 10 with a Custom Domain & SSL Certificate. So let’s get started.

Download And Install XAMPP For Windows

To download XAMPP, first, open any browser and enter XAMPP’s official website www.apachefriends.org. Click the PHP version you want to download from the XAMPP for Windows section, and the download will start.

Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Download And Install XAMPP For Windows
Download XAMPP For Windows

Once downloaded, install the XAMPP software the same way you would typically install software on a Windows computer.

Download And Install XAMPP For Windows
Install XAMPP For Windows

Install WordPress in XAMPP Server

To install WordPress XAMPP, you must first download WordPress. To download WordPress, enter wordpress.org and click download. The download will begin.

Download WordPress
Download WordPress

Once downloaded, open the XAMPP folder on your Windows computer and enter the htdocs folder.

Install WordPress in XAMPP Server
Install WordPress in XAMPP Server

Create a new folder in the htdocs folder. Such as your project name. I am creating a folder called testsite.

How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Add the WordPress files

Now extract the WordPress that you have downloaded to the folder that you have created. You can use WinRAR to Extract.

How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Create a database for WordPress

To create the database, first, start the XAMPP server and launch PHPMyAdmin. Then click on Databases at the top And enter a name for your database and click Create. Your name can be anything – remember it because you’ll need it for the next step.

Create a database for WordPress
Create a database for WordPress

Install WordPress locally

To install WordPress visit http://localhost/foldername. This means that you are creating a folder with the name of the WordPress file. You will see the WordPress installer here.

Install WordPress locally
Install WordPress locally

The only step where this process will differ from a typical install is the database details. When you get to the database details, enter them like this.

  • Database Name: Name of the database you created in PHPMyAdmin
  • Username: “root”
  • Password: Leave blank

Then click Run the installation.

How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Then click on install with your website name, WordPress admin username, password, email. Now you will see your WordPress admin login page.

How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Add a Free Custom Domain to XAMPP

We do not have to purchase the domain that we will use. I can also use google.com if I want. Do not open in Notepad as Administrator mode. If you do not open Administrator mode, you will not be able to edit the file. So it would be best if you opened Administrator mode.

Now click on File and click on Open. Then go to C: \ Windows \ System32 \ drivers \ etc. You will not see any file here because the text format is selected. Here you choose all Files from the text. Then you will see all the files.

Now you will see the “hosts” file is not an extension of the “hosts” file. Open the “hosts” file. There is no need to do anything in the rest of the file. We will only work on the “hosts” file.

Add a custom domain to XAMPP
Add a custom domain to XAMPP

Now go to the bottom of Notepad and add 127.0.0.1 to your domain. This means 127.0.0.1 space for the domain you want to use. Now save the file and close it. Now custom domain has been successfully added instead of localhost.

How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate
How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Install Free SSL Certificate

You need to download this files to install Free SSL Certificate, Download link. Once the file is downloaded, extract it. After Extracting, you will see three files.

Cert.conf and make-cert.bat. Copy these two files. Enter C:\XAMPP\apache then create a new folder here, name it crt, and paste the copied file

Install Free SSL Certificate

Now open cert.conf in Notepad or any code editor and replace yourdomain.com where yourdomain.com is written and enter the domain you want to use.

Install Free SSL Certificate
Install Free SSL Certificate

Now open cert.conf in Notepad or any code editor and replace yourdomain.com where yourdomain.com is written and enter the domain you want to use.

Install Free SSL Certificate
Install Free SSL Certificate

Enter the folder that was created automatically. Open server.crt Click Install Certificate> Local Machine>Next>Place All Certificates in the Following Store>Trusted Root Certification Authorities>OK

Install Free SSL Certificate
Install Free SSL Certificate
How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

Enter c:\XAMPP\apache\conf\extra folder and httpd-xampp.conf open in a notepad. Now there is a file named server.txt in the folder that you downloaded the zip file. Open server.txt Copy all text Paste below httpd-xampp.conf

Then, replace and save with your domain.

Install Free SSL Certificate

When we are done, we have successfully installed XAMPP, add custom domain and installed the free SSL certificate.

If you don’t want to bother so much, you can install WordPress on the local server with just a few clicks. There is another post about installing WordPress on a local server: Install WordPress In LocalHost With Bitnami.

How to Install XAMPP On Windows 10 With Custom Domain & SSL Certificate

So, guys, I hope today’s post will be beneficial to you. If you like the post, please share. If there is any problem or difficulty in understanding, please comment in the comment box below

You can read our other post about WooCommerce

Share your love
Default image
SM.Tanvir Hassan
I love technology and love to learn. This is my personal blog. I share with you everything I learn through this blog
Articles: 24

Newsletter Updates

Enter your email address below to subscribe to our newsletter

Leave a Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.