note 21906 added to ref.mysql
| From: | pvenable at cs dot cmu dot edu | Date: | Thu, 30 May 2002 21:43:05 +0000 |
| Subject: | note 21906 added to ref.mysql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31242@lists.php.net to get a copy of this message | ||
I had some difficulties installing PHP with MySQL support on RedHat-7.1, but it works at last. :)
Here are a few of the unexpected things I had to do to get it working:
After installing apache, mysql, and php4, I found a php-mysql rpm, since the php4 rpm lacks MySQL
support. (I also had to find a few more rpms before this one would install.) Then, I had to make
sure and export the path of the library libgcc_s.so (export LD_LIBRARY_PATH=/usr/local/lib) before
running the Apache httpd. Otherwise PHP fails to load the MySQL library, which apparently depends
on libgcc_s.so, but doesn't give much useful feedback except that the MySQL-specific commands
you're using are unrecognized. I hope this saves someone else from going through the hours of
hassle it took me to figure it out!
--
http://www.php.net/manual/en/ref.mysql.php
http://master.php.net/manage/user-notes.php?action=edit+21906
http://master.php.net/manage/user-notes.php?action=delete+21906
http://master.php.net/manage/user-notes.php?action=reject+21906