Page 1 of 1
Installation problem/PHP Ext issue (I've editied php.ini)
Posted: 15 Aug 2006, 17:31
by btenpenny
I'm trying to get mantis working on Windows XP for evaluation.
I've got a functioning Apache/PHP/MySQL installation (Bugzilla is installed and works correctly)
When I run install.php, the first screen passes, then when I put in the database information, I get a red "bad" in "Checking PHP support for database type " where is says "Database not supported by PHP..."
I've searched on here, and that lead me to download the PHP-MySQL connector pack from MySQL. I put the libmysql.dll in the windows\system32 (system path) and put the php_mysql and php_mysqli files in the extensions dir of my php installation.
And yet, I still get the same error.
I feel like I'm missing something. Any help would be greatly appreciated.
Forgot to list versions
Posted: 15 Aug 2006, 17:37
by btenpenny
PHP 5.04
Mantis 1.0.5
MySQL 5.0.24
Posted: 15 Aug 2006, 18:35
by btenpenny
Ok, I've solved my initial problem (system was using a php.ini in c:\windows, rather than the php install directory).
The tip about creating a info.php containing the string
<?php phpinfo(); ?>
Pointed me in the right direction.
Thanks.
One step forward, but still broken.
Posted: 15 Aug 2006, 19:40
by btenpenny
Now that I've resopved the location of the relevant php.ini, I'm getting an error when Apache loads, telling me (2 times each) that it can't load the php_mysql.dll and the php_mysqli.dll.
Looking around at some websites, it looks like this might be related to a problem with the version of the libmysql.dll that it's trying to use. There are several different versions around and I THINK I've tried all of them that I could locate, in a variety of locations, all to no avail.
I really think I'm one step from having this working, but I'm about worn out on this problem. Anyone have any ideas?
Re: One step forward, but still broken.
Posted: 15 Aug 2006, 20:17
by shark
btenpenny wrote:Now that I've resopved the location of the relevant php.ini, I'm getting an error when Apache loads, telling me (2 times each) that it can't load the php_mysql.dll and the php_mysqli.dll.
...
I don't have either of those files on my Windows 2000 server that is running apache/php/mantis/mySQL
Posted: 15 Aug 2006, 20:19
by btenpenny
They weren't required for PHP4, but they are for PHP5 because of some changes in the way they are doing things. If you have PHP4, you wouldn't need those files.
Posted: 15 Aug 2006, 20:41
by shark
btenpenny wrote:They weren't required for PHP4, but they are for PHP5 because of some changes in the way they are doing things. If you have PHP4, you wouldn't need those files.
...and I don't have php5, so that explains that. Sorry :/
Posted: 15 Aug 2006, 20:52
by btenpenny
No problem, thanks for trying to help!
Any other ideas? I'm going out of my head here.
Posted: 15 Aug 2006, 20:57
by shark
Have you tried searching through the known bugs?
http://bugs.mantisbt.org/main_page.php
Posted: 16 Aug 2006, 11:42
by btenpenny
Turns out there were 2 different versions of php5ts.dll in play on this machine, one of which was too old. Dependency Walker helped me resolve that issue.
I'll report back on my next problem soon. :)
Posted: 16 Aug 2006, 18:31
by btenpenny
Ok, got everything working. as far as I could tell, there was no way to get those particualr versions of things working correctly. One version of php5ts.dll would cause function call errors, but the newer version would cause a syntax error doue to a different dependency issue.
I finally went to
http://www.apachelounge.com and went through their step by step guides for getting Apache 2.2, PHP and MySQL working on Windows and everything works.