There's no DB server input.

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
trampoline
Posts: 7
Joined: Thu Dec 07, 2006 3:16 am

There's no DB server input.

Post by trampoline »

Mac OS X server 10.4
PHP 5.1
sql 4.1.1
Ihave lots of php /sql stuff running but cannot install this one ?
I get
There's no DB server input.
on install
globals off etc safe mode off....
any ideas ?
I have chmod the whole FAQ directory ...
any help realy appreciated...
Thorsten
Posts: 15726
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

do you see the databases in a phpinfo() page?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
trampoline
Posts: 7
Joined: Thu Dec 07, 2006 3:16 am

Post by trampoline »

Thorsten wrote:Hi,

do you see the databases in a phpinfo() page?

bye
Thorsten
which page is that ? i mean i can load phpinfo if you mean the default html config page but non of my databases are listed there all work and are used for php web sites though ??....
Thorsten
Posts: 15726
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I found the bug and I'm working on a fix.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
trampoline
Posts: 7
Joined: Thu Dec 07, 2006 3:16 am

Post by trampoline »

Thorsten wrote:Hi,

I found the bug and I'm working on a fix.

bye
Thorsten
Oh that's good thanks for telling me I thought I had gone mad there for a moment, thanks for your very prompt support, let me know when you find a fix,
best wishes,
Trampoline
Thorsten
Posts: 15726
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

here's the patch:

Please open the file install/installer.php and go to line 317. Just change the following code from

Code: Select all

<?php
	// check what extensions are loaded in PHP
    foreach ($supported_databases as $extension => $database) {
        if (extension_loaded($extension) && version_compare(PHP_VERSION, $database[0]) >= 0) {
            if ($extension = 'mysqli' && ini_get('zend.ze1_compatibility_mode')) {
                continue;
            }
            printf('<option value="%s">%s</option>', $extension, $database[1]);
        }
    }
?>
to

Code: Select all

<?php
	// check what extensions are loaded in PHP
    foreach ($supported_databases as $extension => $database) {
        if (extension_loaded($extension) && version_compare(PHP_VERSION, $database[0]) >= 0) {
            if ($extension == 'mysqli' && ini_get('zend.ze1_compatibility_mode')) {
                continue;
            }
            printf('<option value="%s">%s</option>', $extension, $database[1]);
        }
    }
?>
and try it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
trampoline
Posts: 7
Joined: Thu Dec 07, 2006 3:16 am

Post by trampoline »

Nope no go
Thorsten
Posts: 15726
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it has to work, I tested it here. Did you really added the patch, You have to add a "=" in the line 321.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
trampoline
Posts: 7
Joined: Thu Dec 07, 2006 3:16 am

Post by trampoline »

Thorsten wrote:Hi,

it has to work, I tested it here. Did you really added the patch, You have to add a "=" in the line 321.

bye
Thorsten
yes i patched it just as you suggested, saved the patched file, I even restarted the web server....
its 3.00 in the morning here so I'm off to bed any moment, but I'll reply if I'm up,
Thanks,
Trampoline
trampoline
Posts: 7
Joined: Thu Dec 07, 2006 3:16 am

Post by trampoline »

Well I don't get it, it worked first time today and I've done nothing new since last night !
So your fix worked !
Thanks,
Trampoline
Post Reply