apache2.0.53+php5.0.3+mysql4.1.10+phpMyAdmin2.6.1在winxpsp2下的安装

类别:网站制作 点击:0 评论:0 推荐:

1.软件下载

       apache2.0.53  http://scmy.downloadsky.com/down/apache_2.0.53-win32-x86-no_ssl.msi

         php5.0.3         http://scmy.downloadsky.com/down/php-5.0.3-Win32.zip

       mysql4.1.10   http://yncnc.downloadsky.com:8080/down/mysql-4.1.10-win32.zip

   phpMyAdmin2.6.1 http://http://voxel.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.6.1-pl3.zip

2.安装

     我喜欢把apache,php,mysql都装到c盘上,目录分别是

                        C:\Apache Group\Apache2 

                        C:\php

                         C:\Program Files\MySQL\MySQL Server 4.1

      把phpmyadmin解压到C:\Apache Group\Apache2\htdocs下

3.设置

     1)让apache2支持php5

            通过 开始菜单>Apache HTTP Server 2.0.53>Configure Apache Server>Edit the Apache httpd.conf Configuration File来设置文件httpd.conf    ,在适当位置加入

        LoadModule php5_module "c:/php/php5apache2.dll"
        AddType application/x-httpd-php .php
我加在了这

#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php


#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.

这样php5就以module方式加入了apache

     2)让php5支持mysql

              (1)将C:\php\php.ini-recommended拷贝到c:\windows下改名为php.ini

       找到

                  ;extension=php_mysql.dll

          去掉前面的";"

                 extension=php_mysql.dll

             (2)将以下三个文件

                         C:\php\libmysql.dll

                         C:\php\ext\php_mysql.dll

                         c:\php\ext\php_mysqli.dll

           拷贝到C:\windows\system32下

重起apache,php5就支持mysql了

     3)phpmyadmin的配置

               编辑phpMyAdmin目录下的config.inc.php,加入root的密码

          $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
          $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
          $cfg['Servers'][$i]['password']      = 'xxxxxx';          // MySQL password (only needed

保存,用浏览器打开http:\\localhost\phpmyadmin\index.php,完成对mysql数据库的操作

至此服务器总体设置基本完成,有关安全性等其他设置慢慢再来,

本文地址:http://com.8s8s.com/it/it30773.htm