PHP not connecting to MySQL while installing PostNuke

Marcelo Pena yellowdog-general@lists.terrasoftsolutions.com
Sat Jun 29 05:38:01 2002


Thanks.

mysql.so is in /usr/lib/php4

My php.ini file says extension_dir = /usr/lib/php4

It looks like PHP was compiled with this as one of the commands:
--with-mysql=shared,/usr

Is the above the problem? Is "--with-mysql=shared,/usr" correct?

That helps me, because I thought PHP wasn't compiled with MySQL support. So
it appears that it is. Thanks. I won't need to recompile php, as I thought.

The version of php is from the new YDL 2.3 rpm's php-4.1.2-7.ppc.rpm, even
though my OS is YDL 2.2.

I've spent many hours trying to figure this out and it's getting very
annoying.

M



On 29/6/02 7:29 PM, "Rob Schumann" <robs@rs-tc.com> wrote:

> Hi,
> 
> Having tried all that you have, where is mysql.so on your system...?
> 
> It either has to be moved to the /var/lib/php4 directory, along with other
> libraries such as ldap.so and so on... OR
> 
> the extensions_dir in php.ini has to be changed to point to whatever directory
> on your system contains mysql.so.
> 
> You should also check whether php was configured with mysql. The default YDL
> install IS so configured, but better to check... creat a test.php file on your
> server root that contains the following
> 
> <?php
>   phpinfo();
> ?>
> 
> When you view this in a browser by pointing it at
> 
> localhost/test.php
> 
> The first tabel contains php configuration information... If this contains
> --with-mysql   or  --with-mysql=/some/path   then all is well with the php
> side of things... it's just not finding the mysql.so.
> 
> Hope that helps
> 
> 
> Rob
> 
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general