After reading this article, you will learn what is a local server, why do I need it and after then how to run wordpress site on local host or on your computer.
What is the advantages of localhost and why it is necessary
A tremendous convenience for webmasters, who had only planned to create new or another Website. You can first create a website locally, configure it, choose and install a theme, tweak design, install the required plugins and so on. And then upload it to the hosting for free access.
Redesign and other repair work. Customers will see immediately the finished product, rather than the raw material, which will be in the intermediate stage. Some webmasters, at the time of large-scale works with the website, put to him by the so-called “plugins-stub”, thus losing traffic. Visitor instead of required information sees the page like “site under construction“. To avoid these things, we have the need to setup the website on localhost.
Localhost is a good decision to test plugins like reCaptcha, may be use face any kind of issue like wordpress errors due to non-authentic plugin, edit the template files or engine, test scripts, and so on. Why pay for a single domain, occupy space on hosting when you can just create a website on the local server.
-No Internet connection required. This quality will appeal to those who have limited Internet traffic or too slow.
-Much more then what I remembered, but you left in the comments.
Requirements for installing site on localhost
Some very good people, to facilitate our lives, created an installation package, such as XAMPP or Wamp. XAMPP includes Apache distribution containing MySQL, PHP and Perl. You have to do almost nothing, only click the mouse a few times. Why XAMPP? Because he’s got some very tangible benefits over their competitors:
-The most popular PHP Developer Suite;
– Easy installation and Setup;
– Completely free.
You can download the xampp with his page here.
After downloading, run the installation. During installation, do not change anything, each new window click “Next”.
also click next with no change
xampp installation in under process
Important: at the end of the installation, my Skype blocked the installation of a local server. If you are also worth this application, temporarily disable it.
At the fourth stage of the installation, if you do not clear the check box in a browser there opens a new window where you will be offered to download the XAMPP module that allows you to install on a local server running WordPress or any other CMS.
The seventh and final stage of the installation, leave the tick-mark at startup options in Control Panel and click on “Finish”. In consequence, this Panel can be opened by double-clicking the xampp-control.exe file that is located in (by default, C:\xampp).
In the result pane, click the queue on the “Start” button for Apache and MySql.
Now your local server runs and to see this, type http://localhost in your browser’s address bar. To open the page with the following content:
How to install wordpress on localhost xampp
As is known, none of the projects running on WordPress or another engine, without a database and without that the engine could not be born. This we are going to now.
Installing the database on a local server
Open the control panel local server (file xampp-control.exe) and click on Admin for MySQL.
Go to the Panel on the “databases” tab or on the link “Create database“.
In a new browser tab opens the Admin Panel phpMyAdmin.
To avoid confusion in the future, as the database name, enter the name of your site (domain). On the local server, you can create many sites and each of them will have its own database. Click on “create”. The database has been created, we have to install WP.
Installing of WordPress on localhost
Download the latest version of WordPress from the page wordpress.org. Archive unpack and copy the folder “wordpress” in the folder “htdocs” with xampp installed.
The folder “wordpress” rename and give it the name that you gave the database when it is created. In this renamed folder, locate the file wp-config-sample.php.
Open it with a text editor, you can use a simple Notepad, but better in Notepad ++. Edit three lines as shown in the figure below.
Save the file as the wp-the config.php, without extension ” sample “. Old wp-config-sample.php can be removed.
Now was the final touch. In the browser address bar, type http: // localhost / database name and press enter on the keyboard. The following page opens:
fill out all the information that we have provided while creating new database.
now you have fill out information for wordpress admin panel
After a few seconds, you will be notified about the successful completion of the operation.
Click on “button Login .” You’ll see what happens :-). I congratulate you! You’ve just created a local site on the local server!