想把dv论坛转为dz的论坛 dz论坛安装成功后  运行转换程序 提示没有配置好 PHP 与 MS SQL Server 数据库的连接!
如果您对服务器有管理权限,可以参考下面的提示操作。如果您使用的是虚拟主机,请联系空间管理商解决。
如在 win 下运行本程序,需要对 php.ini 进行修改,把 ;extension=php_mssql.dll 前面的分号去掉,保存修改后重启Web服务!(我在文件里面找不到这句话,如实自己加上这句话,然后再PHP安装目录里面的\PHP\ext里面放上php_mssql.dll 这个文件 本身没有在网上D下来的
如在 Linux 下运行本程序,需要给 php 增加 mssql 的支持模块!
按照上面的我修改了 出现如下的错误
FastCGI Error
The FastCGI Handler was unable to process the request. 
--------------------------------------------------------------------------------Error Details:The FastCGI process exceeded configured activity timeout 
Error Number: 258 (0x80070102). 
Error Description: µÈ´ýµÄ²Ù×÷¹ýʱ¡£ 
HTTP Error 500 - Server Error.
Internet Information Services (IIS)去掉这句话就可以运行PHP文件
PHPinfo()PHP Version 5.3.5
Compiler  MSVC9 (Visual C++ 2008)  
Architecture  x86  
Configure Command  cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"  Server API:  CGI/FastCGI  
Virtual Directory Support:  disabled希望哪位大哥帮忙解决下!

解决方案 »

  1.   

    下载个phpnow装一下,很轻松,把php-apache2handler.ini 里面的  把 ;extension=php_mssql.dll 前面的分号去掉,保存修改后重启apache服务! 保证不会出错/
      

  2.   

    我的是windows服务器 下载这个软件和其它的网站直接没有冲突吗?
      

  3.   


    确认一下你的PHP版本,另外要确认php_mssql.dll的版本,两者的PHP版本必须要一致才可以正常运行,参考:Windows 2003 Server + PHP + MS SQL系统配置 
      

  4.   


    PHP 5.3.X 连接MS SQL Server
    最近做的一个项目需要用PHP连接到MS SQL Server,在公司安装的PHP是5.2版的,Windows平台的PHP Zip安装包解压后的扩展目录(ext)里有自带连接到SQL Server的驱动文件-php_mssql.dll,只需先将PHP目录的ntwdblib.dll拷贝到系统盘下windows/system32,然后修改php.ini,取消;extension=php_mssql.dll 前面的;,重启Apache服务器就可以了。但是家里用的是WAMP集成安装包,PHP版本是5.3.2,扩展目录里没有php_mssql.dll,而且连ntwdblib.dll也没有,从PHP 5.2分别拷贝这两个文件到扩展目录和系统目录,重启Apache,提示mssql模块和php编译版本不匹配(如下图):在网上搜索了一下PHP 5.3.X 连接SQL Server的办法,有人也遇到了这个问题 (PHP Unable to Connect to MSSQL),原来PHP 团队在PHP 5.3 中移除了SQL Server的驱动和库,而微软自己开发了针对PHP的SQL驱动(SQL Server Driver for PHP),但是1.0版的不支持 PHP 5.3,1.1版本才支持,但即使用这种办法,也不是官方推荐的原生的支持,如果要用直接支持的办法,可以用ODBC来连接。这位作者对PHP 5.3连接 SQL Server的问题颇有研究,发了一系列的文章来说明问题的来龙去脉(No SQL Server Library for PHP 5.3 Just Yet,Installing PHP 5.3 on Microsoft IIS,Finally a working SQL Server Driver for PHP 5.3,Installing FastCGI and PHP for IIS 6.0)。 Finally a working SQL Server Driver for PHP 5.3 这篇文章的留言中有人给出了 他自己编译的PHP 5.3.0 连接 MS SQL Server所需的 php_mssql.dll 文件,但是这个文件之能用于VC9 PHP(何为VC9 PHP,请看补充内容)。在SQL Server in PHP 5.3  这篇帖子的回复里,有人提到PHP 5.3.1里面有 php_mssql.dll,于是到PHP 官方网站,却只提供PHP 5.2和最新的PHP 5.3.2下载,最后还是在WAMP网站提供的 PHP Addon中找到了PHP 5.3.1,拷贝mssql扩展文件到WAMP 的PHP扩展目录,问题解决!补充:关于VC9 和VC6 版本的PHP
    If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHPIf you are using PHP with IIS you should use the VC9 versions of PHPVC6 Versions are compiled with the legacy Visual Studio 6 compilerVC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installedDo NOT use VC9 version with apache.org binaries 
      

  5.   

    还是不明白怎么操作 
    现在我是php_mssql.dll的版本不对还是什么问题?
    应该如何操作呢
      

  6.   

    把php_mssql.dll除了放在ext下,再放一份system32下,试一下可不可以
    如果不行,有可能php_mssql.dll和php的版本不对应