Install XAMPP in Ubuntu

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.

Thanks http://computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-install-xampp-1-8-2-in-ubuntu.html

======================== SHORT CUT TO XAMPP CONTROLLER=========
sudo '/opt/lampp/manager-linux.run'


=====================MySQL command line 

cd /opt/lampp/bin/
./mysql
=======================================


FIXING htdocs Permissions
To know currently logged in username run following command
who am i
 
xampp fix permission who am iTo change ownership of htdocs folder run following command. [Replace username with your own username]
sudo chown -R username:username /opt/lampp/htdocs
xampp fix permission chown commandWe also need to update httpd.conf file. Run following command to open apache configuration file
sudo gedit /opt/lampp/etc/httpd.conf
 
xampp fix permission geditfind following lines
User nobody
Group nogroup
Replace nobody with your user name and save the file
xampp fix permission username in file
Logout from user and login back.
Now you can create, delete, and manage files / folder in htdocs folder. To test it
open htdocs folder
xampp fix permission htdocs folder
create a test.php file
xampp fix permission text file
open test.php and write a simple php code for testing. Save the file
xampp fix permission text file with php
access file from browser
xampp fix permission test file in browser


Post a Comment

Thank You

Previous Post Next Post