Download XAMPP Linux 1.7.7
- Go to a Linux shell and login as the system administrator root:su
- Extract the downloaded archive file to /opt:
tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
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 xamppThat is it . Your XAMPP is on the opt directory. You can now start XAMPP with this command:
sudo /opt/lampp/lampp startThen 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_htmlLink now this folder to your root web directory with this command:
sudo ln -s ~/public_html /opt/lampp/htdocs/$USERYou 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 stopTo restart XAMPP:
sudo /opt/lampp/lampp restartMySQL administrator username is root without password.
ProFTPD uses lampp as password and nobody as user.
To start Apache:
sudo /opt/lampp/lampp startapacheTo 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