Linux installation Xamp

Source: Internet
Author: User
Tags startssl

Before a long time with the Ubuntu, want to toss the nest, lazy to install PHP ah, Apache and other things, just use xampp, direct point, and so on later to involve deep again, temporarily first use XAMPP. Also good, very good, here simple to install, (I am a novice, Master flew).

First, download and download the tar package directly

: http://www.apachefriends.org/zh_cn/xampp-linux.html

After downloading, enter the following command:

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

If it is a. Run installation package:

Like Realplay.run.
The installation method is as follows
chmod +x Realplay.run
./realplay.run

Su

Release the downloaded compressed file to/OPT: (no folder created by itself)

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

Warning: only allow XAMPP to be installed using the above command. Do not use any Microsoft Windows tools to release compressed files, which is no use.

Warning 2: When you use this command, older versions of XAMPP that already exist will be overwritten.

This is the end. The XAMPP is installed in the /opt/lampp directory.

Run

Use the following command to start running XAMPP:

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

Basically so, the rest is to open the 127.0.0.1 test, to see open not.

Administrator root password modification 1. First, in the http://localhost/panel "permissions", modify the user root (localhost corresponding to the user, the default password is empty) password 2. Modify the/opt/lampp/phpmyadmin/config.inc.php user root password (corresponding to the above) 3. Run Chmod-r 755/opt/lampp/phpmyadmin Other settings reference in terminal

As mentioned earlier, XAMPP is not intended for production environments and is intended for use by the development environment only. XAMPP is set to be as open as possible and provides the developer with any features he or she wants. This is great for the development environment, but it can be deadly for production environments.

Here's a list of XAMPP. Lack of security protection:

MySQL Administrator (Root) does not have a password.
MySQL is accessible over the network.
ProFTPD uses "Lampp" as the password for the user name "nobody".
PhpMyAdmin can be accessed over the network.

The sample program can be accessed over the network.

MySQL and Apache run under the same user name (nobody).

To fix most of the security weaknesses, simply execute the following command:

/OPT/LAMPP/LAMPP Security

It enables a small security check feature to make the XAMPP you install more secure.

Advanced start and Stop parameters 0.9.4 version of the previous/opt/lampp/lampp can simply start or stop XAMPP. Since the beginning of the 0.9.5 edition, it has learned a lot of new things. Advanced start and stop parameter description start XAMPP. Stop stops XAMPP. Restart Restart XAMPP. Startapache only launches Apache. Startssl initiates SSL support for Apache. 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 only starts the MySQL database. 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 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 launches a small security check procedure. For example: To enable Apache with SSL support, simply enter the following command (as root):/opt/lampp/lampp Startssl Now you can access the Apache server in the form of SSL https://localhost.

Where do you put the stuff?

Where do you put the stuff?

A big question Oh, here are some answers! ;)

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/apache the document root directory.

/opt/lampp/etc/httpd.conf Apache configuration file.

/OPT/LAMPP/ETC/MY.CNF MySQL configuration file.

/opt/lampp/etc/php.ini PHP configuration files.

/opt/lampp/etc/proftpd.conf proftpd Preparation file. (starting from version 0.9.5)

/opt/lampp/phpmyadmin/config.inc.php phpMyAdmin Preparation file.

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.

Unloading

To uninstall XAMPP, simply enter the following command:

Rm-rf/opt/lampp

Uninstall complete. :)

(Actually the above is I go to the official website copy, haha!) )

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.