使用命令安装:
1.安装apache
#yum -y install httpd
2.安装mysql
#yum -y install mysql
#yum -y install mysql-server
#yum -y install mysql-devel
#chkconfig --levels 235 mysqld on // 让mysql自启动
3.安装php
#yum -y install php
#yum -y install php-devel
/
使用源码编译安装:
1.编译apache
1)下载apache源码
http://httpd.apache.org/download.cgi#apache24
2)#./configure --prefix=/usr/local/apache --with-apr=/usr/local/arp --with-apr-util=/usr/local/apr-util
提示:
configure: error: APR not found. Please read the document.
下载apr-1.5.2.tar.bz2:
http://apr.apache.org/download.cgi
#tar xjf apr-1.5.2.tar.bz2 // 解压bz2格式
#cd apr-1.5.2
#./configure --prefix=/usr/local/apr
#make && make install
3)再次执行:
#./configure --prefix=/usr/local/apache --with-a