I had the same problem when I installed Apache, mySQL and PHP3 on few on my
servers. After a couple of installations, I think I've figured it out (few
visits to Dejanews & the Manuals) :
From my observations, the problems lies with the fact that PHP didn't load
the mysql libraries even though you specified the option --with-mysql during
configure.
1) Check that the mysql libraries are turned on in the php3.ini;
2) make sure libmysqlclient.so in in your ldconfig path i.e. either edit
/etc/ld.so.conf OR put a soft link to libmysqlclient.so into one of your
ldconfig paths
3) Rebuild PHP and apache (fresh install i.e. remove those config.caches)
Hope that helps
Mihaela IFTIMI-ILIE wrote:
>
> Hi, all!
>
> I can't connect to mysql via php3 ! I get this error (on browser):
> Call to unsupported or undefined function mysql_connect()!
>
> I have instaled : mysql 3.22.23, mod-php3, apache 1.3.2 (these packets are
> rpm) and I have RedHat 5.2 linux box.
> First I instaled mysql 3.22.23 next mod-php3 and then apache 1.3.2.
>
> Where I'm wrong ?
> Can anyone help me ?
>
> Thanks in advance
>
>
>
>
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread7140@stripped
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.
| Thread |
|---|
| • Apache, mySQL, and PHP3 on OpenBSD 2.4 | John Kerbawy | 13 Jul |
| • Re: Apache, mySQL, and PHP3 on OpenBSD 2.4 | Sasha Pachev | 13 Jul |
| • Apache, mySQL, and PHP3 | Mihaela IFTIMI-ILIE | 13 Jul |
| • Re: Apache, mySQL, and PHP3 | Darrell Shifflett | 13 Jul |
| • Re: Apache, mySQL, and PHP3 | Al Feisal | 13 Jul |
| • Re: Apache, mySQL, and PHP3 | clhubert | 14 Jul |
| • Re: Apache, mySQL, and PHP3 | Sasha Pachev | 21 Jul |
| • open sized window with PHP | William Samplonius | 22 Jul |
| • Re: open sized window with PHP | Daniel Koch | 22 Jul |
| • Re: open sized window with PHP | Sasha Pachev | 22 Jul |