Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 05:05 am EST

Geeklog Forums

Undefined Function mysql_connect()


InnoC

Anonymous
confused
When I run the install.php script, I get the following error message:

Fatal error: Call to undefined function mysql_connect() in /var/geek/system/databases/mysql.class.php on line 120

as have many others, AFAI can tell from the Forums, although most of those seem to be on Windows boxes.

The thing that is perplexing here is that according to phpinfo(), the following relevant options were specified in PHP's configure:
Text Formatted Code
'--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config'

and under the dbx section of php.ini:
Text Formatted Code
supported databases => MySQL
ODBC
PostgreSQL
Microsoft SQL Server
FrontBase
Oracle 8 (oci8)
Sybase-CT
SQLite


The other thing that is perplexing is that I have a wiki up and running, using the same PHP and MySQL with no complaints.

Vital Stats:
Fedora 4, PHP 5.0.4, MySQL 5.0.27, Geeklog 1.4.1, MediaWiki 1.8.2

/var/geek/config.php has
$_DB_host = '10.10.10.40' (I've also tried 'localhost' as is set for the wiki software, with same result)
and I'm telling it to login to the database as 'root', so permissions should not be a part of the problem in the database.

Any help out there?

TIA.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If you search the forums for "RedHat" you'll find some more of these problems. Since Fedora effectively is RedHat, I would assume the same solution applies there, which is to install an additional RPM for MySQL support.

See here, for example.

The reason why the Wiki works is that it may be using the "mysqli" interface. Geeklog uses the older "plain" MySQL interface.

bye, Dirk
 Quote

All times are EST. The time is now 05:05 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content