无法启动我的phpMyAdmin

我创build我自己的便携式服务器,但我不能让它运行phpMyAdmin,MySQL,PHP和Apache运行除了phpMyAdmin。 当我检查Apache的错误日志,它说

[Fri Nov 09 08:54:37 2012] [warn] pid file F:/Drive WebServer/Drive WebServer/bin/Debug/Apache2bak/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library './php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0 [Fri Nov 09 08:54:37 2012] [notice] Apache/2.0.64 (Win32) PHP/5.2.17 configured -- resuming normal operations [Fri Nov 09 08:54:37 2012] [notice] Server built: Oct 18 2010 01:36:23 [Fri Nov 09 08:54:37 2012] [notice] Parent: Created child process 6784 

我手动分配这个F:/php/ext/php_mysql.dll的确切path

 PHP Warning: PHP Startup: Unable to load dynamic library 'F:/php/ext/php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 

但仍然是一样的错误。

我在php.ini中设置了这个选项

 extension_dir = "./" 

另一个错误会popup

 It says libmysql.dll is missing. 

PHP版本:5.2.17

任何帮助,将不胜感激。 ;)

extension_dir =“./”

不。在php.ini中使用相对path是一个非常愚蠢的想法 – PHP的cwd是相当难以预测的。 使用绝对path

无法加载dynamic库“F:/php/ext/php_mysql.dll”

然后有一个权限问题,和/或你有错误的DLL版本,和/或你没有安装的依赖项。

libmysql.dll丢失

那么你有一个失踪的依赖。 这可能与您的mysql服务器安装捆绑在一起,在这种情况下,您只需确保PHP可以在运行时find它 。