Tuesday, December 6, 2011

How to Install and Configure XAMPP



What is XAMPP?

XAMPP is an open source or free cross-platform web server package, consist of the following:
  • Apache HTTP Server
  • MySQL database
  • Interpreters for scripts written in the PHP and Perl programming languages


Used to

To allow website designers and programmers to test their work on their own computers without any access to the Internet. XAMPP also provides support for creating and manipulating databases in MySQL using PhpMyAdmin, so it's officially designed for use only as a development tool.



Installation

Using installer version is the easiest way installing XAMPP.


I recommend to install at default settings but if you know what you're doing do so. Click finish.




Configuration

After the installation completed, you will find XAMPP shortcut on your desktop which runs the XAMPP Control Panel to start or stop all server (Apache, MySQL and FileZilla), also to install or uninstall services.


To test XAMPP go to these address http://localhost/ or http://127.0.0.1/ and select your prefer language if prompted. Under the Tools section browse to phpMyAdmin.



Security

By default phpMyAdmin has a username of  root  but no password, it's a good practice to always have your phpMyAdmin protected and secured. To enable MySQL security on XAMPP go to http://localhost/, and browse to Security.


Under the Security page, go to http://127.0.0.1/security/xamppsecurity.php to access Security console MySQL and XAMPP directory protection.


There you go, MySQL databases on PhpMyAdmin are now secured which you can access here, then log in using username as  root (default) and your password.



Where should I put my PHP for testing?

You can save PHP files to this directory "C:\xampp\htdocs\" if you install XAMPP by default or you can locate it by using XAMPP Control Panel Application. Click Explore button and look for htdocs folder.




No comments:

Post a Comment