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