Author Topic: bugs.inc on line 80  (Read 5262 times)

Offline treaves

  • Newbie
  • *
  • Posts: 3
bugs.inc on line 80
« on: November 03, 2006, 10:56:34 AM »
I have a new install on OS X. Apache2, php5. When I hit the homepage, I get Error No. [1f4], and my log shows:
[Fri Nov 03 10:51:14 2006] [error] [client 75.197.55.86] PHP Notice: DB Error: extension not found in /Library/WebServer/roundcube/program/include/bugs.inc on line 80


What else do I need to install?

Offline treaves

  • Newbie
  • *
  • Posts: 3
Re: bugs.inc on line 80
« Reply #1 on: November 03, 2006, 11:06:48 AM »
I got past that issue. It was unable to create a log file. Now I get:
[03-Nov-2006 11:02:57 -0500] DB Error: DB Error: extension not found in /Library/WebServer/roundcube/program/include/rcube_db.inc on line 105

Offline DaveQB

  • Newbie
  • *
  • Posts: 5
Re: bugs.inc on line 80
« Reply #2 on: January 05, 2007, 02:16:51 AM »
Same problems here.

Thanks for the heads on one problem number 1. I went through and fixed all the perms [using ACL]

Anyone find the answer for number 2 ?

Debian Sarge here.


Offline jpingle

  • Jr. Member
  • **
  • Posts: 77
Re: bugs.inc on line 80
« Reply #3 on: January 05, 2007, 07:21:26 AM »
The log is implying that the DB extension for PHP (MySQL, Postgres, whatever DB you want) is not loaded into PHP via extensions.ini or compiled in. Check the output of phpinfo() to ensure you have a database extension available.

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: bugs.inc on line 80
« Reply #4 on: January 05, 2007, 07:50:23 AM »
Jpingle

Please explain how to use phpinfo().

Offline jpingle

  • Jr. Member
  • **
  • Posts: 77
Re: bugs.inc on line 80
« Reply #5 on: January 05, 2007, 08:13:13 AM »
You can make a new file, call it "test.php" and inside just put this:

Code: [Select]
<? phpinfo(); ?>
And then upload it to your site and view it via a web browser.

That will show you a nicely formatted table with more information than you ever cared to know about your PHP installation :)

On the page it should list modules that are loaded or options compiled in. If you do a search on the page for "mysql" and you find nothing, then you know the MySQL module is missing.

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: bugs.inc on line 80
« Reply #6 on: January 05, 2007, 08:22:22 AM »
Right on, I was trying to figure out how to make that work.  :)

Thanks

Offline jpingle

  • Jr. Member
  • **
  • Posts: 77
Re: bugs.inc on line 80
« Reply #7 on: January 05, 2007, 09:06:10 AM »
Be sure to remove the test.php file when you are done. There is a lot of information in phpinfo() and if someone stumbles upon that page, it could be used to craft an attack against your server. The page itself is not vulnerable to anything, but it does provide information that could narrow down an attack and potentially make it more likely to succeed.


Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: bugs.inc on line 80
« Reply #8 on: January 05, 2007, 09:08:58 AM »
Thanks