0.先放两个href出处:
官方较新:http://www.apachefriends.org/zh_cn/xampp-linux.html
官方旧:http://www.cnblogs.com/fhefh/archive/2011/09/18/2180167.html
按照较新的安装运行这块沒有反应:./xampp-linux-1.8.2-installer.run
最后决定用较旧的:
1.下载xampp-linux-1.7.4.tar.gz
2.tar xvfz xampp-linux-1.7.4.tar.gz -C /opt
出现:XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility
命令:uname -ar
Linux yale 2.6.32-52-generic #114-Ubuntu SMP Wed Sep 11 18:50:27 UTC 2013 x86_64 GNU/Linux
我的linux系统是64bit
命令来兼容:sudo apt-get install ia32-libs
3./opt/lampp/lampp start
a.出现counld't start mysql解决方法:
http://blog.sina.com.cn/s/blog_8184e03301011bm4.html
chown -hR root /opt/lampp
chmod -R 777 /opt/lampp
/opt/lampp/lampp restart
b.Warning: World-writable config file '/opt/lampp/etc/my.cnf' is ignored
(1)chmod 755 /opt/lampp/etc/my.cnf (2)chmod 755 /opt/lampp/phpmyadmin (3) vi /opt/lampp/etc/php.ini 将“; session.save_path = “/tmp”” 前面的“;”去掉,即去掉注释语句(个人认为这一步可以省略,如果不行的话,建议大家还是加上这一步) (4) 重启lampp.
4.访问phpadmin:Wrong permissions on configuration file, should not be world writable
chomd -R 755 /opt/lampp/phpmyadmin
5.http://localhost