Install XAMPP,XAMPP directory structure under Linux

Source: Internet
Author: User
Tags phpmyadmin

XAMPP directory Structure

Important Files and directories

File/directory Usage

/opt/lampp/bin/ XAMPP Command Library. For example,/opt/lampp/bin/mysql executable MySQL monitor.
/opt/lampp/htdocs/ The Apache document root directory.
/opt/lampp/etc/httpd.conf Apache configuration files.
/opt/lampp/etc/my.cnf MySQL configuration file.
/opt/lampp/etc/php.ini PHP configuration files.
/opt/lampp/etc/proftpd.conf ProFTPD the configuration file. (starting from version 0.9.5)
/opt/lampp/phpmyadmin/config.inc.php

PhpMyAdmin the configuration file.

----------------------------------------------------------------------Linux under XAMPP environment installation

Official Tutorial: https://www.apachefriends.org/faq_linux.html

Installing XAMPP

Choose your flavor for your Linux OS, the 32-bit or 64-bit version.

The permissions to the installer

chmod 755 Xampp-linux-*-installer.run

Run the Installer

sudo./xampp-linux-*-installer.run

That's all. XAMPP is now installed below THE/OPT/LAMPP directory.

Start Xampp:

To start XAMPP simply call the This command:

Sudo/opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.8.2 ...
Lampp:starting Apache ...
Lampp:starting MySQL ...
Lampp started.

Ready. Apache and MySQL are running.

If you get any error messages visit our Community pages to help.

Also, note that there is a graphical tool, the can use to manage your servers easily. You can start this tool with the following commands:

Cd/opt/lampp
sudo./manager-linux.run (or Manager-linux-x64.run)

Stop XAMPP:

To stop XAMPP simply call the This command:

Sudo/opt/lampp/lampp stop

You should now see something like this on your screen:

Stopping XAMPP 1.8.2 ...
Lampp:stopping Apache ...
Lampp:stopping MySQL ...
Lampp stopped.

If you get any error messages visit our Community pages to help.

Also, note that there is a graphical tool, the can use to start/stop your servers easily. You can start this tool with the following commands:

Cd/opt/lampp
sudo./manager-linux.run (or Manager-linux-x64.run)

------------------------------------------------------------

First, please download the latest version of XAMPP from www.xampp.org. Then, install the file service to know/opt and unzip. If your computer does not have a/opt directory, use the Superuser identity to execute the mkdir/opt command to create the directory. If the computer does not have the sudo command, use the SU command and enter the superuser password to switch to the super user.

Use the following command to copy the file to/OPT:

$sudo CP xampp-linux-x.x.tar.gz/opt

Use the command to enter the opt/directory and unzip the file:

$ cd/opt

$ sudo tar zxvf xampp-linux-x.x-x.tar.gz/opt

To uninstall XAMPP, simply enter the following command: sudo rm-rf/opt/lampp

Uninstall complete.

If you want ordinary users can write Htdocs directory, clear Modify directory permissions.

$ sudo chmod-r a+rw/opt/lampp/htdocs

To start or stop XAMPP:

$ sudo/opt/lampp/lampp Start & Stop

Tips:

XAMPP graphical panel under Linux

$ cd/opt/lampp/share/xampp-control-panel

$ sudo./xampp-control-panel

XAMPP command

Installing XAMPP

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

Start XAMPP

/opt/lampp/lampp start

Stop XAMPP

/opt/lampp/lampp stop

Restart XAMPP

/OPT/LAMPP/LAMPP restart

Security settings

/OPT/LAMPP/LAMPP Security

Using PHP4

/opt/lampp/lampp PHP4

Using PHP5

/opt/lampp/lampp PHP5

View PHP Version

/opt/lampp/lampp Phpstatus

Start Apache only

/opt/lampp/lampp Startapache

Stop Apache

/opt/lampp/lampp Stopapache

To launch SSL support for Apache

/opt/lampp/lampp Startssl

Stop the Apache SSL support

/opt/lampp/lampp Stopssl

Start MySQL database only

/opt/lampp/lampp Startmysql

Stop MySQL Database

/opt/lampp/lampp Stopmysql

Start the ProFTPD service

Manager

/opt/lampp/lampp startftp

Stop ProFTPD Server

/opt/lampp/lampp stopftp

Auto-start with system

Ln-s/OPT/LAMPP/LAMPP/ETC/RC.D/RC3.D/S99LAMPP

Ln-s/OPT/LAMPP/LAMPP/ETC/RC.D/RC4.D/S99LAMPP

Ln-s/OPT/LAMPP/LAMPP/ETC/RC.D/RC5.D/S99LAMPP

Cancel auto-run with system

Ln-s/opt/lampp/lampp K01lampp

Uninstalling XAMPP

Rm-rf/opt/lampp

XAMPP Important Files and directories

XAMPP Command Library. Example/opt/lampp/bin/mysql executable MySQL monitor

/opt/lampp/bin/

Apache Document root directory

/opt/lampp/htdocs/

Apache Compounding File

/opt/lampp/etc/httpd.conf

MySQL configuration file

/opt/lampp/etc/my.cnf

PHP Configuration Files

/opt/lampp/etc/php.ini

ProFTPD the configuration file. (starting from version 0.9.5)

/opt/lampp/etc/proftpd.conf

PhpMyAdmin Compounding File

/opt/lampp/phpmyadmin/config.inc.php

Install XAMPP,XAMPP directory structure under Linux

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.