准备工作:
查看系统版本
file /bin/ls
显示系统程序信息,就能看出多少位。
一、xampp下载地址:
http://sourceforge.net/projects/xampp/files/
二、我下载的是xampp-linux-x64-1.8.3-1-installer.run
5.6.14(2015年11月份更新)
三、下载完以后,给该文件添加执行权限:
chmod +x xampp-linux-x64-1.8.3-a-installer.run
四、安装xampp过程如下:
[root@nginxone src]# ./xampp-linux-x64-5.6.14-4-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
Starting XAMPP for Linux 5.6.14-4...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
七、停止xampp:
[root@nginxone lampp]# /opt/lampp/xampp stop
Stopping XAMPP for Linux 5.6.14-4...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
八、添加开机启动:
温习一下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学习之路](http://img1.ph.126.net/ZiWzw-0L1FFzzNrsrg01pw==/3902369077217027812.png)
十、卸载xampp
#/opt/lampp/xampp stop
#rm -rf /opt/lampp
-------------------------------------------------------------------------------
在另一台主机中访问http://ip地址
配置
/opt/lampp/apache2/conf
httpd.conf文件的原来内容如下:
Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"
<Directory "/opt/lampp/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
也可以配置,见本博主的另一篇博客
http://blog.csdn.net/u011630575/article/details/50088351
怎么配置都没有成功,在另一台主机上都没登录成功。但配置好了Xmanager,就可以在另一台机器上访问了,不知道为什么?
另一篇博客地址:
http://blog.csdn.net/u011630575/article/details/50100097