Install apache + php on linux to connect oracle10g

Source: Internet
Author: User
Welcome to the Linux community forum and interact with 2 million technical staff to access the software used: the oracle version of PostgreSQL is 10.1

Welcome to the Linux community forum, interact with 2 million technicians> enter the software used: linux AS 4 oracle-instantclient-basic-10.1.0.4-1.i386.rpm oracle-instantclient-devel-10.1.0.4-1.i386.rpm php 4.4.2 httpd-2.2.0.tar.gz or httpd-2.0.55.tar.gz oracle version is 10.1

Welcome to the Linux community forum and interact with 2 million technicians>

Software used: linux AS 4 oracle-instantclient-basic-10.1.0.4-1.i386.rpm oracle-instantclient-devel-10.1.0.4-1.i386.rpm php 4.4.2 httpd-2.2.0.tar.gz or httpd-2.0.55.tar.gz oracle version is 10.1.0.3 truly successful installation, connection successful!

Install freetype tar zxvf freetype-2.1.10.tar.gz for gd library. /configure make & make install: install zlib tar-zxvf zlib-1.2.3.tar.gz cd zlib.1.2.3./configure make & make install: install libpng tar-zxvf libpng-1.2.8-config.tar.gz cd libpng-1.2.8-config cp scripts/makefile. std makefile make test make install: install jpeg tar-zxvf unzip src.v6b.tar.gz cd jpeg-6b. /configure-enable-share--enable-static make; make install: install GD t Ar-zxvf gd-2.0.33.tar.gz cd gd-2.0.33. /configure-prefix =/usr/local/gd-with-jpeg-with-png-with-zlib-with-freetype =/usr/local/freetype/ lib make & make install error/usr/bin/install-c-m 644 when compiling jpeg. /c0000.1/usr/local/man/man1/c0000.1/usr/bin/install: cannot create regular file '/usr/local/man/man1/c0000.1 '': no such file or directory does not have the/usr/local/man directory and the man1 sub-directory, and is created and re-compiled.

Shell> mkdir/usr/local/man/man1 install apache first upload httpd-2.2.0.tar.gz to/root cd tar zxvf httpd-2.2.0.tar.gz cd httpd-2.2.0. /configure-prefix =/usr/local/apache2 make & make install enable the PHP OCI8 extension on Linux to download the Basic and SDK Instant Client packages from the Instant Client page on OTN. The total size of the two RPMs is about 30 mb. install RPM as the root user. rpm-Uvh oracle-instantclient-basic-10.1.0.4-1.i386.rpm rpm-Uvh oracle-instantclient-devel-10.1.0.4-1.i386.rpm first RPM place the Oracle database in/usr/lib/oracle/10.1.0.4/client/lib, the second RPM creates a header in/usr/include/oracle/10.1.0.4/client ).

Install php first upload the php-4.4.2.tar.gz to the/root cd tar zxvf php-4.4.2.tar.gz cd php-4.4.2. /configure-prefix =/usr/local/php-with-config-file-path =/usr/local/php/etc-with-oci8-instant-client =/usr/lib/oracle /10.1.0.4/client/lib-with-apxs2 =/usr/local/apache2/bin/apxs-with-mysql-with-gd-with-zlib-with-png -with-jpeg-with-freetype-enable-gd-native-ttf-with-ttf make & make install cp php. ini-dist/usr/local/php/etc/php. ini in http. add LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php at the end of conf. php AddType application/x-httpd-php. phtml AddType application/x-httpd-php-source. phps changes DocumentRoot "/usr/local/apache2/htdocs" to DocumentRoot "your directory ", Change Write a file test. php <?

Phpinfo ();?> If there is oci8 information in it, it indicates that the installation is successful!

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.