php-cli no mysql module for non-root

From: DBenson (davebenson[_at_)
Date: 02/28/04


Date: Fri, 27 Feb 2004 17:29:06 -0800

So far I've been unable to find anything that addresses this one...

Basically, if I am logged in as root and issue a "php -m", mysql is in the
list of installed modules. If I log in or su to a normal user and do the
same then mysql is *not* in the list and I cannot use mysql_connect (or any
other mysql function)...

Any ideas on why this is or how to fix it?

Notes:

# php -v
PHP 4.3.3 (cgi-fcgi) (built: Nov 4 2003 14:05:47)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

Module list as root:
bcmath,bz2,calendar,ctype,dba,dbase,ftp,gd,gmp,imap,mysql,openssl,overload,pcre,
posix,session,shmop,sockets,standard,sysvsem,sysvshm,tokenizer,xml,yp,zlib

Module list as non-root:
bcmath,bz2,calendar,ctype,dba,dbase,ftp,gd,gmp,imap,openssl,overload,pcre,posix,
session,shmop,sockets,standard,sysvsem,sysvshm,tokenizer,xml,yp,zlib

Thanks,
DBenson



Relevant Pages

  • Re: Error 1044 Access denied to database
    ... Or perhaps it is just a bug with php or MySql? ... When you installed MySQL you had a root account at the very beginning. ...
    (alt.php)
  • Re: Error 1044 Access denied to database
    ... Or perhaps it is just a bug with php or MySql? ... When you installed MySQL you had a root account at the very beginning. ...
    (comp.lang.php)
  • Re: openSUSE Phpmyadmin
    ... I added the root password here: ... So that does not need to be a real password in any way? ... On the left you will have the database mysql where you could add more ... it in php. ...
    (alt.os.linux.suse)
  • Re: Connect to mysql?
    ... mysql -h localhost -u root -p ... I have installed php and mysql on an apache-server on ... windows and I can't connect to the server. ... I have used earlier versions of mysql and php and got it to work. ...
    (comp.lang.php)
  • mysql_connect() fails - PHP, Apache, MySQL on WinXP
    ... I have Apache 2 parsing and serving PHP files just fine on my winXP ... box, however, when I try to add some mysql database functionality I ... I am able to connect to mysql via the terminal just fine. ... Zend Engine v2.0.0, ...
    (comp.lang.php)