After a night of hard work, we finally installed ORACLE and successfully called the ORACLE database using the PHP script. Now we will share with you.
(Note: according to some information on the Internet, oracle8.1.6 + php4.0.4 + apache1.3.2 is successful.
I tried it several times with a friend but it was not successful. If you have any experts, please advise. It is best to provide more details .)
1. hardware environment:
Hard Disk: 9.2 GB; Memory: 128 M; NIC: EEpor100
2. Software
Operating System:
RedHat 6.1 (*** it must be 6.1 ***)
3. Optimize RedHat 6.1
Similar to the previous article, please refer to the previous article "methods for installing PHP, APACHE, MYSQL, and PERL in Linux" Author: sucre_tiger
4. Install and optimize mm, oracle, apache, php, perl, mode_perl
1) File
Mm: mm-1.1.3.tar.gz
Oracle: oracle.8.1.16 (version 2)
Apache: apache_1.3.12.tar.gz
Php: php-4.0.0.tar.gz (official)
Mode_perl: mod_perl-1.24.tar.gz
Perl-DBI: DBI-1.14.tar.gz
DBD-Oracle-1.06.tar.gz
Data-Dumper-2.101.tar.gz
Data-ShowTable-3.3.tar.gz
Perl: perl-5.6.0.tar.gz
Decompress the file:
Tar-zxpf file name
Note: All of the following pre-compilation and installation must be in the Software Directory to be installed
#) Install mm
(Note: MM can use a new algorithm to optimize the system and set CPU support. We recommend that you install it)
./Configure
-- Disable-shared
-- Prefix =/usr
Make
Make test
Make install
Make clean
(Note: After installing a module, make clean clears the previous settings to prevent conflicts)
#) ORACLE Installation
Since ORACLE installation is complex, it is difficult to take it over. Next time, a special document will be provided to introduce ORACLE installation.
#) Apache pre-Compilation
CC = "egcs"
OPTIM = "-O9-funroll-loops-ffast-math-malign-double-mcpu = pentiumpro
-March = pentiumpro-fomit-frame-pointer-fno-limits tions"
CFLAGS = "-DDYNAMIC_MODULE_LIMIT = 0"
./Configure
-- Prefix =/apache
#) Php pre-Compilation
CC = "egcs"
OPTIM = "-O9-funroll-loops-ffast-math-malign-double-mcpu = pentiumpro
-March = pentiumpro-fomit-frame-pointer-fno-limits tions"
./Configure
-- Prefix =/usr
-- With-apache = ../apache_1.3.12
-- Enable-safe-mode
-- With-mm
-- Enable-inline-optimization
-- Enable-memory-limit
-- Enable-track-vars
-- With-oci8 =/$ ORACLE_HOME
(Note: This is the only difference from installing MYSQL. $ ORACLE_HOME refers to the installation path of ORACLE. You can view the ORACLE environment variables)
#) Install php
Make
Make install
Make clean
#) Pre-compile mode_perl
Perl Makefile. PL
EVERYTHING = 1
APACHE_SRC = ../apache_1.3.12/src
USE_APACI = 1
DO_HTTPD = 1
#) Install mod_perl
Make
Make install
Make clean
#) Compile apache
EAPI_MM = SYSTEM
CC = "egcs"
OPTIM = "-O9-funroll-loops-ffast-math-malign-double-mcpu = pentiumpro
-March = pentiumpro-fomit-frame-pointer-fno-limits tions"
CFLAGS = "-DDYNAMIC_MODULE_LIMIT = 0"
./Configure
-- Prefix =/apache
-- Activate-module = src/modules/php4/libphp4.a
-- Enable-module = php4
-- Activate-module = src/modules/perl/libperl.
-- Enable-module = perl
#) Install apache
Make
Make install
Make clean
Cp/apache/bin/apachectl/etc/rc. d/init. d/httpd
Cd/etc/rc. d/rc3.d
Ln-s ../init. d/httpd S80httpd
Load apache at system startup
#) Install perl DBI
Perl Makefile. PL
Make
Make test
Make install
Make clean