XAMPP安装

下载:https://www.apachefriends.org/zh_cn/download.html

 安装

chmod 777 xampp-linux-x64-5.6.39-0-installer.run
./xampp-linux-x64-5.6.39-0-installer.run
一路y

启动xampp:
# /opt/lampp/lampp start

停止xampp:
# /opt/lampp/lampp stop

卸载xampp:
# /opt/lampp/lampp stop
# rm -rf /opt/lampp

参考资料:https://blog.csdn.net/hel12he/article/details/49781813

 

启动后报错:

egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

解决办法:

vi /opt/lampp/lampp

找到export LD_ASSUME_KERNEL=2.2.5这一行,

并修改内容为export LD_ASSUME_KERNEL=2.8.0,保存退出就可以解决了。

当然修改为不低于2.6.32的其他值也可以,比如2.6.32

查看系统内核版本:more /proc/version

参考资料:https://www.cnblogs.com/shengulong/p/7262346.html?utm_source=itdadao&utm_medium=referral

 

启动再次报错:

Starting XAMPP for Linux 5.6.36-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...fail.
Contents of "/opt/lampp/var/proftpd/start.err":

解决办法:

在/etc/hosts文件中增加本地网卡地址和主机名的映射关系

cat /etc/sysconfig/network

vi /etc/hosts

127.0.0.1  hostname

参考资料:

https://blog.csdn.net/u010417178/article/details/70860917

http://blog.51cto.com/9652359/2118058

 

设置lampp开启启动

vi /etc/rc.d/rc.local
在最后面增加一行: /opt/lampp/lampp start

 

开启局域网访问:

开启防火墙80端口

 

参考资料:https://www.cnblogs.com/andydao/p/4162018.html

 

各配置文件目录:

             Apache文档根目录:/opt/lampp/htdocs/

             Apache配置文件:/opt/lampp/etc/httpd.conf

             MySQL配置文件:/opt/lampp/etc/my.cnf

             PHP配置文件:/opt/lampp/etc/php.ini

            ProFTPD配置文件:/opt/lampp/etc/proftpd.conf

            PHPMyadmin配置文件:/opt/lampp/phpmyadmin/config.inc.php

   常用XAMPP命令(在终端以root输入):

             启动/停止/重启Apache:/opt/lampp/lampp start/stop/restart(包括启动/停止/重启了mysql,proftpd)

             安全设置:/opt/lampp/lampp  security

             使用php版本/查看版本:/opt/lampp/lampp php4(5)/phpstatus

             只启动和停止Apache:/opt/lampp/lampp startapache/stopapache

             只启动和停止MySQL:/opt/lampp/lampp startmysql/stopmysql

             只启动和停止ProFTPD服务器:/opt/lampp/lampp startftp/stopftp

             启动和停止Apache的SSL支持:/opt/lampp/lampp startssl/stopssl

             随系统自启动:

                                      ln –s /opt/lampp/lampp/etc/rc.d/rc3.d/S99lampp

                                      ln –s /opt/lampp/lampp/etc/rc.d/rc4.d/S99lampp

                                      ln –s /opt/lampp/lampp/etc/rc.d/rc5.d/S99lampp

            取消自启动:

                                     ln –s /opt/lampp/lampp K01lampp

            卸载XAMPP:rm –rf /opt/lampp



 

转载于:https://www.cnblogs.com/day959/p/10187001.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值