Pages

28/11/13

Hướng dẫn cài đặt Xampp trên Ubuntu 12.04

Xampp allows you to run local server. It is a easy method to install Apache web server add MYSQL, php, and perl. Xampp have all stuff in one package.
Go on XAMPP site and download XAMPP. URL to download XAMPP is
http://www.apachefriends.org/en/xampp-linux.html 





xampp download url

Let the download complete. Confirm download by opening download folder.

xampp open containing folder
Open terminal and move to download folder. Verify that downloaded Xampp installer file exist there. If you have moved Xampp file in other folder than move that folder which contain Xampp file.

cd /home/[Username]/Downloads
ls
xampp cd download folder

Make installer file to executable. Run following command
chmod +x xampp-linux-1.8.2-0-installer.run
 
xampp chmod command

Installation requires root privilege. Switch to root user. You need to supply super user password to become root user. Super user is the user account which is created during the installation.
sudo -s -H
 
xampp become root
Run installer file
./xampp-linux-1.8.2-0-installer.run
 
xampp run installer

XAMPP 1.8.2 version added nice graphic setup wizard. Click on next

xampp setup welcome

Keep default selected component and click on next

xampp select component

Installation directory is opt click on next


xampp installation direcotry

By default BitNami for Xampp is selected. Remove the check mark and click on next

xampp bitnami for xampp
Wait for few minutes.

xampp installing

Click on finish to complete the installation.

xampp finish

Wizard will redirect you to XAMPP default screen.

xampp browser english
XAMPP is successfully installed. But mysql server would not start automatically. You would get following error while accessing phpmyadmin

xampp phpmyadmin error
Restart the Xampp to start all the services
sudo /opt/lampp/lampp restart
Now access again phpmyadmin

xampp phpmyadmin

We have successfully installed XAMPP 1.8.2 in Ubuntu. In our next article we would see how to start automatically xampp on start up.
<source: computernetworkingnotes>

0 comments:

Đăng nhận xét