centos 64位系统如何使用XAMPP?

32位的机器随便装,几乎傻瓜式没什么说,不过64位的系统会被拒绝掉,并提示你无法启动,英文提醒”XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system”
难道不支持64位系统么? 当然不是,在其内部程序里做了判断, 修改下完全可以强制执行!
集成包地址:http://www.apachefriends.org/zh_cn/xampp-linux.html 当然不建议生产环境用这个集成包,还是自己配置下好.
#如果你是64bit的OS,那麼會遇到下列問題
[root@citieyes opt]# /opt/lampp/lampp start
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.

#解決方法,安裝glibc
[root@citieyes opt]# yum install glibc*

#將檢查OS版本的程式碼註解掉
[root@citieyes opt]# vim /opt/lampp/lampp

# XAMPP is currently 32 bit only[root@citieyes opt]# /opt/lampp/lampp start
#case uname -m in
# *_64)
# if /opt/lampp/bin/php -v > /dev/null 2>&1
# then
# :
# else
# $de && echo “XAMPP gibt es zur Zeit nur als 32-Bit Applikation. Bitte verwende eine 32-Bit Kompatibilitaetsbibliothek fuer Dein System.”
# $de || echo “XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.”
# exit
# fi
# ;;
#esac

[root@citieyes opt]# /opt/lampp/lampp start

posted @ 2018-10-26 14:52  beihaiyang  阅读(2641)  评论(0编辑  收藏  举报