[PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-28 Thread John Swartzentruber
On 2/28/2005 2:47 AM M. Sokolewicz wrote:
well, for some reason it didn't compile in the mysql extension at all... 
even though it was configured to. That's strange, and I have no idea why 
it would do that. However, since you're using mysql 4.1.x, you should be 
using the mysqli interface anyway. Even phpmyadmin has the option to use 
mysqli instead of mysql; you just need to configure it that way (via 
config.inc.php)

- tul
I'll try that, but I'd really like to know why it didn't compile in the 
mysql extension. That was my impression as well, but I couldn't see why 
that would be the case and am too new to know for sure that this was the 
case.

Where would I look for the mysqli interface documentation? Is it in the 
MySQL documentation or the PHP documentation (or both or neither)?


John Swartzentruber wrote:
I have installed MySQL 4.1.10 from RPMs from MySQL. I have installed 
PHP 5.0.3 from source and specified --with-mysql=shared,/usr on the 
configure line. Things seem to build and load correctly, but (after 
restarting Apache) when I try to run phpMyAdmin, I get the following 
error:

cannot load mysql extension,
please check PHP Configuration
Documentation
I looked at the documentation and I understand what it is saying, but 
I don't understand why it isn't able to load the mysql.so file.

I'm a real newbie who wants to learn PHP and MySQL and doesn't know 
either of them very much yet. I would greatly appreciate it if someone 
could look at my phpInfo() output and point out anything I am missing. 
You can see it at:

http://john.swartzentruber.us/test.php
I copied the mysql.so file from /usr/local/src/php-5.0.3/modules/ to 
/usr/lib/httpd/modules/. I'm running Apache 2.0.52 from the Fedora RPM.

I appreciate any help anyone can provide.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-28 Thread Robby Russell
On Mon, 2005-02-28 at 07:30 -0500, John Swartzentruber wrote:
On 2/28/2005 2:47 AM M. Sokolewicz wrote:
 well, for some reason it didn't compile in the mysql extension at all... 
 even though it was configured to. That's strange, and I have no idea why 
 it would do that. However, since you're using mysql 4.1.x, you should be 
 using the mysqli interface anyway. Even phpmyadmin has the option to use 
 mysqli instead of mysql; you just need to configure it that way (via 
 config.inc.php)
 
 - tul

I'll try that, but I'd really like to know why it didn't compile in the 
mysql extension. That was my impression as well, but I couldn't see why 
that would be the case and am too new to know for sure that this was the 
case.

Where would I look for the mysqli interface documentation? Is it in the 
MySQL documentation or the PHP documentation (or both or neither)?


Do you have mysql-devel installed? (since you installed via RPM). 

-Robby

-- 
/***
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | [EMAIL PROTECTED]
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting  Development
* --- Now hosting Ruby on Rails Apps ---
/

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



Re: [PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora

2005-02-28 Thread John Swartzentruber
On 2/28/2005 8:27 AM Robby Russell wrote:
On Mon, 2005-02-28 at 07:30 -0500, John Swartzentruber wrote:
On 2/28/2005 2:47 AM M. Sokolewicz wrote:
well, for some reason it didn't compile in the mysql extension at all... 
even though it was configured to. That's strange, and I have no idea why 
it would do that. However, since you're using mysql 4.1.x, you should be 
using the mysqli interface anyway. Even phpmyadmin has the option to use 
mysqli instead of mysql; you just need to configure it that way (via 
config.inc.php)

- tul
I'll try that, but I'd really like to know why it didn't compile in the 
mysql extension. That was my impression as well, but I couldn't see why 
that would be the case and am too new to know for sure that this was the 
case.

Where would I look for the mysqli interface documentation? Is it in the 
MySQL documentation or the PHP documentation (or both or neither)?


Do you have mysql-devel installed? (since you installed via RPM). 
Yes, I installed MySQL-server, MySQL-client, MySQL-devel, and 
MySQL-bench, in addition to the shared compatibility libs.

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


[PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-27 Thread M. Sokolewicz
well, for some reason it didn't compile in the mysql extension at all... 
even though it was configured to. That's strange, and I have no idea why 
it would do that. However, since you're using mysql 4.1.x, you should be 
using the mysqli interface anyway. Even phpmyadmin has the option to use 
mysqli instead of mysql; you just need to configure it that way (via 
config.inc.php)

- tul
John Swartzentruber wrote:
I have installed MySQL 4.1.10 from RPMs from MySQL. I have installed PHP 
5.0.3 from source and specified --with-mysql=shared,/usr on the 
configure line. Things seem to build and load correctly, but (after 
restarting Apache) when I try to run phpMyAdmin, I get the following error:

cannot load mysql extension,
please check PHP Configuration
Documentation
I looked at the documentation and I understand what it is saying, but I 
don't understand why it isn't able to load the mysql.so file.

I'm a real newbie who wants to learn PHP and MySQL and doesn't know 
either of them very much yet. I would greatly appreciate it if someone 
could look at my phpInfo() output and point out anything I am missing. 
You can see it at:

http://john.swartzentruber.us/test.php
I copied the mysql.so file from /usr/local/src/php-5.0.3/modules/ to 
/usr/lib/httpd/modules/. I'm running Apache 2.0.52 from the Fedora RPM.

I appreciate any help anyone can provide.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php