Window 7
PHP 5.3.2 win32 - VC6 x86
Apache 2.2.15 win32 no ssl
Mysql 5.1.48 win 64
Visual C++
php.ini has been configured as follow:
doc_root = “C:\Program Files\Apache Software Foundation\Apache2.2\htdocs”
extension_dir = “C:\PHP\ext”
extension=php_mysqli.dll
session.save_path = “C:\Windows\Temp”
Must have missed something. What???
tried with both enabled. No change
extension=php_mysqli.dll
or
extension=php_mysql.dll
?
Done.
No result.
PHP is executing other scripts.
Still getting same error:
cannot load mysql extension.
??
Did you try ?
set the environment variable:
System Properties->Advanced (tab)->Environment Variables (button)->System variables -> scroll down to find ‘path’ and edit it and put ‘C:\php;’. And better restart the computer once and see.
Still getting error?
Then try copying the extension file php_mysql.dll to windows system directory (c:\windows\system) and restart the system then see. Hope this will help you.
Edit: Also check phpmyadmin system requirements:
http://www.phpmyadmin.net/documentation/
First of all, are you sure your other PHP script is running and only phpmyadmin is giving you problem? If other PHP also not being executed then:
Check in Apache:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
And for your document root, AFAIK, you don’t have to set document root in php.ini. It is set in the httpd.conf file in apache. But I am not sure if you are using own compiled PHP then before assigning the doc_root: read the following in php.ini and do accordingly.
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
; http://php.net/doc-root
doc_root =
Then enable all required extensions in php.ini.
Edit:
One more thing, set the environment variable:
System Properties->Advanced (tab)->Environment Variables (button)->System variables -> scroll down to find ‘path’ and edit it and put ‘C:\php;’. And better restart the computer once and see.
confirm
extension=php_mysqli.dll
or shall I activate also
extension=php_mysql.dll
?