Install Xampp on Ubuntu
How to easily install Xampp on Ubuntu
Remember Xampp is a Lamp (Linux, Apache, MySQL, PHP) environement ideal for developement, not suitable for production sites for security reasons. But it comes really handy to start developping right from start.
This install Xampp on Ubuntu comes with all the packages you need
1. DOWNLOAD
First go to the oficial donwload page:
http://www.apachefriends.org/en/xampp-linux.html
I've downloaded the latest version Xampp Linux 1.7.7:
http://www.apachefriends.org/download.php?xampp-linux-1.7.7.tar.gz
This file is downloaded in my Desktop folder, do not extract the file, leave just the way it is.
2. INSTALL
Now you need to log in as the system administrator root, open the console and type:
cd Desktop
sudo -s
Extract the downloaded file to /opt
tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
That's it, XAMPP is now installed in the /opt/lampp directory.
3 .Solve the httdocs permission problem
When you try to copy and paste your files to the httdocs directory you get a permission error, sol ve it with:
sudo chmod 777 -R /opt/lampp/htdocs/
4. Lunch Xampp
Now launch xampp with:
/opt/lampp/lampp start
check that everything works, open your browser and type:
http://localhost
Ah, it works!
5. Add your web sites to Xampp
Now to add your web sites go to :
mkdir /opt/lampp/htdocs/my-web-site-1
mkdir /opt/lampp/htdocs/my-web-site-2
mkdir /opt/lampp/htdocs/my-web-site-3
Before copying your files, run again:
sudo chmod 777 -R /opt/lampp/htdocs/
Now you can copy your own files there, then you can navigate to them by typing in your browser:
http://localhost/my-web-site-1
...
etc
To see database browse to:
http://localhost/phpmyadmin
To stop Xampp:
/opt/lampp/lampp stop
If you want to uninstall Xampp on Ubuntu
To uninstall XAMPP just type in this command:
rm -rf /opt/lampp
do you?
Remember Xampp is a Lamp (Linux, Apache, MySQL, PHP) environement ideal for developement, not suitable for production sites for security reasons. But it comes really handy to start developping right from start.
This install Xampp on Ubuntu comes with all the packages you need
1. DOWNLOAD
First go to the oficial donwload page:
http://www.apachefriends.org/en/xampp-linux.html
I've downloaded the latest version Xampp Linux 1.7.7:
http://www.apachefriends.org/download.php?xampp-linux-1.7.7.tar.gz
This file is downloaded in my Desktop folder, do not extract the file, leave just the way it is.
2. INSTALL
Now you need to log in as the system administrator root, open the console and type:
cd Desktop
sudo -s
Extract the downloaded file to /opt
tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
That's it, XAMPP is now installed in the /opt/lampp directory.
3 .Solve the httdocs permission problem
When you try to copy and paste your files to the httdocs directory you get a permission error, sol ve it with:
sudo chmod 777 -R /opt/lampp/htdocs/
4. Lunch Xampp
Now launch xampp with:
/opt/lampp/lampp start
check that everything works, open your browser and type:
http://localhost
Ah, it works!
5. Add your web sites to Xampp
Now to add your web sites go to :
mkdir /opt/lampp/htdocs/my-web-site-1
mkdir /opt/lampp/htdocs/my-web-site-2
mkdir /opt/lampp/htdocs/my-web-site-3
Before copying your files, run again:
sudo chmod 777 -R /opt/lampp/htdocs/
Now you can copy your own files there, then you can navigate to them by typing in your browser:
http://localhost/my-web-site-1
...
etc
To see database browse to:
http://localhost/phpmyadmin
To stop Xampp:
/opt/lampp/lampp stop
If you want to uninstall Xampp on Ubuntu
To uninstall XAMPP just type in this command:
rm -rf /opt/lampp
do you?
Comments
Post a Comment
Your opinion is very appreciated, thank you!