Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

我ap+msql+php安装你看有问题没

[复制链接]
haifreed 发表于 2008-7-21 14:34:44 | 显示全部楼层 |阅读模式
1.安装mysql
按照教程步骤
2.安装apache
测试在浏览器里面输入 http://localhost, 出现  It works表示成功。

3.安装php
APACHE中的conf目录修改httpd.conf
增加如下行:
<IfModule mime_module> 字段里面增加如下两行
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
增加模块:
LoadModule php5_module E:/php-5.2.6-Win32/php5apache2_2.dll

php.ini放在windows目录下面
去掉mysql前面的分号
把php5ts.dll, libmysql拷贝到C:\\windows\\system32里面
测试php是否正确
<?php
phpinfo();
php>

出现undefined mysql_connect错误的原因:
1.没有把libmysql拷贝到C:\\windows\\system32里面
2.没有修改mysql前面的分号
3.修改extend_dir指向lib库

得修改如下内容:
DocumentRoot "E:/www"
<Directory "E:/www">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
</Directory>
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-19 03:20 , Processed in 0.022582 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表