XAMPP on linux ( ubuntu )

while shifting myself from windows to linux (ubuntu) i found this topic a bit confusing (time taking), lots of old websites still mentioned installing lots of packages to get it done but below are my notes for myself future reference.

installing xamp
  • http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=60248
  • Go to a Linux shell and login as root:
  • $su -
  • Extract the downloaded archive file to /opt
  • #tar xvfz xampp-linux-1.5.5a.tar.gz -C /opt
  • XAMPP is now installed below the /opt/lampp directory.
setting it up (www folder) >> because defult location won't allow to place files without root

  • open /opt/lampp/etc/htppd.conf
  • update line below as per your requirement
  • DocumentRoot "/home/lala/www"
  • create "www" folder if it won't exists there... (offcourse)
  • save and quit
setting default xampp / phpmyadmin so can be access easily, via (http://localhsot)
  • move contents from "/opt/lampp/htdocs" to above folder you just created "www"
TIP: for this you might need to open nautilus as root and you can do this by typing "gksuo nautilus"
hopefully it will work ;)