How to install xampp in ubuntu

Source: Internet
Author: User

This article will introduce how to install xampp in ubuntu, including the configuration methods of php, apache, mysql, and phpmyadmin, if you need to learn how to install xampp on ubuntu, refer.

First, download the latest XAMPP version from www.xampp.org. Then, the Installation File Server knows/opt and decompress it. If your computer does not have the/opt directory, run the mkdir/opt command as a super user to create the directory. If the computer does not have the sudo command, use the su command and enter the Super User Password to switch to the Super User. Run the following command to copy the file to/opt:
$ Sudo cp xampp-linux-x.x.tar.gz/opt
Run the following command to enter the opt/directory and decompress the file:
$ Cd/opt
$ Sudo tarzxvf xampp-linux-x.x-x.tar.gz-C/opt
$ Sudo/opt/lampp start
Start the service and test http: // localhost in the browser

Run the following command to uninstall XAMPP: sudo rm-rf/opt/lampp.

Uninstalled successfully. :)

XAMPP command

Install XAMPP

The Code is as follows: Copy code

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

Start XAMPP

The Code is as follows: Copy code

/Opt/lampp start

Stop XAMPP

The Code is as follows: Copy code

/Opt/lampp stop

Restart XAMPP

The Code is as follows: Copy code

/Opt/lampp restart

Security Settings

The Code is as follows: Copy code
/Opt/lampp security

Use php4

The Code is as follows: Copy code

/Opt/lampp php4

Use php5

The Code is as follows: Copy code

/Opt/lampp php5

View php version

The Code is as follows: Copy code

/Opt/lampp phpstatus

Start Apache only

The Code is as follows: Copy code

/Opt/lampp startapache

Stop Apache

The Code is as follows: Copy code

/Opt/lampp stopapache

Start SSL support for Apache

The Code is as follows: Copy code

/Opt/lampp startssl

Disable SSL support for Apache

The Code is as follows: Copy code

/Opt/lampp stopssl

Start MySQL databases only

The Code is as follows: Copy code

/Opt/lampp startmysql

Stop a MySQL database

The Code is as follows: Copy code

/Opt/lampp stopmysql

Start ProFTPD

The Code is as follows: Copy code

/Opt/lampp startftp

Stop a ProFTPD Server

The Code is as follows: Copy code

/Opt/lampp stopftp

Automatically started with the System

The Code is as follows: Copy code

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

The Code is as follows: Copy code

Ln-s/opt/lampp K01lampp

Uninstall XAMPP

The Code is as follows: Copy code

Rm-rf/opt/lampp

Important XAMPP files and directories

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

The Code is as follows: Copy code

/Opt/lampp/bin/

Apache document root directory

The Code is as follows: Copy code

/Opt/lampp/htdocs/

Apache configuration file

The Code is as follows: Copy code

/Opt/lampp/etc/httpd. conf

MySQL preparation File

The Code is as follows: Copy code
/Opt/lampp/etc/my. cnf

PHP preparation File

The Code is as follows: Copy code

/Opt/lampp/etc/php. ini

ProFTPD preparation file. (Starting from version 0.9.5)

The Code is as follows: Copy code

/Opt/lampp/etc/proftpd. conf

PhpMyAdmin preparation File

The Code is as follows: Copy code

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

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.