How to install PHP, APACHE, ORACLE, and PERL in Linux

Source: Internet
Author: User
Tags install perl
After a night of hard work, I finally installed ORACLE and successfully called the ORACLE database using the PHP script. now I will share with you. (Note: According to some information on the Internet, oracle8.1.6 + php4.0.4 + apache1.3.2 can be successfully installed. However, if you have tried it several times, you cannot install it, .) 1. hardware ring ApachePerl

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-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 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-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. \
-- 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

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.