RedHatAS2.1系统下Apache2.0.49+oracle9.2.0的安装
[日期:2006-11-22]
来源:
作者:
[字体:大 中 小]
所需程序包
ship_9204_linux_disk1.cpio.gz ship_9204_linux_disk2.cpio.gz ship_9204_linux_disk3.cpio.gz httpd-2.0.49.tar.gz php-4.3.6.tar.gz binutils-2.10.91.0.2-3.i386.rpm jre118_v3-glibc-2.1.3.tar.gz jdk118_v3.tar.gz env_ctx.mk
一.Oracle的安装
1).确认你已安装了以下兼容包:
#rpm -q gcc cpp compat-libstdc++ glibc-devel kernel-headers binutils
#rpm -Uvh --force --nodeps binutils-2.10.91.0.2-3.i386.rpm
#gunzip ship_9204_linux_disk1.cpio.gz ship_9204_linux_disk2.cpio.gz ship_9204_linux_disk3.cpio.gz
#cpio –idvm 二.装apache+php
!)把系统安装盘的第二张拿过来
#mount /dev/cdrom;cd /mn/cdrom
#cd RedHat/RPM
#rpm –vUh binutils
#tar zxvf httpd-2.0.49.tar.gz
#tar zxvf php-4.3.6.tar.gz
#cd httpd-2.0.49
#./configure –prefix=/usr/local/apache –enable-so;make;make install
#cd
#cd php-4.3.6
#./configure --prefix=/usr/local/apache/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache/php
--enable-sockets
--with-oracle=/home/oracle/product/9.2.0 --with-oci8=/home/oracle/product/9.2.0
--enable-shared-pdflib
--with-pdflib=/usr/local/
--with-freetype-dir=/usr/ --with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-zlib --enable-track-vars
#make;make install
#cp php.ini-dist /usr/local/apache/php/php.ini
#vi /usr/local/apache/php/php.ini
register_globals = On
disable_functions = phpinfo
创建自启动脚本
1) apache
#vi /bin/start_apache
#!/bin/sh
ORACLE_HOME=/home/oracle/product/9.2.0
ORACLE_SID=jackylau
export ORACLE_HOME ORACLE_SID
echo "Oracle Home: $ORACLE_HOME"
echo "Oracle SID: $ORACLE_SID"
echo Starting Apache
/usr/local/apache/bin/apachectl start
#chmod 755 /bin/start_apache
#ln –s /bin/start_apache /etc/rc3.d/S99httpd
2) oracle
#vi /etc/rc3.d/S99orastart
su - oracle -c "dbstart"
su - oracle -c "lsnrctl start"
#chmod 755 /etc/rc3.d/S99orastart