Setting up WordPress on a local server means that you can build your WordPress site offline. Unlike building a website directly on wordpress.com, this option gives you the freedom to customize everything using PHP and CSS and basically create everything the way you like it before launching. It’s also a really helpful tool for beginners who need an offline playground where they can test their coding skills. Here is everything you need to know if you want to set up WordPress on a local server:
A web server allows you to set up WordPress locally on your computer. I’m using WampServer. but there are also other different softwares that should do the job too.
After downloading it, open it so it’s running on your computer.
Download WordPress from wordpress.org. Notice that wordpress.org and wordpress.com are not the same thing. If you want to create a website online without having to download anything, you can do it on wordpress.com.
Unzip your downloaded WP folder under your your web server. With Wamp you have to save it under the sub folder, www. Also remember to rename it to something else. You will later enter that name in the set-up of your localhost.
If you are using WampServer, left click on the icon in the task bar. Click on phpMyAdmin. It will take you to a new window. Log in with the username root and leave the password blank.
When you have logged in, you are taken to a page where you can set up a new database. You can give your new database any name you want but just make sure to remember it as you will need it later. I called mine wp_test_site.
Type localhost/your website’s name into your browser (the name you named your database in the previous step). I called mine test_wp_site so I typed localhost/test_wp_site.
Pick your language and move on to the next step. When you press next, you are taken to this page. No need to read it, just press Let’s Go!
Now you will have to enter a bit of information for the database to be able to connect with your WP files. The database name should be the name you gave your database in step 3. Username should be root and password should be left blank. The database host is localhost and table prefix is wp_
The last step is just about entering your personal information such as password and your website’s name. Don’t worry too much about it as you can always change it later.
That’s it! You’re done!