Installation problem/PHP Ext issue (I've editied php.ini)

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

Installation problem/PHP Ext issue (I've editied php.ini)

Post 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.
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

Forgot to list versions

Post by btenpenny »

PHP 5.04
Mantis 1.0.5
MySQL 5.0.24
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

Post 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.
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

One step forward, but still broken.

Post 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?
shark
Posts: 43
Joined: 12 Jul 2005, 22:23

Re: One step forward, but still broken.

Post 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
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

Post 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.
shark
Posts: 43
Joined: 12 Jul 2005, 22:23

Post 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 :/
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

Post by btenpenny »

No problem, thanks for trying to help!


Any other ideas? I'm going out of my head here.
shark
Posts: 43
Joined: 12 Jul 2005, 22:23

Post by shark »

Have you tried searching through the known bugs? http://bugs.mantisbt.org/main_page.php
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

Post 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. :)
btenpenny
Posts: 18
Joined: 15 Aug 2006, 17:12

Post 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.
Post Reply