Cannot get PHP to work with mySQL on Vista 64

I run a Vista 64 window and try to configure Joomla using IIS7 (I like Joomla, I want to have some asp.net components on my website, so I want to use IIS7, not Apache). This is my first time installing both php and mysql, so it is very possible that I am doing something obviously wrong ... although I think I have tried enough diagnostic steps (described below) that there is nothing obviously wrong for me ...

I installed PHP (32 bit, 5.2.8) and it seems to work fine: I have test.php that displays phpinfo on a web page served by IIS7.

I also installed mySQL (32 bit, 5.1.31, downloaded from http://dev.mysql.com/downloads/mysql/5.1.html#win32 ). This works fine too (I can connect to it using MySQL admin).

I installed php.ini and did not include the mySQL extension. If I do php -m from the command line, I see mysql in the list. However, using phpinfo (either from the command line (php -info) or through IIS (in the test.php file)) there is no mysql section. Since mysql does not even appear in the php call on the command line, I don’t think this has anything to do with IIS - just installing mysql and php on vista.

I did not install mysql 64bit because I have a 32-bit php installation and since mysql 32 bit works fine, I assume this is not a problem. There seems to be no official 64-bit version of php, so I installed it (and, again, this works fine).

I currently have UAC disabled, so no problem.

If I put the half-wave back before the extension = php_mysql.dll in my php.ini, then when you run php -m, the mysql module will not appear. If I take it again, then it will appear. Therefore, at least I am sure that I am modifying the correct php.ini.

I copied libeay32.dll, libmysql.dll and php_mysql.dll to c: \ windows \ system32. I took them out and this does not seem to affect the output of php -m (i.e. Mysql still appears there if the module is uncommented from php.ini).

dlls ibeay32.dll, libmysql.dll php_mysql.dll c:\windows\sysWOW64; .

, mysql php -info . , , mysql php -m, php -info? , , , php mysql?

!

+3
6

.

libmysql.dll sysWOW64. DLL , system32. , php32 64- .

, , php -info - mysql. , phpinfo php, IIS, mysql.

, mysql php -info , , .

+2

php, xampp http://www.apachefriends.org/en/xampp.html

, .

apache/php/mysql.

, apache php, mysql, IIS mysql

+1

, CLI IIS php.ini? POSIX- php . , php.ini php Windows.

php.ini(, memory_limit 129M 128M ) ini_get, , php @IIS/@CLI. php @IIS, php.ini C: - , ( PATH, C:\Windows\php.ini).

0

, . x64 , , , , .

0

Vista 64 libmysql.dll php system32 mysql , mysqladmin joomla .

0

IIS7 32- , " 32-" true ( false). php .

0
source

Source: https://habr.com/ru/post/1703571/


All Articles