Home  >  Article  >  Backend Development  >  Linux Apache PHP Oracle installation and configuration (specific steps)_PHP tutorial

Linux Apache PHP Oracle installation and configuration (specific steps)_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:05:461207browse

I won’t talk about Oracle, 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. Install oci8
pecl install oci8
Enter the oracle installation directory during installation

4. Modify httpd.conf
to find
User apache
Group apache
and change it to the user in the system, such as:
User oracle
Group oracle

5. Create oracle.ini content under /etc/php.d/:
; Enable oracle extension module
extension=oci8.so

6. Modify the temporary directory of php (/etc/php.ini):
session.save_path = "/tmp/php"
And lower the permissions of /tmp/php Go to the lowest 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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327667.htmlTechArticleI won’t talk about Oracle, 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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn