[PHP] Recompiling PHP with MySQL

2001-05-21 Thread Carmen & Gene

Hi all,

Can anyone please tell me how to recompile Apache/1.3.19 (Unix)
(Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.0.4pl1
mod_perl/1.24_01 on Red Hat Linux 7.1 to work with MySQL?

All were installed using Red Hat RPMs.  (Is this where I screwed up from
the start?)

Anyway, MySQL ( ver 11.13 Distrib 3.23.38, for  redhat-linux-gnu (i386)
)  is running just fine.  I can login, create dbs and tables, etc. but I
always get Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/book/guestbook/dbconnect.php on line 2

The code in my dbconnect.php looks like this:
could not connect to database\n";
  exit;
 }
 mysql_select_db("book");
?>

Through much reading I'm learning that I need to "recompile" PHP by
running ./configure from the "PHP directory " but where is it??

Somebody, please HELP !!  :-)

Thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Recompiling PHP with MySQL

2001-05-21 Thread Jason Murray

> All were installed using Red Hat RPMs.  (Is this where I 
> screwed up from the start?)

Not neccessarily.

You might be able to find a PHP RPM with MySQL enabled, or download 
the source RPM (SRPM), edit the specfile and turn on the options you
need (you can then rebuild the RPM so you can reinstall if needed).

That said, I do find it kinda easy to compile PHP from the source 
code these days, and I'm no *nix guru.

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use wormhole technology for?"
'Faster pizza delivery.'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Recompiling PHP with MySQL

2001-05-22 Thread Chris Lee

Jason,

Sorry for newbie question, how I compile MySQL from SRPM?
I know how to compile from source tar bar but not form SRPM.

Simple step to show how would be nice.

Thanks in advance.

Regards,
Chris Lee

On 21 May 2001 16:43:48 -0700, [EMAIL PROTECTED] (Jason
Murray) wrote:

>> All were installed using Red Hat RPMs.  (Is this where I 
>> screwed up from the start?)
>
>Not neccessarily.
>
>You might be able to find a PHP RPM with MySQL enabled, or download 
>the source RPM (SRPM), edit the specfile and turn on the options you
>need (you can then rebuild the RPM so you can reinstall if needed).
>
>That said, I do find it kinda easy to compile PHP from the source 
>code these days, and I'm no *nix guru.
>
>Jason
>
>-- 
>Jason Murray
>[EMAIL PROTECTED]
>Web Developer, Melbourne IT
>"What'll Scorpy use wormhole technology for?"
>'Faster pizza delivery.'


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Recompiling PHP with MySQL

2001-05-22 Thread Pavel Jartsev

Chris Lee wrote:
> 
> Jason,
> 
> Sorry for newbie question, how I compile MySQL from SRPM?
> I know how to compile from source tar bar but not form SRPM.
> 
> Simple step to show how would be nice.
> 

rpm --rebuild .src.rpm
And compiled binaries will be under /usr/src/RPM/RPMS/.
(Talking about Mandrake).

-- 
Pavel a.k.a. Papi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]