- 加载 LoadModule fcgid_module modules/mod_fcgid.so
编辑php.ini
:
date.timezone = Asia/Shanghai
;extension = php_oci8_11g.dll 这个注释删除掉- 在apache web 目录 添加 Options Indexes FollowSymLinks ExecCGI
<Directory "c:/Apache24/htdocs"> ... Options Indexes FollowSymLinks ExecCGI ... </Directory>
- http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 根据wamp位数,下载相应的oracle 位数版本
- 在httpd.conf 文件结尾添加
FcgidInitialEnv PATH "E:/Program Files (x86)/instantclient_11_2;E:/Program Files/wamp/bin/php/php5.5.12;\
C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem"
FcgidInitialEnv SystemRoot "C:/Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:/WINDOWS/Temp"
FcgidInitialEnv TMP "C:/WINDOWS/Temp"
FcgidInitialEnv windir "C:/WINDOWS"
FcgidIOTimeout 64
FcgidConnectTimeout 16
FcgidMaxRequestsPerProcess 1000
FcgidMaxProcesses 50
FcgidMaxRequestLen 8131072
# Location php.ini:
FcgidInitialEnv PHPRC "E:/Program Files/wamp/bin/php/php5.5.12" //php目录
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000<Files ~ "\.php$>"
AddHandler fcgid-script .php
FcgidWrapper "E:/Program\ Files/wamp/bin/php/php5.5.12/php-cgi.exe" .php // php-cgi的执行文件目录,注意:目录如果有空格,在空格前添加右斜线\
</Files> - 开启apache重定向模块
- http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html
时间: 2024-10-13 14:45:48