Since I’m still learning when it comes to WordPress theme development, I wanted to share my experiences with all of you. I know there are lots of other people out there just beginning their WordPress journey and thought you might have some of the questions (or run into a few of the problems) that I have. This is the first in a series of posts that will cover basic WordPress theme development from start to finish. I hope you’re able to learn something from these posts – even if it’s something small. I recently released my very first WordPress theme, but before I could start coding I had to get my local host up and running.īelow are the steps I used for locally installing WordPress on a Mac. Why am I only writing about local installation on a Mac? Because that’s what I have. So for those of you with Macs – let’s get started! Download & Setup MAMP If I ever install WordPress on a PC I’ll be sure to update this post. I recommend using MAMP for local installations of WordPress on a Mac. First things first, you need to download MAMP (Mac Apache MySQL PHP) which you can get for free from their website by clicking on the nifty button below. Once you have it downloaded, install MAMP like any other program by dragging the folder into your applications folder. It’s recommended you use 80 for your Apache Port and 330 for your MySQL Port.Click on the “Ports” button to update the values selected.This should open a second screen (see img below – right).First you’ll want to open MAMP, and you should get a start up (see img below -left).Now that you have Mamp installed on your computer you will have to to adjust your default MAMP settings. The adjustments to the ports will allow you to exclude the port number from your localhost URL and protect your local host respectively. Even thought using port 80 requires you to enter your admin password each time your start your servers, it really doesn’t bother me and it makes me feel more secure about my secret theme creations. While you’re in your preferences you’ll also want to set your PHP to the latest version and choose a document root location for Apache (100% your choice – I made a new folder in my docs just to keep things organized). You should be taken to a new screen where you are given the option to create a new database.You will see a welcome screen such as below.Now it’s time to start up your servers and add a database. ![]() Think about what you want to name your database. Test, wordpress, wp, wpdev – whatever works for you (just remember the name because you’ll need to use it for another step later on).īam! You are now all set up to install WordPress locally! Look at you – being all tech savvy. WordPress is famous for their easy installation. To start – download the latest version of WordPress from their site by clicking on the button below. Once downloaded, double click to extract the folder. If you have any anti-virus installed, you may see the following message.Open the “WordPress” folder and drag all of the other contents into your Applications/MAMP/htdocs folder. Once the download is finished, open the program to install it on your system. To download this program, click on the following link. Below, we will discuss the installation process, step by step. XAMPP is one of the programs that simulate the hosting environment on your local computer. How to Install WordPress on Localhost With XAMPP? As you don’t need to purchase any host or a domain. Installing WordPress on localhost is very cheap.Make sure the Apache and MySQL server is running and the green check is marked as shown above. Now launch MAMP from the homepage shortcut. By installing WordPress on localhost, you can better understand and learn it. Now go to your MAMP installation directory and navigate to htdocs folder and paste the wordpress folder in it that we have extracted.Editing files and adding new content happens really quickly because you are not uploading them on a server.Locally hosted WordPress doesn’t require you to stay connected to the internet.If there are any bugs and errors no one can see them but yourself.Installing WordPress on localhost has many advantages. Installing WordPress on localhost is like practicing before a big tournament. ![]() Also, your audience can see bugs, changes, and errors as well. When WordPress is published on a live server, you can preview the changes, bugs, and errors live. The question that remains unanswered is why should we install WordPress on localhost? Why not just purchase a host and a domain? Why Should I Install WordPress on Localhost? The only requirement is to pick a server simulating programs like XAMPP, MAMP, and WAMP. Without paying for any services hosting providers offer.īy using the localhost, you can install and run WordPress on your computer. It simulates the hosting server on your own computer. In simple words, the localhost is a hostname that means this computer.
0 Comments
Leave a Reply. |