An offline model of WordPress is one where WordPress is established locally for your pc. In order to do that you want to show your computer into a neighborhood server. Once that is completed you can then install WordPress on your private home laptop. Before I get into a way to do that I need to in brief undergo the 3 major advantages for putting in WordPress domestically on your computer.
The first and biggest benefit is that you are not working on a stay website. This way you could set up plugins, personalize your topics and do honestly something else in your web page confident in the expertise that if it goes wrong there is no effect on your stay internet site.
The 2d benefit is it speeds up your internet site development. It is constantly quicker to paintings on the neighborhood server than in your internet host’s servers. This is because you may enjoy a piece of latency when you work without delay together with your web host’s servers.
Finally, the 1/3 gain is that you can take your WordPress backups and see if they may be running by trying out them out for your neighborhood set up of WordPress.
To turn your computer into a local server requires Apache, MySQL, and PHP. Installing these server programs separately can be tricky but fortunately for us, there are two free programs that will install and manage all this for us. For Windows computers there is XAMPP and for the Mac there is MAMP. Although XAMPP can work on a Mac MAMP is more stable on it.
I use XAMPP on a Windows 7 computer so that is the program I will use for this tutorial.
In order to install WordPress on your computer five steps need to be taken.
1. Install a local server:
- Download the latest version of XAMPP from apachefriends.org/en/xampp.html
- During the installation tick the box to create an XAMPP desktop icon and don’t change the default installation folder which will be the root of your hard drive (C:\xampp).
2. Create a new database and User:
To create a new database complete the following steps:
- Open up the XAMPP Control Panel through the XAMPP desktop shortcut.
- Start the Apache and MySQL services.
- Open your browser and type in the address bar ” localhost/phpmyadmin/” (without the quotes).
- In phpMyAdmin type in a database name and click the “Create” button.
- Write the database name somewhere because we’ll be using it later on.
You now need to create a User for the database by doing the following:
- While still in phpMyAdmin click on the “Privileges” tab then click on “Add a new User”.
- Enter information in the “User name “and “Password” fields. For Host select “Local”.
- Write the User name and password somewhere because we’ll be using them later on.
- In “Global Privileges” click on “Check All” then click the” Go ” button on the bottom.
- In “Database-specific privileges”, in the “Add privileges on the following database” field, select the database name you created previously.
3. Download WordPress:
- Download the latest version of WordPress from wordpress.org/download/
- Extract the WordPress zip file you downloaded to C:\xampp\htdocs
4. Configure WordPress with your MySQL database information:
Go to C:\xampp\htdocs\wordpress
Open up wp-config-sample.php with a text editor and edit the following area with the database details from step 2:
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
Once the editing is finished save the file as wp-config.php in the same folder.