Installation and configuration of the XAMPP integrated environment for Linux applications (CentOS)

Source: Internet
Author: User

Download of the 1.XAMPP integrated environment

Select a version of the corresponding system on the official website of xampp for download, website address: https://www.apachefriends.org/zh_cn/index.html

#wget https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/5.6.30/ Xampp-linux-x64-5.6.30-1-installer.run?from_af=true

#ls-al./xampp-linux-x64-5.6.30-1-installer.run

Installation of 2.XAMPP

#赋执行权限

#chmod 755 Xampp-linux-x64-5.6.30-1-installer.run

#开始安装, default in/opt directory

#./xampp-linux-x64-5.6.30-1-installer.run

#尝试启动xampp

#/opt/lampp/lampp start

The following message appears to indicate success:

Starting XAMPP for Linux 5.6.30-1 ...
Xampp:starting Apache...already running.
Xampp:starting Mysql...already running.
Xampp:starting Proftpd...ok.

#尝试停止xampp

#/opt/lampp/lampp stop

#可以为lampp创建软链接, you can also add the corresponding startup script in the/ETC/INIT.D, depending on the need to choose

#ln-S/OPT/LAMPP/LAMPP/USR/LOCAL/BIN/LAMPP

Or

#vi/ETC/INIT.D/LAMPP

#chmod 755/ETC/INIT.D/LAMPP

#chkconfig Lampp on

#service lampp Restart

The script content can refer to the VSFTPD startup script.

3. Configuration

#在默认的安装过程中, xampp All are not password, for security, we should set the password for XAMPP. The specific setup process can be done according to the prompts.

#/opt/lampp/lampp Security

4. Common Problems and solutions

(1) After the installation is completed, many times with locahost to access, there is no problem, but the same LAN in the other host with the domain name access, often can not access, here the situation is probably divided into two kinds:
A. XAMPP configuration file:/opt/lampp/etc/extra/httpd-xampp.conf to block the following content

<locationmatch "^/(? I: (?: xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))" >

#Require Local

ErrorDocument 403/error/xampp_forbidden.html.var

B. If you do not have access after following the above changes, it is possible that the firewall will kill the port 80, either shut down the firewall or configure 80 ports to allow access.

If there is a port conflict, modify the port:

Vi/etc/httpd/conf/httpd.conf

Change the value of listen to 8080 or other

The value of servername is also changed to 8080 or other

Modify/opt/lampp/etc/extra/httpd-ssl.conf

Change the value of listen to 8080 or other

The value of servername is also changed to 8080 or other

Installation and configuration of the XAMPP integration environment for Linux applications (CentOS)

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.