当前位置: > CentOS > CentOS教程 >

CentOS6.5下安装xampp

时间:2017-06-11 22:18来源:linux.it.net.cn 作者:IT

一、xampp下载地址:

http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.3/

二、我下载的是xampp-Linux-x64-5.6.3-0-installer.run

wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.3/xampp-linux-x64-5.6.3-0-installer.run/download

三、下载完以后,给该文件添加执行权限:

chmod a+x xampp-linux-x64-5.6.3-0-installer.run

/./root/xampp-linux-x64-5.6.3-0-installer.run

四、安装xampp过程如下:

sh xampp-linux-x64-5.6.3-0-installer.run

/./root/xampp-linux-x64-5.6.3-0-installer.run

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

Welcome to the XAMPP Setup Wizard.

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

Select the components you want to install; clear the components you do not want

to install. Click Next when you are 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 will be installed to /opt/lampp

Press [Enter] to continue :

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

Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

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

Please wait while Setup installs XAMPP on your computer.

 Installing

 0% ______________ 50% ______________ 100%

 #########################################

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

Setup has finished installing XAMPP on your computer.

Launch XAMPP [Y/n]: y

五、安装后的文件在 /opt/lamp

六、启动xampp:

[root@nginxone lampp]# /opt/lampp/xampp start

七、停止xampp:

[root@nginxone lampp]# /opt/lampp/xampp stop

八、添加开机启动:

温习一下ln命令,使用方式:

#ln [option] source dist

#ln –s /opt/lampp/xampp /etc/rc.d/init.d/xampp

九、如果执行完上面这条还不能开机自动启动,再执行下面3条语句。

#chkconfig –add xampp

#chkconfig –list | grep xampp

#chkconfig –level 3 xampp on

xampp的界面:

(教程)CentOS6.4下安装xampp - CentOS - Linux合Oracle学习之路

 

十、卸载xampp

#/opt/lampp/xampp stop

#rm -rf /opt/lampp

 

十一、xampp在centos下安装的一些问题

1、80端口不通,防火墙的原因,解决:
/sbin/iptables -I INPUT -p tcp --dport 80 -jACCEPT
2、只能本机访问:
修改安装目录 etc/extra/httpd-xampp.conf
<pre name="code" class="sql"><LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        #Require local <span style="color:#ff0000;">注释这行</span>
	ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容