Error: There's no DB server input. 1.6.8

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

peteboyd
Posts: 3
Joined: Thu Dec 07, 2006 1:42 am

Error: There's no DB server input. 1.6.8

Post by peteboyd »

Hello all. Looking forward to using this system, but I keep getting this following error after attempting to install the program.

Error: There's no DB server input.

I have unzipped all files, uploaded them, and changed chmod to 777 for all directories and files for installation only.

I am using localhost as the DB value. Does it require a full host domain or IP address? Everything else is correct in the info.

PHP 4.4.4
MySQL 4.1.21-standard
everything loaded in /faq/ directory
database and admin for mySQL created

Thanks.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which database did you selected in the install script?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
peteboyd
Posts: 3
Joined: Thu Dec 07, 2006 1:42 am

Post by peteboyd »

MySQL 3/4/5 selection from the drop down list.

FYI. I was able to install 2.0, but I would really like to use the stable version.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if 2.0 installs the 1.6.7 release should also install. Are you sure, you did completely the same workflow during the first installation?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
peteboyd
Posts: 3
Joined: Thu Dec 07, 2006 1:42 am

Post by peteboyd »

Absolutely positive. I even deleted and installed twice to see if it was something. Really odd. Oh well.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you entered the database name in the install script?

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

Post by trampoline »

Wow I got the exact same problem, ??? I'm on OS X server I wonder what this is you posted an hour before me and I can't find any refrence to it anywhere else in the forums, you problem l;ooks very similar to mine
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

yes, I found the problem and I'm working on a fix.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15815
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
goldfish_23
Posts: 6
Joined: Thu Dec 14, 2006 1:46 pm

Same Problem

Post by goldfish_23 »

Hi,

I had the same problem... and the fix worked and installation seemed to go okay... but now I get a 500 error when I try to view the faq. Oddly the admin section displays fine.

Any ideas?

p.s. I'm attempting to install 1.6.7. I've got 1.6.6 running on the same server in a different hosting account and that didn't have any problems during or after installation.

p.p.s. Wonderful script Thorsten keep up the wonderful work! We'll donate as soon as we make some money!
http://www.choose-a-domain.com/ - Choose YOUR Domain today!
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: Same Problem

Post by matteo »

Hi
goldfish_23 wrote:I had the same problem... and the fix worked and installation seemed to go okay... but now I get a 500 error when I try to view the faq. Oddly the admin section displays fine.

Any ideas?
in our experience this error (admin ok, user ko) usually means that index.php has been corrupted during upload. Could you look at your webserver logs to give us some more details?

goldfish_23 wrote:p.s. I'm attempting to install 1.6.7. I've got 1.6.6 running on the same server in a different hosting account and that didn't have any problems during or after installation.
FYI: we're quite ready to release 1.6.8. Just check if your issue is a PMF code error or not and then in the next days 1.6.8 will come out.

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
goldfish_23
Posts: 6
Joined: Thu Dec 14, 2006 1:46 pm

error_log

Post by goldfish_23 »

I was unable to find an error log... doesn't seem to have produced one for some reason.

I'm afraid I've uninstalled and installed 1.6.6 as I knew that worked okay for us. Again installation ran smoothly.

I'll try 1.6.8 when it comes out... but I'll use a test account rather than tormenting our customers! ;)
http://www.choose-a-domain.com/ - Choose YOUR Domain today!
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: error_log

Post by matteo »

Hi,
goldfish_23 wrote:I was unable to find an error log... doesn't seem to have produced one for some reason.
if you're running PMF under Apache try to check its error.log file.

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
goldfish_23
Posts: 6
Joined: Thu Dec 14, 2006 1:46 pm

Post by goldfish_23 »

two errors -

Premature end of script headers: /***address***/public_html/faq/index.php
Premature end of script headers: /***address***/public_html/faq/admin/index.php
Premature end of script headers: /public_html/faq/install/installer.php

error: directory is writable by others: (/***address***/public_html/faq/install
error: directory is writable by others: (/***address***/public_html/faq/admin)
error: directory is writable by others: (/***address***/public_html/faq)

Could it have been chmod errors all along?
http://www.choose-a-domain.com/ - Choose YOUR Domain today!
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
goldfish_23 wrote:Could it have been chmod errors all along?
No, usually it depends on some other factors like loaded apache modules and PHP version. Could you post some info about:
  1. your server (OS, Apache version, PHP version);
  2. Are you running CPanel on that server?
  3. The "premature end" is arised on the PHP file or on the Apache configured error document file?
?

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Post Reply