apache+php 配置
本文配置的条件为:第一,正确安装Apache
第二,正确安装php
配置php
打开php.ini
定义扩展包
extension_dir = "./ext"
打开必要的扩展包
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_xmlrpc.dll
配置apache
打开conf/httpd.conf
配置php模块
LoadModule php5_module D:/Software/Service/php/php5apache2_2.dll
PHPIniDir "D:/Software/Service/php"
配置主目录
DocumentRoot "D:/Software/Service/wwwroot"
<Directory "D:/Software/Service/wwwroot">
添加支持类型
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
添加首页支持的文件
DirectoryIndex index.php index.html
页:
[1]