我对这个不是很懂,能不能报我看一下啊httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.82.203.179 for ServerName[Thu Oct 07 10:49:00 2010] [notice] Child 252: Child process is running[Thu Oct 07 10:49:01 2010] [notice] Child 252: Acquired the start mutex.[Thu Oct 07 10:49:01 2010] [notice] Child 252: Starting 64 worker threads.[Thu Oct 07 10:49:01 2010] [notice] Child 2372: Released the start mutex[Thu Oct 07 10:49:02 2010] [notice] Child 252: Starting thread to listen on port 80.[Thu Oct 07 10:49:14 2010] [notice] Child 2372: All worker threads have exited.[Thu Oct 07 10:49:14 2010] [notice] Child 2372: Child process is exiting[Thu Oct 07 10:50:13 2010] [error] [client 127.0.0.1] PHP Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in D:\\WebsiteWorld\\www\\test.php on line 2, referer: http://127.0.0.1/[Thu Oct 07 11:18:30 2010] [error] [client 127.0.0.1] PHP Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in D:\\WebsiteWorld\\www\\test.php on line 2, referer: http://127.0.0.1/[Thu Oct 07 11:18:31 2010] [error] [client 127.0.0.1] PHP Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in D:\\WebsiteWorld\\www\\test.php on line 2, referer: http://127.0.0.1/
用phpinfo() 看下 Loaded Configuration File 这一项与你修改的php.ini文件是否相同
httpd.conf :
LoadModule php5_module "D:/WebsiteWorld/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/WebsiteWorld/php5"
php.ini :
extension_dir = "D:/WebsiteWorld/php5/ext/"
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_mbstring.dll(这个我自己觉得好像不相关)
再就是添了path环境变量,mysql和php都可以在dos下使用
用户名/密码正确吗?