Hello, I am new to this list and actually just testing to see whether MediaWiki is right for my newsroom.
I have what seems to be a common installation/configuration problem, but I can't seem to find a solution via the typical Googl-ing and forum posts (and the archived threads from this list) ...
We are running a Windows XP IIS 5.1 server ... I have PHP (I am using version 5.2) configured to run on that server as CGI scripts (IIS configurations point to the php-cgi.exe file in my PHP directory) ... and I am running MySQL 5.1.
A typical PHP test page (where you just have the line "phpinfo();" in there and you get the big screen with all the PHP info) works fine ... BUT it doesn't seem to be able to talk to MySQL.
At the bottom of the phpinfo page, I see this:
----- PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Program Files/PHP/ext/php_mysql.dll' - Invalid access to memory location. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Program Files/PHP/ext/php_mysqli.dll' - Invalid access to memory location. in Unknown on line 0 -----
And the config page of my Wiki says this, along with the above:
---- Please include all of the lines below when reporting installation problems.
PHP 5.2.0 installed Could not find a suitable database driver! For MySQL, compile PHP using --with-mysql, or install the mysql.so module For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module
----
Now, some disclaimers:
- php.ini has been configured so it points to the right extensions folder. I use right slashes. extension=php_mysql.dll and extension=php_mysqli.dll are both uncommented.
- I've tried copying libmySQL.dll into my PHP directory, my PHP extensions directory and my Windows directory
- Other extensions, like php_socket.dll, seem to work and reside in the extensions file.
- both PHP and MySQL are in the PATH of my Windows Environmental Variable settings.
Any ideas? Thanks in advance.
-Jeremy Milarsky Database Specialist South Florida Sun-Sentinel Fort Lauderdale, FL jmilarsky@sun-sentinel.com
Does the location of the php.ini file displayed in the output of phpinfo correspond to the actual location of php.ini? If so have you un-commented the line which includes the mysql dll file?
Arthur arthur@assys.net
Unless you are using IIS for something else, I would say ditch IIS and use apache http://www.devside.net/guides/windows
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Milarsky, Jeremy Sent: Monday, January 22, 2007 1:54 PM To: 'mediawiki-l@lists.wikimedia.org' Subject: [Mediawiki-l] Installation help
Hello, I am new to this list and actually just testing to see whether MediaWiki is right for my newsroom.
I have what seems to be a common installation/configuration problem, but I can't seem to find a solution via the typical Googl-ing and forum posts (and the archived threads from this list) ...
We are running a Windows XP IIS 5.1 server ... I have PHP (I am using version 5.2) configured to run on that server as CGI scripts (IIS configurations point to the php-cgi.exe file in my PHP directory) ... and I am running MySQL 5.1.
A typical PHP test page (where you just have the line "phpinfo();" in there and you get the big screen with all the PHP info) works fine ... BUT it doesn't seem to be able to talk to MySQL.
At the bottom of the phpinfo page, I see this:
----- PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Program Files/PHP/ext/php_mysql.dll' - Invalid access to memory location. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:/Program Files/PHP/ext/php_mysqli.dll' - Invalid access to memory location. in Unknown on line 0 -----
And the config page of my Wiki says this, along with the above:
---- Please include all of the lines below when reporting installation problems.
PHP 5.2.0 installed Could not find a suitable database driver! For MySQL, compile PHP using --with-mysql, or install the mysql.so module For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module
----
Now, some disclaimers:
- php.ini has been configured so it points to the right extensions folder. I use right slashes. extension=php_mysql.dll and extension=php_mysqli.dll are both uncommented.
- I've tried copying libmySQL.dll into my PHP directory, my PHP extensions directory and my Windows directory
- Other extensions, like php_socket.dll, seem to work and reside in the extensions file.
- both PHP and MySQL are in the PATH of my Windows Environmental Variable settings.
Any ideas? Thanks in advance.
-Jeremy Milarsky Database Specialist South Florida Sun-Sentinel Fort Lauderdale, FL jmilarsky@sun-sentinel.com
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
We have a wiki running very well under IIS.
The message "Invalid access to memory location." is not IIS related. It indicates that the mysql extension to PHP tried to access a segment of memory that is not valid to it. It may indicate a corrupted DLL file, mixed versions or other configuration errors.
I also suggest checking if the php.ini that is shown in phpinfo is the one you're editing. This is a common mistake.
Another thing: are you sure you need to load php_mysqli.dll? I'm not familiar with this extension, but I use only php_mysql.dll.
I'll send you by private e-mail the php.ini we use.
2007/1/22, Fernando Correia fernandoacorreia@gmail.com:
We have a wiki running very well under IIS.
The message "Invalid access to memory location." is not IIS related. It indicates that the mysql extension to PHP tried to access a segment of memory that is not valid to it. It may indicate a corrupted DLL file, mixed versions or other configuration errors.
I also suggest checking if the php.ini that is shown in phpinfo is the one you're editing. This is a common mistake.
Another thing: are you sure you need to load php_mysqli.dll? I'm not familiar with this extension, but I use only php_mysql.dll.
mediawiki-l@lists.wikimedia.org