[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] MySQL, PHP, and Apache



-----Original Message-----
From: Malcolm McLeary 
Subject: Re: [cobalt-users] MySQL, PHP, and Apache


Hi Guys,

phpinfo() says mysql is supported, but I'm suspicious.

I have a very simple page which is supposed to just open a connection to a
database;


Fatal error: Call to undefined function: mysql_connect() in
/home/groups/home/web/mysql_test.php on line 10


_____________________________________

Malcolm, just because it says that it is configured in, does NOT mean that
is all you need to do.

Chances is that it is configured in as a static library. (.SO), so you will
need to look at your PHP.INI file, and see if you see


;Extensions

extension=mysql.so

If there is a ";" semi colon, remove it, then.

/etc/rc.d/init.d/httpd restart

That works on a RaQ, I don't touch Qubes, but it should be the same. 

Also, you will want to look further down in your "PHPINFO()" for something
that looks like this:

mysql
MySQL Support enabled 
Active Persistent Links  0  
Active Links  0  
Client API version  3.23.54  
MYSQL_MODULE_TYPE  external  
MYSQL_SOCKET  /var/lib/mysql/mysql.sock  
MYSQL_INCLUDE  -I/usr/include/mysql  
MYSQL_LIBS  -L/usr/lib -lmysqlclient  

If you do NOT have it, it won't work.

Good Luck,

Brian