An offline model of WordPress is one where WordPress is established locally for your computer. To do that, you want to connect your computer to a neighborhood server. Once completed, you can install WordPress on your private home laptop. Before I get into how to do that, I need to briefly discuss the three advantages of installing WordPress domestically on your computer.
The first and most significant benefit is that you are not working on a stay website. This way, you could set up plugins, personalize your topics, and honestly do something else on your web page, confident that it will not affect your stay internet site if it goes wrong. The 2d benefit is that it speeds up the development of your website. Painting on the neighborhood server is constantly quicker than on your internet host’s servers. This is because you may enjoy a piece of latency when you work without delay 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 them out for your neighborhood setup 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, two free programs will install and manage all this for us. For Windows computers, there is XAMPP, and for Mac, there is MAMP. Although XAMPP can work on a Mac, MAMP is more stable. I use XAMPP on a Windows 7 computer, whicht is the program I will use for this tutorial. Five steps need to be taken to install WordPress on your computer.
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 ” localhost/PHPMyAdmin/” (without the quotes) in the address bar.
- 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 Username and password somewhere because we’ll use them later.
- In “Global Privileges,” click on “Check All” and then click the” Go ” button at 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 */
define(‘DB_NAME’, ‘wordpress_db’);
/** MySQL database username */
define(‘DB_USER’, ‘wordpress_user’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘typeyourpasswordhere’);
Once the editing is finished, save the file as wp-config.php in the same folder.