Sunday, 26 May 2013

Using Xampp to install apache to use PHP , MySql


Xampp - 
                   cross platfrom software bundle to  install Apache webserver, MySql database management system and PHP server side scripting language.

 Xampp is a open software platform to install apache, tomcat, mysql

If you are using any Linux distributions follow this post to install apache for php and mysql with or with out Lampp

1. Download xampp from here.

2. Install xampp by double clicking and remember where you are installing it

               (I have installed it in c:\xampp)

3. Goto-> start and type xampp control panel or find Apache Friends in Start->Programs and select    
    xampp control panel

4. Good! you are almost done, xampp has every thing you need, you just need to pick up what you   
    want!
Apache webserver, installing Apache in windows, installing mysql in windows, installing php in windows, Lampp, MYSQL, PHP, server side scripting, tomcat, Xampp, Xampp in windows,


    The right mark under Services indicates the following service is been installed .

  •     In my above xampp, Apache and MySQL are installed and running on port numbers 80,443 and 3306  (It may vary in your system)
  • The Tomcat have been installed but its not running (As It is not required right now!)
  • The FileZilla has not been installed (It is not required at all :P)
  • The Mercury we need additional things to be done to run it
  • Click the “X” mark under services to install and “right mark” to uninstall any service
  • To start/stop any service click the button which is under Action.

     1. To test php just type 127.0.0.1 or http://localhost in your browser and you will see index of php    
         files or success message from Apache. That’s all, your done with apache. 
     
     2. To see complete information about php, try this:-
                                       In xampp control panel click admin button of Apache module under actions

          That’s the phpadmin page where you can see complete information about php
      3. Now, the question is where to save php files ?

          Wait! Go to your installed xampp directory ex: C:\xampp\htdocs
          Save all your php files here

      4. Then open browser and type 127.0.0.1/yourfilename.php or http://localhost/yourfilename.php
      5. Now the other question is How to open mysql ?

          Well every question have an answer, do this :

  •           Open command prompt
  •           Change directory to your xampp->mysql->bin installed directory
                                              cd  C:\xampp\mysql\bin
  •          Now type
                                             mysql –u root –p (if you changed password then it asks for passwords! )

                  Then you will get your MySql prompt like this,
 
                                             Mysql>

Although i have mentioned about Tomcat, for understanding and using tomcat

                refer this post Using Xampp to install apache-tomcat
                        to use JSP, Windows users and linux users refer this post


Leave your doubts or suggestions in comments section..

No comments:

Post a Comment