B.下载PHP的zip包,若解压到E:/php
将php.ini.dist 另存为php.ini
打开php.ini
[bash]
extension_dir="e:\php\ext"
[/bash]
copy php.ini 到c:/windows 下
copy libmysql.dll 到c:/windows/system32下
C. 打开apache的配置文件httpd.conf
[bash]
LoadModule php5_module "e:\php\php5apache2.dll"
PHPIniDir "e:\php"
DirectoryIndex index.php
AddType application/x-httpd-php .php
[/bash]
D.增加环境变量
e:\php;e:\php\ext
昨天在用apache2.X 配置时
回复删除修改 DocumentRoot之后~
访问一直是403错误
查了下~
原来问题是出在这里
[bash]
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
[/bash]
改为如下即可
[bash]
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
[/bash]
配置PHP时
回复删除需将PHP下的DLL复制到system32目录下~
否则load PHP的extension时
会有可能失败~
另外
启用命令行时
若需load exif extension
需将 mb 的放此之前
因为exif用到了mb
所以必须先加载mb~
Apache URL 重写
回复删除在apache配置文件中指定重写目录
[bash]
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
[/bash]