真是从来没遇到过这种情况,诚心请教下各位
安装过程没有错误提示,于是做了个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
安装过程没有错误提示,于是做了个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
浏览器中运行是什么情况呢
如果是这样,那会访问不到,你要做的就是给localhost设置一个虚拟空间。
设置了虚拟空间,localhost就会失效,这个知识点还是我遇到问题,传智播客的php老师王超平告诉的。
你看是不是这个问题?