[OFBiz] Users - php can't get mysql module

Si Chen schen at graciousstyle.com
Thu Aug 19 14:27:09 EDT 2004


Oops.  Sent this to the wrong list.  Sorry guys. :-[

Si Chen wrote:

> Hello everyone--I forgot how to install php for apache!
>
> Last year I set up an RH9 server with apache, mysql, and php.  Now I'm 
> trying to do it again, and I can't get PHP to talk to mysql!  Both 
> machines are running RH9, apache 2.0.40, and I have installed 
> php-4.2.2-17.rpm and php-mysql-4.2.2-17.rpm installed on both.  When I 
> try to do a mysql_connect, I get:
>
> Fatal error: Call to undefined function: mysql_pconnect() in 
> /var/www/html/test.php on line 7
>
> With phpinfo() I see the following list for one machine in the 
> Configuration section:
> PHP Core yp  xml  wddx  standard  sockets   shmop  session  pspell   
> posix  pcre   openssl   iconv  gmp  gettext  gd  ftp  exif  domxml  
> dio  dbx  dba  curl  ctype  calendar  bz2 bcmath zlib  mysql  imap  ldap
> The other one shows:
> PHP Core  yp  xml  wddx  standard  sockets  shmop  session  pdprll  
> podic  pcre  openssl  iconv  gmp  gettext  gd ftp  exif  domxml  dio   
> dbx  dba  curl  ctype  calendar  bz2  bcmath  zlib imap ldap  pgsql
>
> I also see on the configure command section for my php 
> "with-mysql=shared,/usr".
>
> The Mysql manual says "This means that your PHP version isn't compiled 
> with MySQL support..."  It then says I can compile a dynamic MySQL 
> module and load it into PHP or recompile PHP with built-in Mysql 
> support.  I do find the mysql.so in /usr/lib/php4/mysql.so and 
> /etc/hp.d/mysql.ini.  What else do I need?  After installing the rpm, 
> is there another step to set up php for mysql?
>
> I can't believe I forgot this! :-[   Please help... :-)
>
> Si
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
> For additional commands, e-mail: users-help at ofbiz.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
For additional commands, e-mail: users-help at ofbiz.dev.java.net






More information about the Users mailing list