Install Apache2.0.49 + oracle9.2.0 in RedHatAS2.1 System

Source: Internet
Author: User
Required packages for ipvj
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
  
1. Oracle Installation
1) confirm that you have installed the following compatible packages:
# 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 II. install apache + php
!) Take the second copy of the system installation disk.
# 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 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. ini
# Vi/usr/local/apache/php. ini
Register_globals = On
Disable_functions = phpinfo
Create a self-starting script
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.