Install Apache by downloading httpd-2.2.22-win32-x86-no_ssl.msi from httpd.apache.org/download.cgi

Double 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 FilesApache Software FoundationApache2.2.

Download the FastCGI component mod_fcgid-2.3.6-win32-x86.zip from httpd.apache.org/download.cgi#mod_fcgid

Unzip it to the installed Apache 2.2 directory. The C:Program FilesApache Software FoundationApache2.2modulesdirectory should now have mod_fcgid.so and mod_fcgid.pdb files.

Edit C:Program FilesApache Software FoundationApache2.2confhttpd.conf and add the line:

LoadModule fcgid_module modules/mod_fcgid.so

In httpd.conf, locate the

section for htdocs and add ExecCGI to the Options:

...

Options Indexes FollowSymLinks ExecCGI...

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 copy php.ini-development to php.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.0ext

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 FilesApache Software FoundationApache2.2confhttpd.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 .php

FcgidWrapper "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 add C:instantclient_11_2. For example, on Windows XP, follow Start -> Control Panel -> System -> Advanced -> Environment Variables and

edit PATH 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 and ORACLE_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 无法识别oci8,php 连接oracle 无法 启用oci8 解决办法 (摘自oracle官网)相关推荐

  1. 最终幻想14服务器不稳定,最终幻想14排队出现2002错误详细解决办法_FF14连接大厅服务器发生错误解决办法_求知软件网...

    最近最终幻想14正式迎来了5.0版本,本次新版本的改动也是非常之大,很多玩家也是想第一时间进游戏体验,但是很多玩家在进入游戏之后出现了提示"连接大厅服务器发生错误"代号是2002, ...

  2. 连接远程服务器CredSSP加密Oracle修正报错解决办法

    连接远程服务器CredSSP加密Oracle修正报错解决办法: 打开注册表,快捷输入 "regedit"(类似找命令提示符 输入 cmd 一样)找文件夹 路径:HKLM(缩写)\S ...

  3. python车牌识别系统抬杆_车牌识别系统不抬杆的原因和解决办法

    目前很多停车场.小区都使用了车牌识别系统来对车辆进行管理,但是在使用的过程中会有一些突发状况,比如车牌识别系统不抬杆.那么车牌识别系统不抬杆怎么办呢?下面南天瑞丰给大家分享车牌识别系统不抬杆的原因和解 ...

  4. 【Linux】12.ssh登录服务器一直被拒绝、以及 ssh连接总自己断开 的解决办法

    ssh登录服务器一直被拒绝.以及 ssh连接总自己断开 的解决办法 1.ssh登录服务器一直被拒绝的解决办法 ssh登录服务器,密码正确但是一直出现下面这种情况: Permission denied, ...

  5. 网易倩女找不到服务器,新倩女幽魂9月21日一直正在连接服务器_新倩女幽魂9月21日服务器一直连接解决办法_玩游戏网...

    明天<新倩女幽魂>就要和大家见面了,相信很多的网友已经迫不及待想在游戏中和居老师来一场偶遇.小编相信明天<新倩女幽魂>服务器一旦开启,一定会有大量的网友涌入,所以一定会有很多的 ...

  6. oracle em 界面乱码,oracle em 按钮乱码解决办法及em网页变成英文

    oracle em 按钮乱码解决办法及em网页变成英文以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 一 oracle ...

  7. oracle忽略除数为0,ora-01476除数为0的解决办法,oracle中decode()的使用

    执行报表查询,固定的一个时间点没有数据,应该是有数据的,把前一个时间节点往前调是有的,往后调也有 bebug报错 把sql放到数据库中,发现提示如截图 ====================== 解 ...

  8. 谷歌浏览器无网络连接 打不开网页解决办法

    不知道用户在使用的时候有没有遇到无法连接网络的问题,今天小编就会与大家一起来分享一下,在使用谷歌浏览器时,如果出现无网络连接的问题时,要如何解决,首先用户可以检查一下自己的网络情况,如果这些都没有问题 ...

  9. 安卓雷曼大冒险一直连接服务器,雷曼大冒险连接不到服务器是什么原因?网络连接失败的原因和解决办法[图]...

    类型:休闲益智 大小:79.13MB 评分:10 平台: 雷曼大冒险连接服务器老失败怎么办?游戏ios版上线不久,很多玩家都在第一时间下载体验了,但是发现服务器连接总是失败,下面是友情手机站小麦整理出 ...

  10. 计算机连接不上蓝牙鼠标,蓝牙鼠标连接不上电脑怎么办_蓝牙鼠标连接不上电脑的解决办法...

    如果我们的电脑安装的是蓝牙鼠标的话,在使用过程中可能会出现的一些问题.近日就有用户反映说自己遇到了蓝牙鼠标连接不上电脑的问题,不知道怎么办,所以今天小编就来为大家分享关于蓝牙鼠标连接不上电脑的解决办法 ...

最新文章

  1. MongoDB 学习笔记四 C#调用MongoDB
  2. DG备库磁盘空间满导致无法创建归档
  3. MPS(主生产计划)
  4. @async注解_史上最全的java spring注解
  5. caffe训练输入数据格式介绍(LMDB/imagelist)
  6. 阿里P7大牛整理!BAT大厂面试基础题集合,成功入职字节跳动
  7. 程序功能:延时(定时)
  8. 在Unity3D项目中接入ShareSDK实现安卓平台微信分享功能(可使用ShareSDK默认UI或自定义UI)...
  9. Spyder里面好像不能用汉字
  10. 和无用代码说再见!阿里文娱无损代码覆盖率统计方案
  11. 因不满被拒,研究员公开 IBM 企业安全软件中的4个 0day
  12. VS2008 安装部署工程的小问题
  13. linux安装windows常用中文字体库
  14. 手写原笔迹输入_手写原笔迹
  15. uni-app 连接蓝牙打印机
  16. mysql 判断邮箱_Java 判断电话号码邮箱代码示例讲解
  17. 【短视频运营】短视频制作流程 ( 视频存稿 | 写脚本 | 拍摄收音 | 提词器 | 后期剪辑 | 前测工具 | 检查违禁词 )
  18. Linux 最全的添加开机启动方法
  19. wo-27s管理员账户和密码_开机密码忘了怎么解决
  20. 影视剧作中的经典桥段部分

热门文章

  1. 多元函数(multivariate function)分析(方向导数和梯度)
  2. matlab 平行,MATLAB判断两条直线平行
  3. python 输出文件中返回码为200的接口的平均响应时间_python-处理日志文件,找出各个接口状态码为 200时的平均响应时间...
  4. 用c语言怎样将swf转化为pdf,利用ABCpdf.NET将网页转换成PDF的方法小结
  5. 为什么都建议学java而不是python-为什么都建议学Java而不是Python?两者有什么区别吗?...
  6. php和python-PHP与Python语言有哪些区别之处?选择哪一个好?
  7. python自动化测试-五大自动化测试的Python框架
  8. python中文叫什么-在python中,quot;~”是什么意思?
  9. python零基础能学吗-初学者必知:零基础学习Python真的能学会吗?
  10. python编程入门-Python编程入门电子书教程,看这几个就够了