windows上apache配置php5
windows上apache配置php5
重点:1、php5里的php.ini的extension_dir要改为绝对目录(带‘/‘斜杠),如果只是写个ext,在apache+mod_php里面是不会加载php扩展的。
2、httpd.conf要指定PHPIniDir "C:/Users/crl6/app2/php5" #你的php安装目录
其他设置:
1、httpd.conf添加
LoadModule php5_module "C:/Users/crl6/app2/php5/php5apache2_4.dll"
AddType application/x-httpd-php .php
DirectoryIndex 改为 DirectoryIndex index.html index.php
如果启用了php curl扩展,但是httpd启动报告缺失dll,则将php目录的ssleay32.dll、libeay32.dll、libssh2.dll、icuuc54.dll、icudt54.dll、icuin54.dll、icuio54.dll放置在apache\bin目录中(和httpd.exe同一目录)
相关推荐
Phplayers 2020-09-05
Noneyes 2020-11-10
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23