Linux Apache PHP Oracle installation configuration (specific steps) _php Tutorial

Source: Internet
Author: User
Oracle does not say that Linux is CentOS.
1. Installing httpd (Apache)
Yum Install Httpd-y

2. Install PHP, PHP-GD, Php-mcrypt, php-pecl*
Yum install php php-gd php-mcrypt php-pecl*-y

3. Installing Oci8
PECL Install Oci8
Enter the Oracle installation directory during installation

4. Modify Httpd.conf
Found it
User Apache
Group Apache
Change to users in the system, such as:
User Oracle
Group Oracle

5. Create the Oracle.ini content under/etc/php.d/:
; Enable Oracle Extension Module
Extension=oci8.so

6. Modify the Temp directory for PHP (/etc/php.ini):
Session.save_path = "/tmp/php"
And to minimize the/tmp/php permissions chmod 777/tmp/php

7. Set environment variables. Bash_profile
oracle_home=/opt/oracle/product/11.2.0/dbhome_1/
Ld_library_path=/opt/oracle/product/11.2.0/dbhome_1/lib
Tns_admin=/opt/oracle/product/11.2.0/dbhome_1/network/admin
Oracle_sid=orcl
Export Oracle_home Ld_library_path tns_admin oracle_sid

8.
Chkconfig--level 3 httpd on
Chkconfig--level 5 httpd on

9. Reboot

http://www.bkjia.com/PHPjc/327667.html www.bkjia.com true http://www.bkjia.com/PHPjc/327667.html techarticle Oracle does not say that Linux is CentOS. 1. Install httpd (Apache) yum install httpd-y 2. Install PHP, PHP-GD, Php-mcrypt, php-pecl* yum install php php-gd php-mcrypt php-pecl*-y 3 ...

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