How to Install XAMPP for Linux in Ubuntu 14.04 LTS

1.Download here .

2.After download change the permission :

cd ~/Downloads
sudo su
sudo chmod 777 -R xampp-linux-x64-1.8.3-4-installer.run
./xampp-linux-x64-1.8.3-4-installer.run

The window installation wizard will appear:
How to Install XAMPP for Linux in Ubuntu 14.04 LTS or Linux MInt 17

And then click next and wait until finish
exit
exit
3. Now need to change the permission for htdocs :
cd /opt/lampp
sudo chmod 777 htdocs

create one demo.php file and write code :

<?php
echo “Hello World !”;
?>

4. To start the XAMPP service :

sudo su
/opt/lampp/lampp start
exit
exit
5. To stop the XAMPP service:
sudo su
/opt/lampp/lampp stop
exit
exit
6. To open the page of XAMPP, whenever you want, type in the address bar of your browser:
http://localhost/xampp/
7. To run the php file:
http://localhost/xampp/demo.php

Enjoy !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s