Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-09 Thread Garrett Nelson

Woo-hoo! Fixing the extensions directory worked. I am now all set with MySQL
support ... Thanks for all the help!


-- 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-08 Thread Jason Wong

On Saturday 08 June 2002 05:29, Garrett Nelson wrote:
 I now downloaded php-mysql-4.1.2-1a.ppc.rpm from rpmfinder, and again I
 get

 rpm -ivh php-mysql*
 Preparing...###
 [100%]
 package php-mysql-4.1.2-1a is already installed

 (Same error with -Uvh, too)

 So I suppose it's something else. Do I have to uninstall PHP first? Or,
 again, could it be something wrong with the PHP configs? Is php.ini the
 only config file that might need to be edited?

Check in your httpd.conf file that you have these lines:

LoadModule php4_modulemodules/libphp4.so
AddModule mod_php4.c

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
To err is human, to moo bovine.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-08 Thread Jason Wong

On Saturday 08 June 2002 23:20, Garrett Nelson wrote:
 I have both the lines in httpd.conf. As I said, PHP is working fine, it's
 just an issue with MySQL support I believe.

Sorry my mistake. Check in php.ini for this line:

extension=mysql.so

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
A tautology is a thing which is tautological.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-08 Thread Jason Wong

On Sunday 09 June 2002 01:28, Garrett Nelson wrote:

 Well, we're getting closer now, maybe. I added the line extension=mysql.so,
 and I still get the same error when trying to run the web-based PHP apps,
 but in the command line when I type php I get back,

 PHP Warning:  Unable to load dynamic library './mysql.so' - ./mysql.so:
 cannot open shared object file: No such file or directory in Unknown on
 line 0

 Does that help at all in identifying what may be wrong?

In php.ini check/add the line

extension_dir = /path/to/directory/containing-mysql.so

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Euch ist becannt, was wir beduerfen;
Wir wollen stark Getraenke schluerfen.
-- Goethe, Faust
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-07 Thread Garrett Nelson

On 6/6/02 4:48 PM, Jason Wong [EMAIL PROTECTED] wrote:

 On Friday 07 June 2002 04:36, Garrett Nelson wrote:
 I'm a relative newbie to the Linux/web server world, having worked with
 Macs most of my life. I recently installed the Server install of Yellow Dog
 Linux, with no window managers, CLI only. Everything is working pretty much
 correctly, except PHP interaction with MySQL. When I tried to install
 Invision Board, I got the following error‹
 
 Fatal error: Call to undefined function: mysql_connect() in
 /var/www/default/forums/sm_install.php on line 249
 
 It means there's no support in php for mysql
 
 I figured this meant MySQL or PHP was configured incorrectly so I installed
 PhpMyAdmin to see if that would work, and I got the error message
 
 cannot load MySQL extension,
 please check PHP Configuration.
 
 ditto
 
 What needs to be configured? I was under the impression that MySQL support
 was built into PHP now and that it needs no extension.
 
 Yes and no. PHP has 'builtin' support for MySQL but it needs to be enabled at
 compile time.
 
 I downloaded the RPM
 of PHP 4.1.2 (the latest PPC RPM available at rpmfind) and it told me it
 was already installed. I then installed MySQL 3.23.41 to no effect.
 
 So what can I do to fix this?
 
 Try looking for an RPM with both 'php' and 'mysql' in its name. Eg for Redhat
 a suitable rpm would be named: php-mysql-4.1.2-7.i386.rpm.


Hrm 

I now downloaded php-mysql-4.1.2-1a.ppc.rpm from rpmfinder, and again I
get

rpm -ivh php-mysql*
Preparing...###
[100%]
package php-mysql-4.1.2-1a is already installed

(Same error with -Uvh, too)

So I suppose it's something else. Do I have to uninstall PHP first? Or,
again, could it be something wrong with the PHP configs? Is php.ini the only
config file that might need to be edited?


-- 



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-06 Thread Paul Burney

on 6/6/02 4:36 PM, Garrett Nelson at [EMAIL PROTECTED] appended the
following bits to my mbox:

 What needs to be configured? I was under the impression that MySQL support
 was built into PHP now and that it needs no extension. I downloaded the RPM
 of PHP 4.1.2 (the latest PPC RPM available at rpmfind) and it told me it was
 already installed. I then installed MySQL 3.23.41 to no effect.

Well, the MySQL library comes bundled with PHP, but to actually build in
support, you need to configure it with --with-MySQL.

I'm not a big RPM guy, but you should probably look for an RPM for PHP that
mentions MySQL as well.

HTH.

Sincerely,

Paul Burney
http://paulburney.com/

?php

// the statement formerly known as prince
if ($the_elevator == 'tries to bring you down') {
go_crazy('punch a higher floor');
} 

?



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php