真是从来没遇到过这种情况,诚心请教下各位
安装过程没有错误提示,于是做了个test.php <?php phpinfo(); ?>
提示500错误
运行 php -v
返回了一堆错误 Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.C:\Documents and Settings\Administrator>php -v
PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mhash: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mssql: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP Deprecated:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and great
er in Unknown on line 0Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in
 Unknown on line 0
PHP 5.3.24 (cli) (built: Apr 10 2013 18:32:42)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend TechnologiesWindowsPHP

解决方案 »

  1.   

    不太明白呢,,现在是不通运行PHP,百度了一下,那些解决方法均不适合我这种情况
      

  2.   

    php -v 是什么意思啊
    浏览器中运行是什么情况呢
      

  3.   

    php  -v是在dos时查看php版本信息的,在浏览器里提示500错误
      

  4.   

    你是不是在Apache\conf\extra下的httpd-vhosts.conf中设置了虚拟空间(但没有设置localhost的虚拟空间),而你访问是用localhost/test.php进行访问的?
    如果是这样,那会访问不到,你要做的就是给localhost设置一个虚拟空间。
    设置了虚拟空间,localhost就会失效,这个知识点还是我遇到问题,传智播客的php老师王超平告诉的。
    你看是不是这个问题?
      

  5.   

    不是的,,问题原因找到了,以前有人在服务器上配置过php环境,但是没成功。我装的时候又没把以前的设置清除干净,所以出现错误。清除了重新安装fastcgi,php。就可以正常运行了。谢谢各位热心解答