Install and start XAMPP in Ubuntu

Source: Internet
Author: User

1. Download: first download xampp linux 1.7.3a through wget, address for http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/xampp-linux-1.7.3a.tar.gz

Remember to add sudo before using wget in Ubuntu

Sudo wegt http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/xampp-linux-1.7.3a.tar.gz



2. Installation: extract the downloaded file to the/opt directory:

Specifically: tar xvfz xampp-linux-1.7.3a.tar.gz-C/opt

Now, XAMPP is installed in the/opt/lampp directory.

3. start: To start XAMPP, run the following command:/opt/lampp start.

But in Ubuntu, this cannot be done.

First, you must convert sudo-s to root.

Second, go to the directory cd/opt/lampp and press Enter. /lampp start to start XAMPP. When the main step is started, the XAMPP cannot be started if one step is wrong. I also learned it after trying it.

The following information is displayed after startup:

Starting XAMPP 1.7.3a...

LAMPP: Starting Apache...

LAMPP: Starting MySQL...

LAMPP started.

It indicates that APache and mysql have been started.

4. Test: Enter http: // localhost in ur Address Bar

The Starting Screen of XAMPP contains some connections to check the system status and some simple sample programs.
Run the following command to uninstall XAMPP: sudo rm-rf/opt/lampp.

Uninstalled successfully. :) XAMPP command

Install XAMPP

Tar xvfz xampp-linux-1.6.4.tar.gz-C/opt

Start XAMPP

/Opt/lampp start

Stop XAMPP

/Opt/lampp stop



Restart XAMPP


/Opt/lampp restart

Security Settings

/Opt/lampp security

Use php4

/Opt/lampp php4

Use php5

/Opt/lampp php5

View php version

/Opt/lampp phpstatus

Start Apache only

/Opt/lampp startapache

Stop Apache

/Opt/lampp stopapache

Start SSL support for Apache

/Opt/lampp startssl

Disable SSL support for Apache

/Opt/lampp stopssl

Start MySQL databases only

/Opt/lampp startmysql

Stop a MySQL database

/Opt/lampp stopmysql

Start the ProFTPD Server

/Opt/lampp startftp

Stop a ProFTPD Server

/Opt/lampp stopftp

Automatically started with the System

Ln-s/opt/lampp/etc/rc. d/rc3.d/S99lampp

Ln-s/opt/lampp/etc/rc. d/rc4.d/S99lampp

Ln-s/opt/lampp/etc/rc. d/rc5.d/S99lampp

Cancel automatic running with the System

Ln-s/opt/lampp K01lampp

Uninstall XAMPP

Rm-rf/opt/lampp

Important XAMPP files and directories

XAMPP command library. For example, the/opt/lampp/bin/mysql executable MySQL Monitor

/Opt/lampp/bin/

Apache document root directory

/Opt/lampp/htdocs/

Apache configuration file

/Opt/lampp/etc/httpd. conf

MySQL preparation File

/Opt/lampp/etc/my. cnf

PHP preparation File

/Opt/lampp/etc/php. ini

ProFTPD preparation file. (Starting from version 0.9.5)

/Opt/lampp/etc/proftpd. conf

PhpMyAdmin preparation File

/Opt/lampp/phpmyadmin/config. inc. php

The installation of XAMPP in Ubuntu has been completed. I hope it will help you! Hope we can make common progress!

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.