php 连接oracle 无法 启用oci8 解决办法 (摘自oracle官网)
来源:互联网 发布:ubuntu变为中文 编辑:程序博客网 时间:2024/06/06 04:31
ENABLING THE PHP OCI8 EXTENSION ON WINDOWS
The Instant Client binaries complement PHP's pre-built binaries for Windows.
Install Apache by downloading
httpd-2.2.22-win32-x86-no_ssl.msi
from httpd.apache.org/download.cgiDouble click the MSI file to start the installation wizard.
Install "for All Users, on Port 80". Do a typical install into the default destination folder:
C:\Program Files\Apache Software Foundation\Apache2.2
.Download the FastCGI component
mod_fcgid-2.3.6-win32-x86.zip
from httpd.apache.org/download.cgi#mod_fcgidUnzip it to the installed Apache 2.2 directory. The
C:\Program Files\Apache Software Foundation\Apache2.2\modules
directory should now havemod_fcgid.so
andmod_fcgid.pdb
files.Edit
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
and add the line:LoadModule fcgid_module modules/mod_fcgid.so
In
httpd.conf
, locate thesection for
htdocs
and addExecCGI
to theOptions
:<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">...Options Indexes FollowSymLinks ExecCGI...</Directory>
Install PHP by downloading the PHP 5.4.0 "VC9 x86 Non Thread Safe" ZIP package php-5.4.0-nts-Win32-VC9-x86.zip fromwindows.php.net/download.
In Windows Explorer unzip the PHP package to a directory called
C:\php-5.4.0
In
C:\php-5.4.0
copyphp.ini-development
tophp.ini
Edit
php.ini
to make the following changes:Add a timezone line like:
date.timezone = America/Los_Angeles
Use your local timezone name.Add the line:
extension_dir = C:\php-5.4.0\ext
This is the directory containing the PHP extensions.Remove the semicolon from the beginning of the line:
extension=php_oci8_11g.dll
Edit
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
and add the following lines. Make sure you use forward slashes '/
' and not back slashes '\
':FcgidInitialEnv PHPRC "c:/php-5.4.0"AddHandler fcgid-script .phpFcgidWrapper "c:/php-5.4.0/php-cgi.exe" .php
Download the "Instant Client Package - Basic" for Windows from the OTN Instant Client page. Because PHP is 32 bit, use the 32 bit version of Instant Client.
Unzip the Instant Client files to
C:\instantclient_11_2
Edit the Windows
PATH
environment setting and addC:\instantclient_11_2
. For example, on Windows XP, follow Start -> Control Panel -> System -> Advanced -> Environment Variables and editPATH
in the System variables list.Commonly you need to reboot Windows so the new environment is correctly set.
Set desired Oracle globalization language environment variables such as
NLS_LANG
. If nothing is set, a default local environment will be assumed. See the Globalization chapter in The Underground PHP and Oracle Manual for more details.Unset Oracle variables such as
ORACLE_HOME
andORACLE_SID
, which are unnecessary with Instant Client.If you have other Oracle software on the computer then instead of modifying the Windows environment, write a script that sets these values and starts Apache. Otherwise library symbol clashes are likely because of version differences.
Restart Apache using the system tray Apache Monitor or the Start menu option.
- php 连接oracle 无法 启用oci8 解决办法 (摘自oracle官网)
- Windows PHP/phpStudy 连接 甲骨文Oracle 数据库 oci8
- Windows PHP/phpStudy 连接 甲骨文Oracle 数据库 oci8
- php oci8 访问oracle 成功
- PHP oci8连接oracle数据库出现"ORA-24408: could not generate unique server group name"的解决办法
- Linux下PHP 5.2 Oracle客户端扩展(OCI8)安装
- linux下php安装oracle客户端 oci8
- Linux下PHP开启Oracle支持(oci8)
- ruby连接数据库 oracle的方法之一:OCI8
- CentOS 5.3 PHP 5.2.x Oracle客户端扩展(OCI8)安装
- Linux下PHP Oracle客户端扩展(OCI8)安装
- Linux下PHP Oracle客户端扩展(OCI8)安装
- Linux下PHP Oracle客户端扩展(OCI8)安装
- mac安装php的oracle扩展oci8的一些问题
- Oracle无法登陆解决办法
- PHP 无法开启 OCI8 扩展原因
- 关于navicat for oracle 无法连接oracle11g的解决办法
- WebService无法连接Oracle
- 分治法--合并排序
- oracle常用函数大全
- 怎样使用initramfs
- LVS路由模式负载均衡
- Git Official Document
- php 连接oracle 无法 启用oci8 解决办法 (摘自oracle官网)
- linux操作系统-3进程管理(3)
- PostgreSQL中的DO- 有条件的创建函数
- db2修改表字段
- jmeter插件使用(二)
- MySQL for Java的SQL注入测试
- 哈喽卖给的你是怎么回事机制的介么
- Splits the string
- CocoaPods详解之-Podfile.lock