মঙ্গলবার, ১৪ ডিসেম্বর, ২০১০

using xampp in linux


Xampp is The one of the best open source web programming environment . it is nice combination of 
  1. apache : server
  2. MySql : database
  3. php     : server side scripting alnguage   
    other supports like ftp ,mail.. also given by this package. using this package in windows is very easy but not secured.
in linux, it is little bit formal .but security like proffesional web server is maintained here. here I wil briefly go through the steps of installing and using xampp (in linux it is called lampp).
  • step1: download xampp package from apache friends website-
                     http://www.apachefriends.org/en/xampp-linux.html
  • step2:  the file will be downloaded in tar.gz format. install it (i assume the file is in your home directory) using command-
                     "sudo tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt"
  • step3: after instalation start the service usin command-
                     "sudo /opt/lampp/lampp start"
                     to see other command options write -
                     "sudo /opt/lampp/lampp"  
  • step4: now browse to http:/localhost and you will get xampp home page. but how can you put your websites folder into root (htdocs) directory ? two ways ftp and local access by copy.
  • step5: the easy way to copy the folder to /opt/lampp/htdocs directory but using copy paste you can not do it. you   should use cammand as root user. to copy folder mysite from home directory to htdocs write-
                    sudo cp -R mysite /opt/lampp/htdocs
          now you have to change the permission of the uploaded folder so that other user who will  access through browser
          can read write and execute it. command-
                    sudo chmod 707 -R mysite

          to put folder via ftp normal advanced ftp client will be needed. you must need to change permission of the uploaded           files and folder  to read write.

                                                                
                                                    I think you are done now.just go to the browser and browse your site and develop it.