How to Install WordPress on Localhost: A Step-by-Step Guide {Updated}
Adding
WordPress to a localhost: why it’s so great! It’s fantastic to experiment,
develop, or get your head around WordPress without messing up a live web site.
With a localhost installation you will be
able to run a WordPress on your own machine with the help of server software.
Here’s how to get up and running with WordPress locally; it will only take you
a few minutes!
What You Need to Get Started?
How
to Get Ready to start with, you need:
· Computer with sufficient storage and computing
capacity.
· A local server environment such as XAMPP, WAMP or
MAMP.
· Current release of WordPress from wordpress. org.
Step
1: Set Up a Local Server Environment
It
basically makes your computer act like a web server. For Windows users, XAMPP
and WAMP are popular options, and for MacOS users, MAMP.
· Download and Install XAMPP (or WAMP/MAMP):
· Visit the XAMPP website.
· Download the version for your OS.
· Open the installer and follow the instructions.
· Launch XAMPP:
· Launch the XAMPP control panel.
Give
the green light to the "Apache" and "MySQL" modules. These
are all required by WordPress.
Step
2: Create a Database
Note:
WordPress needs a database to save the content and settings. Here’s how to
create one:
· Access phpMyAdmin:
· Open a web browser and visit
http://localhost/phpmyadmin.
· Create a New Database:
· Go to the top menu and click on "Databases".
· Type in a name for your database (e.g.,
wordpress_local).
In
the Collation dropdown menu, choose utf8mb4_general_ci and click Create.
Step
3: Download and Unzip WordPress
· Download WordPress: Go to wordpress. org and get the
newest version of WordPress.
· Extract Files: Extract the downloaded. zip file to
your computer.
· Copy the WordPress folder in the extracted folder to
the htdocs directory in your installed XAMPP directory (e.g C:\xampp\htdocs on
windows).
· If you want, you can change the folder name (e.g.,
my_wordpress_site).
Step
4: Configure WordPress Open WordPress
Setup Wizard:
· Visit your browser at address:
http://localhost/my_wordpress_site (substitute the name of the folder with what
you named it).
· Select a Language: Select your language and click
“Continue.”
· Database Configuration: Fill in the information as
follows:
· Database Name: The one you previously made (for
example, wordpress_local).
· Username: root (we use this by default for XAMPP).
· Password: (default for XAMPP is empty)
· Database Host: localhost.
· Table Prefix: It's best you use wp_ unless you want
something more specific.
Hit
'Submit" and "Run the Installation".
Step
5: Install WordPress This step is
optional and is the last step of the tutorial that covers an automatic
WordPress installation.
· Site Information: Enter your site title.
· Create a username and password (you will use these to
log in to your WordPress dashboard).
· Provide your email address.
· Leave "Discourage search engines from indexing
this site" unchecked, as this is a local install.
· Log In: After installation, log in to your WordPress
dashboard (from your browser at http://localhost/my_wordpress_site/wp-admin),
using the credentials you generated in step 1.
· Customize Your WordPress Site: Now that you have
WordPress installed, here are some words in another language or another
paragraph to fill the space:
· Add themes and plug-ins to your site.
· You can create/edit pages as well as posts.
· Tinker with settings & features without fear of
breaking a live site.
Troubleshooting Tips
1. Apache or MySQL Not Starting:
· Make sure no other application (Skype, for example) is
using port 80 or 443.
· If need be, modify the XAMPP settings to use
alternative ports.
2. Error Establishing Database Connection: Causes and Solutions?
· Confirm your database name, username, password in
wp-config. php file.
3. Permission Issues:
· On some systems you will need to allow write
permissions to the folder: ‘WordPress’.
Youtube Tutorial
Post a Comment