Turn: Linux under XAMPP installation and configuration

Source: Internet
Author: User
Tags phpmyadmin startssl

--When reproduced please keep the following, for everyone to add my MSN, enhance communication, learn together.
--Kang Tinghua msn: [email protected]
--Blog: http://blog.csdn.net/jaimejth

Software downloads on the following website

Http://www.apachefriends.org/zh_cn/index.html

XAMPP is a version of Apache that is easy to install and contains MySQL, PHP, and Perl. XAMPP is really easy to install and use: Just download, unzip, start. The software was formerly known as LAMPP.

The idea behind XAMPP is to provide a set of easy-to-install distributions for developers who want to enter the world of Apache. For the convenience of developers, XAMPP is configured by default to turn all features on.

From a security standpoint, the default configuration is not ideal and is not safe for production environments-do not use XAMPP in such environments.

Starting with Lampp 0.9.5, you can make XAMPP more secure by calling»/opt/lampp/lampp security«.

To date, there are four versions of the XAMPP:

    • Versions for Linux (tested under Ubuntu, SuSE, RedHat, Mandrake, and Debian),
    • For Windows 98, NT, 2000, 2003, XP, and Vista versions,
    • Beta version for Solaris SPARC (developed and tested in the Solaris 8 environment),
    • Beta version for Mac OS X.

The XAMPP version for Mac OS X and Solaris is still in the first phase of development. Use it at your own risk!

Installation steps

One. Enter the Linux shell and log in as a system administrator:

Su Root

Two. Release the downloaded compressed file to/OPT:

Tar xvfz xampp-linux-1.7.3a.tar.gz-c/opt

Only allow installation of XAMPP using the above command. When you use this command, older versions of XAMPP that already exist will be overwritten. The XAMPP is installed in the /opt/lampp directory.

Three. Start running XAMPP using the following command:

/opt/lampp/lampp start

You should be able to see a message similar to the following on the screen:

Starting XAMPP 1.7.3a ...
Lampp:starting Apache ...
Lampp:starting MySQL ...
Lampp started.

All right. Apache and MySQL are running.

Four. Test if the installation is successful, enter the following information in the browser:

http://localhost

http://192.168.0.1

This will open the XAMPP to start the main page. It includes phpMyAdmin, and now there is no password to enter.

After this installation, you need to set the appropriate permissions and passwords.

XAMPP lack of security protection list:

    1. MySQL Administrator (Root) does not have a password.
    2. MySQL is accessible over the network.
    3. ProFTPD uses "Lampp" as the password for the user name "nobody".
    4. PhpMyAdmin can be accessed over the network.
    5. The sample program can be accessed over the network.
    6. MySQL and Apache run under the same user name (nobody).

Five. Output the security check and configure the appropriate password.

/OPT/LAMPP/LAMPP Security

Six. When this password is set, the user name and password are prompted when you enter again via http://localhost or http://192.168.0.1.

Note You cannot open phpMyAdmin at this time, you will be prompted with a password error. You need to configure the phpMyAdmin configuration file and configure the user name and password inside.

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.

Seven. Stop XAMPP

To stop XAMPP, simply enter the following command:

/opt/lampp/lampp stop

You should now be able to see:

Stopping Lampp 1.7.3a ...
Lampp:stopping Apache ...
Lampp:stopping MySQL ...
Lampp stopped.

Then XAMPP's Linux version stops running.

Eight. Uninstall

To uninstall XAMPP, simply enter the following command:

Rm-rf/opt/lampp

Uninstall complete. :)

Nine. Adjust the xampp to run each time it is powered on.

Vi/etc/rc.d/rc.local

Add a line to the last face:

/opt/lampp/lampp start

Attached:

Advanced Start and Stop parameters

Parameter description

Start Start XAMPP.
Stop Stop XAMPP.
Restart Restart XAMPP.
Startapache Only Apache is started.
Startssl Start the Apache SSL support. The command will continue to activate SSL support, for example: After executing the command, if you shut down and restart the Xampp,ssl will still be active.
Startmysql Start the MySQL database only.
Startftp Start the ProFTPD server. Via FTP, you can upload files to your Web server (username "Nobody", Password "lampp"). The command will continue to activate ProFTPD, for example: After executing the command, if you close and restart Xampp,ftp will still be active.
Stopapache Stop Apache.
Stopssl Stop the Apache SSL support. The command will continue to stop SSL support, for example: After executing the command, if you shut down and restart the Xampp,ssl will still be in the stopped state.
Stopmysql Stop the MySQL database.
Stopftp Stop the ProFTPD server. The command will continue to stop ProFTPD, for example: After executing the command, if you close and restart Xampp,ftp will still be in the stopped state.
Security Start a small security check procedure.

For example: To enable Apache with SSL support, simply enter the following command (as root):

/opt/lampp/lampp Startssl

You can now access the Apache server in the form of SSL https://localhost.

Transferred from: http://blog.csdn.net/jaimejth/article/details/5669089

Turn: Linux under XAMPP installation and configuration

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.