Installing your website on your local computer using xampp
Using xampp on your computer allows you to work on your website offline before publishing it to the web. It is also a good way to keep a backup copy in the event something happens to your live site and you need to quickly reinstall it.
Step 1 – Setting up a database in xampp
First ensure that both the Apache server and MySQL are running. The names will be highlighted in green and under actions the button will change to stop. If the buttons say Start and Apache & MySQL are not highlighted then they are not running. Click the Start button to start them. Once they are running you can minimize this screen.
Next open xampp in your web browser and select phpMyAdmin
Type this into your web browser:
On the left side navigation, select “New” to add a new database. This will take you to the next screen.
Now you need to create a database name. This can be anything you want to call it and easy for you to remember, use only lowercase letters and numbers and no spaces.
Example: If you are installing a website called Facebook Marketing, you can name your database ‘fbmarketing’ or ‘facebookmarketing’ or ‘fbm1234’
Leave the Collation as is, no need to make any changes there.
Once you enter your database name, click ‘Create’
Now you are finished with the database setup
Step 2 – Creating a website file folder in xampp/htdocs/
Navigate to “C:/xampp/htdocs” in your computer programs
Inside the htdocs folder, create a new folder and name it whatever you want that will be easy for you to remember. You can name it the same as your database to make it easier to remember.
I called mine “webhosts” to match the website and database
Next copy the backup.zip and importbuddy.php files you received in your website file package into this new folder.
Now you are ready to start running the install script
Step 3 – Running the importbuddy script
First – In a new tab on your web browser, type: localhost/your_htdocs_filefolder_name_here/importbuddy,php
Then hit the enter button on your keyboard
Next you will be prompted to enter a password to authenticate the importbuddy script. You will find this password in the text document named “Log In details” that came with your website file package.
Enter the password and select “Authenticate”
On the next screen you don’t need to make any changes, just select “Next Step” to start extracting the files from the backup.zip.
It may take a few minutes to unzip the backup files.
When the files have been successfully extracted, you will see the confirmation as shown below. Once you see this, select “Next Step”
On the next screen, all you have to do is enter your database name and user name. The database name is what you set up in the first step. The user by default in xampp is ‘root’ so enter that in the database user box.
Note: If you created a password when you installed and configured xampp then use that in the password box. If you didn’t create a password, then leave it blank.
The rest of the boxes will be auto-populated when the screen opens and no need to make any changes to them.
If your database tests are good, you will see “…Success” next to each of them. If they all read …success, then select “Next Step”
Note: If you have any that fail, double check your spelling on your database and retest.
Now your website has been installed, click on the link for your site. It should open in a new window or tab, once it opens leave it open and come back to the screen below.
Select “Cleanup and Remove temporary files”
Congratulations! You have installed your website on your local computer using xampp.
Last Step – To get to the admin area of your website.
Go to the tab where you opened your website. In the address bar, add “wp-admin” to the end of the URL and hit the enter key on your keyboard.
You will be prompted to add user name and password. You can find these in the text file “Log In Details” that came with your website file package. enter them and hit enter on your keyboard and the admin area of your website should open.
5,258 total views, 3 views today