JF0 2019-12-01
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同一目录)
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh