How I created my first local WordPress website
If you want to be a WordPress developer, having a local website is a good way to practice.
Creating a WordPress local website has never been harder, at least when I didn’t have any idea about it. Having the frustration of getting multiple errors consecutively.
However, now I know how to do it, and I tell you, it’s easy. There are many ways to create a local WordPress website, the easiest is using a “Local” app, which you can get from their website, localwp.com. After running the installation and the installation is complete, you can easily create a website from there by clicking the plus button saying “Create site”, and then setting up your new local website.
The second which was hard for me is creating the WordPress site using XAMPP. The process of creating a local website using XAMPP is pretty much long, you’ll have to follow the process to the letter.
- Download the XAMPP installer
- Run the installation and finish
- Download the WordPress zip file to your pc
- Open XAMPP and start “Apache”, “MySQL”, and “FileZilla”
- If you get an error for starting “MySQL”, the problem comes from the port attached to it, so you'll have to change the port by clicking the “config” button beside the “admin” button, it will lead you to a Notepad page, then you’ll scroll till you find “port = 3306” (you’ll find it in two places, so you’ll have to make changes for the two), change it from “3306” to “3307” or “3308”, anyone, and then save the file. Now you can start “MySQL”.
- Go to the file location of the WordPress zip file, extract it
- copy the WordPress file
- navigate your windows explorer to C:\Xampp\htdocs, and paste your WordPress file there.
- you can then rename the WordPress file to the name you want your website to be or you can just leave it
- The next step is to go to your xampp control panel and click the “admin” button for the “Apache” module, it will lead you to a local website, http://localhost/dashboard/, then click the phpMyAdmin menu.
- In the left section of the phpMyAdmin page, click “new”, and then you’ll input the name you want your database to be in the “create database” form, and then click “create”
- You’re almost done, open a new tab on your browser and type localhost/WordPress(or the name you changed the wp file to)
- It’ll open a new page asking you for some information, fill in your website name, type “root” as the username, and delete anything in the password form, then click “go” or whatever button you see.
- Don’t rush, you’re almost done, now fill in your info in the form you’ll be given and click the “button”.
Congrats, you’ve created your local website with XAMPP. You can now continue your journey of being a WordPress developer.
Thanks for reading.