Install XAMPP in Ubuntu

Source: Internet
Author: User

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/OPT

If you want normal users to write the htdocs directory, clear the permission to modify the directory.

$ Sudo chmod-r a + RW/opt/lampp/htdocs

XAMPP: couldn't start MySQL! Solution (MySQL service cannot be started)

$ Sudo chmod 777-r/opt/lampp/var

How to control user connection failures defined in the configuration file

1. Find config in the root directory where phpMyAdmin is installed. inc. PHP configuration file (or config. sample. inc. PHP, first rename it as config. inc. PHP) and open it with notepad.

2. In the Open configuration file, find $ cfg ['servers'] [$ I] ['controlpass'] = '*******'; * is your password. It is blank by default. Change it to the password you modified on phpMyAdmin.

3. If your user name has been modified, find $ cfg ['servers'] [$ I] ['controluser'] = 'root, here, "root" is your user name, and it is changed to your modified user name.

Existing configuration file (./config. Inc. php) is not readable.

$ Sudo chmod 644 config. Inc. php

Start or stop XAMPP:
$ Sudo/opt/lampp start & stop

TIPS:
XAMPP graphic panel in Linux

$ CD/opt/lampp/share/XAMPP-control-panel
$ Sudo./XAMPP-control-panel

You can also run the following command to create a menu:

Choose system> preferences> Main Menu> programming> new project"

Name: lampp command: gksu/opt/lampp/share/XAMPP-control-panel

Note: gksu is run as root and prompts you to enter the password.

Run the following command to uninstall XAMPP:Sudo Rm-RF/opt/lampp
Uninstalled successfully. :)

For convenience, EDIT: System-preferences-Main Menu-program, click New Project, enter the name lampp, and enter the command: save sudo/opt/lampp/share/XAMPP-control-panel.

 

The management interface of lampp can be started directly from the program next time.


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

 

By Leon. Wood.

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.