aix5.3安装httpd服务

1、安装gcc
(1)从IBM上下载
gcc-4.0.0-1.aix5.3.ppc.rpm
gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm
libgcc-4.0.0-1.aix5.3.ppc.rpm
libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm
libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm
下载地址为:
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroups.html
rpm的实际地址:
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/gcc-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libgcc-4.2.0-3.aix5.3.ppc.rpm
(2)因AIX5.3已默认安装rpm,故只需以root身份利用ftp将上述五个rpm文件上传到/usr/opt/freeware/src/packages/SOURCES
(3)以root登录并安装
#cd /usr/opt/freeware/src/packages/SOURCES
#rpm -ivh gcc-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh libgcc-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm


2、安装httpd
(1)安装pcre
gunzip pcre-8.36.tar.gz
tar -xvf pcre-8.36.tar
cd pcre-8.36
./configure --prefix=/usr/local/pcre
make
make install


(2)安装apr
gunzip apr-1.5.2.tar.gz
tar -xvf apr-1.5.2.tar
cd apr-1.5.2
./configure --prefix=/usr/local/apr
make
make install

(3)安装apr-util
gunzip apr-util-1.5.4.tar.gz
tar -xvf apr-util-1.5.4.tar
cd apr-util-1.5.4
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
make
make install

(4)安装httpd
gunzip httpd-2.2.31.tar.gz
tar -xvf httpd-2.2.31.tar
cd httpd-2.2.31
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make
make install


问题一
未安装apr和apr-util导致
提示信息:
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation

解决:
安装apr和apr-util
APR和APR-UTIL的下载地址:http://apr.apache.org/download.cgi

问题二
未安装pcre导致
提示信息:
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

解决:
安装pcre
pcre下载地址:http://ftp.exim.llorien.org/pcre/

问题三
启动httpd报错:
bash-3.00# /usr/local/apache2/bin/apachectl start
httpd: bad group name daemon

解决:
bash-3.00# mkgroup daemon
bash-3.00# mkuser daemon

问题四
启动httpd报错:
bash-3.00# /usr/local/apache2/bin/apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 10.70.114.82 for ServerName

解决:
打开 /usr/local/apache2/conf/httpd.conf
将里面的 #ServerName localhost:80 注释去掉即可,或添加ServerName localhost:80

posted @ 2016-01-25 15:43  飞雪^流星  阅读(946)  评论(0编辑  收藏  举报