Test Your Website Offline |
|
|
It is often troublesome to test an onine website as we have to upload and re-test it everytime ! This guide shows us how to test your website offline..
What is the benefit of this ?
It is always faster to load a website form your own computer than to load it from a server somewhere else. It is also troublesome to upload, test and re-upload to make changes and then test again. So, by testing your website offline, you can save up to hours depending on your project.
Offline server
First thing first. MalaysianHosts.com shows you how to create an offline server !
There are many server softwares out there, but the one we will use in this guide is a simple server program called XAMPP that lets us host our own website supporting the following server-side applications:
- Apache HTTPD 2.2.8 + Openssl 0.9.8g
- MySQL 5.0.51a
- PHP 5.2.5
- PHP 4.4.8
- phpMyAdmin 2.11.4
- FileZilla FTP Server 0.9.25
- Mercury Mail Transport System 4.52
You can download it here: XAMPP
Putting our website into place
Go to where you installed XAMPP. Open the XAMPP main folder and look for a folder called 'htdocs'. That is where you place your website files like you do with a real website. For example, files that end with .html , .php , .js , and so on.
Fire up XAMPP !
Open XAMPP. Then start the 'Apache' and 'MySQL' applications of the program. That is usually what you need to let your computer act as a website server to read normal website files and run MySQL databases. Dont worry about the MySQL database parts if you dont understand it.
After starting the server applications, you may now view your website at http://localhost/ . That is the standard offline testing address. If you run into any problems, please go to their website: XAMPP
Now to test your website !
It is really simple. All you have to do is edit your website files. After you think you made the right changes, test it by going to http://localhost/ again. Repeat this process.
Copyright: You may modify and/or republish this article on your website as
long as you link back to www.malaysianhosts.com
|
Comments
about this subject, and you can also tell that by the huge number of
comments!
RSS feed for comments to this post.