2006/02/23

learn:配置APACHE和PHP

tags:php,安装,配置
下载最新的Apache for win 安装版
下载最新的php for win 解压版(没有找到安装版)

修改配置文件
配置 apache的配置文件 httpd.conf
增加
PHPIniDir "D:/php-5.1.2-Win32/" #php程序路径
LoadModule php5_module "D:/php-5.1.2-Win32/php5apache2.dll" #配置php模块
AddType application/x-httpd-php .php #增加对.php文件的处理
DirectoryIndex index.html index.html.var index.php #增加默认页查找项
DocumentRoot "D:/htdocs/php" #修改网站文件存放目录
配置 php的配置文件 php.ini
去掉php.ini.dist的dist后缀
extension_dir = "D:/php-5.1.2-Win32/ext" ;设置扩展项查询路径
;去掉需要的扩展项之前的注释
extension=php_mbstring.dll
extension=php_mysql.dll



--
[:p] --飞扬.轻狂 [fallseir.lee]
http://fallseir.livejournal.com
http://feed.feedsky.com/fallseir

没有评论: