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