First, XAMPP:
Http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.5.19/xampp-linux-x64-5.5.19-0-installer.run
Second, I downloaded the xampp-linux-x64-5.5.19-0-installer.run (note wget After downloading the file is stored in the current directory by default)
32-bit system: wget Http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.5.19/xampp-linux-5.5.19-0-installer.run
64-bit system: wget Http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.5.19/xampp-linux-x64-5.5.19-0-installer.run
After downloading, add Execute permission to the file:
chmod a+x Xampp-linux-x64-1.8.3-a-installer.run
Four, the installation XAMPP process is as follows:
[Email protected] src]# sh xampp-linux-x64-1.8.3-1-installer.run
Xampp-linux-x64-1.8.3-1-installer.run:xampp-linux-x64-1.8.3-1-installer.run:cannot Execute binary file
[Email protected] src]#./xampp-linux-x64-1.8.3-1-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components of your want to install; Clear the components does not want
To install. Click Next When your is ready to continue.
XAMPP Core Files:y (cannot be edited)
XAMPP Developer Files [y/n]: Y
Is the selection above correct? [y/n]: Y
----------------------------------------------------------------------------
Installation Directory
XAMPP'll be installed To/opt/lampp
Press [Enter] to continue:
----------------------------------------------------------------------------
Setup is now a ready to begin installing XAMPP on your computer.
Want to continue? [y/n]: Y
----------------------------------------------------------------------------
Please wait while the Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
Launch XAMPP [y/n]: Y
Five, after the installation of the file in/opt/lamp
Six, start Xampp:
[[email protected] lampp]#/opt/lampp/xampp start
Starting XAMPP for Linux 1.8.3-1 ...
Xampp:starting Apache...fail.
Xampp:another Web server is already running.
Xampp:starting Mysql...ok.
Xampp:starting Proftpd...fail.
Xampp:another FTP Daemon is already running.
Seven, stop XAMPP:
[[email protected] lampp]#/opt/lampp/xampp stop
Stopping XAMPP for Linux 1.8.3-1 ...
Xampp:stopping Apache...not running.
Xampp:stopping Mysql...ok.
Xampp:stopping Proftpd...not running.
Eight, add boot boot:
Review the LN command, using the method:
#ln [option] Source Dist
#ln –S/OPT/LAMPP/XAMPP/ETC/RC.D/INIT.D/XAMPP
Nine, if the completion of the above this does not boot automatically start, and then execute the following 3 statements.
#chkconfig –add XAMPP
#chkconfig –list | grep xampp
#chkconfig –level 3 xampp on
Start:
/opt/lampp/lampp start
Then open the browser and enter http://localhost to see the default page, indicating that the installation was successful.
In addition, it comes with the installation of phpMyAdmin is also very useful, the URL is: http://localhost/phpmyadmin.
own PHP project, just need to pass ln-s soft link to/opt/lampp/htdocs just fine
####################### Extended Reading ##################################
Security issues (Must-read!) )
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:
1 MySQL Administrator (root) does not have a password.
2 MySQL is accessible over the network.
3 ProFTPD use "lampp" as the password for the user name "nobody".
4 PhpMyAdmin can be accessed over the network.
5 sample programs can be accessed over the network.
6 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 The previous/opt/lampp/lampp of version 0.9.4 can only start or stop XAMPP easily. Since the beginning of the 0.9.5 edition, it has learned a lot of new things. |
|
Advanced Start and Stop parameters |
Parameters |
Describe |
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. Where do you put the stuff? Where do you put the stuff? A big question Oh, here are some answers! ;) |
|
Important Files and directories |
Files/Directories |
Use |
/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. |
|
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. Uninstall To uninstall XAMPP, simply enter the following command: Rm-rf/opt/lampp Uninstall complete. :) |
|
Linux CentOS installation Xampp