`
aaron_ch
  • 浏览: 172516 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Apache2+PHP5.2+Mysql development environment set up

    博客分类:
  • PHP
阅读更多

1.OS: xp
2.Server:Apache2.0.59    download:   http://httpd.apache.org/download.cgi
3.Database:Mysql5.0.16  download   http://www.mysql.com/download
4.PHP5.2 download http://php.net

Modify Apache conf/ http.conf   
一.add below to support php
   LoadModule php5_module c:/work/php5/php5apache2.dll
   PHPIniDir "c:/work/php5"
二.for parse the suffix:php you will also add those
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
  AddType application/x-httpd-php .html

三.if want to support CGI,add below,then all
 ScriptAlias /cgi-bin/ "C:/Work/wwwroot/cgi-bin/"
 \< Directory "C:/Work/wwwroot/cgi-bin"    AllowOverride None>
    Options +ExecCGI
    Order allow,deny
    Allow from all
\</Directory>
AddHandler cgi-script .cgi .pl

Modify the php.ini
一.add the ext path to parse some dll
   extension_dir = "C:\Work\php5\ext\"
二.use some dlls,need uncomment
  extension=php_gd2.dll
  extension=php_mysql.dll
三.use PEAR
;***** Added by go-pear
include_path=".;C:\Work\php5\pear"

Note: due to php reasons,you need download the go-pear.phar from http://go-pear.org/  file in PEAR folder then run the go-pear.bat

分享到:
评论
3 楼 imjl 2007-06-03  
我习惯用xampp
2 楼 yueliangdao0608 2007-05-14  
http://blog.chinaunix.net/u/29134/showart_300810.html
1 楼 noble 2007-04-06  
应该再补充安装ZendOptimizer

相关推荐

Global site tag (gtag.js) - Google Analytics