Home > Backend Development > PHP Tutorial > How to install PHP, APACHE, ORACLE, PERL under Linux_PHP Tutorial

How to install PHP, APACHE, ORACLE, PERL under Linux_PHP Tutorial

WBOY
Release: 2016-07-13 17:21:10
Original
872 people have browsed it

After a night of "hard work", ORACLE was finally installed, and the PHP script successfully called the ORACLE database. Now I will share it with you.
(Note: Some information on the Internet now says that oracle8.1.6+php4.0.4+apache1.3.2 can be successfully
installed, but a friend and I have tried several times but failed. If there are experts, please give me some advice. It’s better to be more detailed.)

1. Hardware environment:

Hard disk: 9.2 G; Memory: 128 M; Network card: EEpor100

2. Software

Operating System:

RedHat 6.1 (***Please note, it must be 6.1***)

3. Optimizing RedHat 6.1
The process is the same as the previous article, please refer to the previous article "Methods to install PHP, APACHE, MYSQL, PERL under 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 (Second Edition)
apache: apache_1.3.12.tar.gz
php: php-4.0.0.tar.gz (official version)
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

Extract the file:

tar -zxpf filename

Note: All the following precompilation and installation must be in the directory of the software to be installed

#) Install mm
(Note: MM can use new algorithms to optimize the system and set up support for CPU. It is recommended to install)
./configure
--disable-shared
--prefix=/usr
make
make test
make install
make clean
(Note: make clean will clear some previous settings after installing a module to prevent Conflict)

#) ORACLE installation
Because the installation of ORACLE is too complicated and difficult to cover in one go, there will be a special document to introduce the installation of ORACLE next time.

#) apache precompilation

CC="egcs"
OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro
-march=pentiumpro -fomit-frame-pointer -fno-exceptions"
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-exceptions"
./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 same as The only difference in installing MYSQL is that $ORACLE_HOME refers to the installation path of ORACLE, which can be obtained by viewing the ORACLE environment variable)
#) Install php

make
make install
make clean

#) Precompilation of 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-exceptions"
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0"
./configure
--prefix=/apache
--activate-module=src/modules/php4/libphp4.a
--enable-module=php4
--activate-module=src/modules/perl/libperl.a
--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 when the system starts


#) Install perl DBI

perl Makefile.PL

make
make test
make install
make clean



www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532513.htmlTechArticleAfter a night of "hard work", ORACLE was finally installed, and the PHP script successfully called the ORACLE database. Share it with everyone now. (Note: Some information on the Internet now says...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template