Kamis, 27 September 2012

XAMPP 1.7.7 Installation on Ubuntu 12.04


Installting XAMPP is just a breeze. Download the latest stable file extract it to opt and start it.
Download XAMPP Linux 1.7.7
  1. Go to a Linux shell and login as the system administrator root:su
  2. Extract the downloaded archive file to /opt:
    tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
Warning:Please use only this command to install XAMPP. DON’T use any Microsoft Windows tools to extract the archive, it won’t work.

Install XAMPP Using PPA


Open the terminal and run these commands to install XAMPP 1.7.7 in Ubuntu 12.04/11.10:
sudo add-apt-repository ppa:upubuntu-com/web
sudo apt-get update
sudo apt-get install xampp
That is it . Your XAMPP is on the opt directory. You can now start XAMPP with this command:
sudo /opt/lampp/lampp start
Then start your web browser and go to localhost
http://localhost
If your XAMPP is working successfully then you will see this page:


The root directory of PHP projects is
/opt/lampp/htdocs/

If you want to store your files in the home directory, you can simply create a directory called  public_html with this command:
mkdir ~/public_html
Link now this folder to your root web directory with this command:
sudo ln -s ~/public_html /opt/lampp/htdocs/$USER
You can now move your  files and projects in the public_html folder located in the home directory. Then access them at this address:
http://localhost/username/
NOTE: Replace “username” with your own user name.

Commands for XAMPP

To stop XAMPP, use this command:
sudo /opt/lampp/lampp stop
To restart XAMPP:
sudo /opt/lampp/lampp restart
MySQL administrator username is root without password.
ProFTPD uses lampp as password and nobody as user.
To start Apache:
sudo /opt/lampp/lampp startapache
To stop Apache:
sudo /opt/lampp/lampp stopapache
- To start MySQL:
sudo /opt/lampp/lampp startmysql
- To stop MySQL:
 sudo /opt/lampp/lampp stopmysql

0 komentar:

Posting Komentar