How to install PHP, Apache, Oracle, and Perl in Linux

Source: Internet
Author: User
Tags install perl

Introduction: This is a detailed page for installing PHP, Apache, Oracle, and Perl in Linux. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 324832 'rolling = 'no'>

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
Process and previousArticleSimilarly, please refer to the previous article "how to install PHP, Apache, MySQL, 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 newAlgorithmTo optimize the system and set CPU support. Recommended installation)
./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

"How to install PHP, Apache, Oracle, and Perl in Linux"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/324832.html pageno: 14

Related Article

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.