As i just started my journey with linux environment, few of my friends suggested me to go for Ubuntu distribution, Once after successfully installing OS into my system, as a PHP developer i need APACHE + MYSQL + PHP , as i am a Big fan for APACHE FRIENDS
I downloaded the XAMPP for linux to my Desktop.
after downloading i was not sure how i can install it.
I googled it for some time and i found out How i can install XAMPP for Linux .
Here is the Command
, i know XAMPP is also available for Linux which is called LAMPP.
sudo tar xvfz /home/[user]/Desktop/xampp-linux-1.7.tar.gz -C /opt
- sudo is the ‘Super User’ which in Windows means the Administrator
- tar is the program we are going to use
- xvfz are the options we give to the program
- /home/[user]/Desktop/xampp-linux-1.7.tar.gz is the location of the file we are installing
- /opt will be the new location
Now, just press ‘Enter’ and you’re on your way to installing lampp.
After Completing the installing, we have to start the lampp server for this
sudo /opt/lampp/lampp start
Thats it.We have successfully installing APACHE + MYSQL + PHP environment on the system.
After installing LAMPP One common problem what you will face is write permission problem
sample is :
Could not save the file /opt/lampp/htdocs/xampp/xxx.php.
For the above problem here is the solution
Run Sudo chmod command for /opt/lampp/htdocs/
sudo chmod 777 /opt/lampp/htdocs
you are done with the most of the setting for your First Project .
All the Best ![]()
