
Peace be upon you:
hi there, so in last few days it was required from me a PHP project , so a problem faced me that the PHP is a server side languge , so i need a server to run my project it will along story to creat a web server to run a project , so my friend khaled hady offered a good solution to use XAMPP and he explained it in his blog http://war2aw2lm.blogspot.com/2009/06/3-in-1-xampp-php-mysql-apache.html but he explianed it in windows but i using ubuntu so i decided to begin the journey to install the XAMPP in ubuntu later i discover it is easy
Note: This guide is aimed at a development environment only and should not be used as a public web server (we can explain it in another article)
Steps:
- Download version of XAMPP from
http://prdownloads.sourceforge.net/x…ar.gz?download
(Source URL: http://www.apachefriends.org/en/xampp-linux.html#374) - Extract the archive to /opt (make sure you are in the directory that you downloaded the archive to)
Code:
sudo tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt
To start it up, open a terminal and type this:
sudo /opt/lampp/lampp start
To stop it, open a terminal and type this:
sudo /opt/lampp/lampp stop
sudo /opt/lampp/lampp

Run in a terminal:
gedit ~/.local/share/applications/xampp-control-panel.desktop
[Desktop Entry] Comment=Start/Stop XAMPP Name=XAMPP Control Panel Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py" Icon[en_CA]=/usr/share/icons/Tango/scalable/devices/network-wired.svg Encoding=UTF-8 Terminal=false Name[en_CA]=XAMPP Control Panel Comment[en_CA]=Start/Stop XAMPP Type=Application Icon=/usr/share/icons/Tango/scalable/devices/network-wired.svg
XAMPP by default uses /opt/lampp/htdocs as the root web directory. The easiest way to start working on files is to link a folder in your home directory(like an IDE work space) into this directory.
sudo ln -s ~/NetBeansProjects/moodle /opt/lampp/htdocs/$USER
- you can deal with mySQL directly just tube in your browser http://localhost/phpmyadmin/
- you can deal with PHP by using the additional commands you will find to install PHP4 & PHP5
sudo /opt/lampp/lampp start


