一、php 目前版本4.3 
1. 将php.ini-dist rem 为php.ini,copy to WINDOWS,copy php4ts.dll to WINDOWS/SYSTEM32,不需要再COPY或者改动其他设置。 2.PHP.INI: register_globals = Off --> on 
extension=php_gd.dll 去掉注释,启动gd库 
extension_dir = ./ --> c:\php\extensions 二、 安装APACHE 目前安装版本2.0.43 
配置conf目录下的httpd.conf文件 #安装apache模块方式添加: 
LoadModule php4_module c:/php/sapi/php4apache2.dll 
AddType application/x-httpd-php .php 
AddType application/x-httpd-php .php3  #安装cgi方式添加: 
ScriptAlias /php/ "c:/php/" 
AddType application/x-httpd-php4 .php 
AddType application/x-httpd-php4 .php3 
Action application/x-httpd-php4 "/php/php.exe" #增加默认启动文档: 
DirectoryIndex index.html增加为: 
DirectoryIndex index.html index.htm index.php index.php3 #让apache2默认中文显示 
#添加: 
AddLanguage zh-cn .cn 
DefaultLanguage zh-cn 
#修改: 
AddDefaultCharset ISO-8859-1 ---> AddDefaultCharset GB2312 
########################################### 测试文件info.php: <? 
phpinfo() 
?> 在浏览器中输入http://localhost/info.php 三、MySQL安装 1.默认安装路径为:c:\mysql 2.运行 c:\mysql\bin\winmysqladmin ,输入用户名,密码 //如果没有该服务:打开“运行”输入C:\mysql\bin\mysqld-nt.exe –install 。然后打开“管理工具”->“服务”,找到“mysql”服务,启动它。重启windows

解决方案 »

  1.   

    安装apache
    在conf目录下又一个http.conf
    打开查找写servername localhost
    然后加上   ScriptAlias /php/ "c:/php/" //你的php路径
       AddType application/x-httpd-php .php
       Action application/x-httpd-php "/php/php.exe"
    保存http.conf安装mysql 启动
     INFO.PHP 放在apache安装目录的 htdoc下
      

  2.   

    怎么把程序写进注册表根键,使其首先自动运行?在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run新建一字符串值名称为你程序的名称,值为程序路径
      

  3.   

    info.php放进 apache 的htdoc 下,
    下载apache 的msi安装文件,装过后,服务里有apache启动选项,默认是自动