How to install PHP, APACHE, ORACLE, and PERL in Linux
Source: Internet
Author: User
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: some materials on the Internet now say that oracle8.1.6 + php4.0.4 + apache1.3.2 can be successfully installed, but after a night of fighting, I finally installed ORACLE, in addition, the PHP script has successfully called the ORACLE database and is now shared with you.
(Note: some materials on the Internet say that oracle8.1.6 php4.0.4 apache1.3.2 can be 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 be specific .) 1. hardware environment: Hard disk: 9.2 GB; memory: 128 MB; Nic: EEpor100 2. software Control System: RedHat 6.1 (*** note, it must be 6.1 ***) 3. redHat 6.1 optimized
The process is the same as that in the previous article. See the previous article "methods for installing PHP, APACHE, MYSQL, and PERL in Linux" author: sucre_tiger 4. install and optimize the 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 unzip File: tar-zxpf file name Note: all of the following pre-compilation and installation must be under the software directory to install #) install mm
(Note: MM can use a new algorithm to optimize the system and set support for CPU. 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 will clear the previous settings to prevent conflicts) #) install ORACLE
Since ORACLE installation is complex, it is difficult to take it over. next time, a special document will be provided to first install ORACLE. #) Apache pre-compiled 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-compiled 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-compiled perl Makefile. PL \ of mode_perl \
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
#) Install perl DBI perl Makefile. PL make
Make test
Make install
Make clean
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