Hello,

the output of phpInfo() has '--with-mysql=shared,/usr' and also --with-apxs2=/usr/sbin/apxs' (but apxs is no at /usr/sbin/).

I added the extension in php.ini:

extension=mysql.so

extension_dir = /usr/lib/php4

[root@pclabo php4]# ls /usr/lib/php4/
imap.so  ldap.so  mysql.so

I made these changes and I restarted the server but I'm still getting the same error mysql_pconnect(), what else should I do? Thanks, Llanos


>
>Have a look at the output from phpInfo(), does it mention anything about
>mysql support being enabled as a module?
>Has it been compiled as an extension? If that's the case then you'll have to
>add it to php.ini
>[extension section]
>extension=mysql.so
>Also make sure extension_dir is set correctly
>extension_dir = /usr/lib/php/extensions
>This will vary depending on which version of Linux your using or where you
>chose to have the extensions installed.
>You have got the MySQL development files installed? If it can't find them
>then it will probably skip over building that extension. When you try and
>build it it should perform checks to see if it can find the required files,
>make sure it passed the check for the MySQL headers.
>
>   -----Original Message-----
>   From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org]On
>Behalf Of Llanos Serna García-Conde
>   Sent: 06 May 2005 13:26
>   To: serusers@lists.iptel.org
>   Subject: [Serusers] php with mysql, where is APXS?
>
>
>   Hi all, I'm trying to see the serweb login screen but I get the error:
>   Fatal error: Call to undefined function: mysql_pconnect()
>
>   I know that this error has to do with the installation of php with mysql
>support, but I have alreadly re-configured php using --with-mysql and the
>error still appears. I know APACHE is working because I can see the test
>page and PHP is also working cause I made a test with phpinfo(). Could this
>have anything with APXS? I'm not using the option with APXS because I can't
>have this APXS anywhere in my directories. I dint' include a path when
>adding --with-mysql, could this be the source of the error?
>   Any other ideas? Please help
>
>   Llanos
>
>---------------------------------------------------------------------------------------------
>This email, and any files transmitted with it, is copyright and may contain confidential information.
>The contents are intended for the use of the addressee(s) only.
>Unauthorized use may be unlawful.
>If you receive this email by mistake, please advise sender immediately.
>The views of the author may not necessarily constitute the views of the company.
>Nothing in this mail shall bind the company in any contract or obligation.
>
>Tel  +44 (0) 20 8002 6000
>Fax  +44 (0) 20 8002 6060
>
>______________________________________________________________________
>This email has been scanned by the MessageLabs Email Security System.
>For more information please visit http://www.messagelabs.com/email
>______________________________________________________________________