You are not logged in.

#1 2004-07-19 06:49:33

Olli
Member
Registered: 2004-04-01
Posts: 57

php5/mysql problem

Hey all,

I've just upgraded to php5 and for some reason my forum/blog (eg everything with a mysql connection) seized to work. Other php scripts work just fine.

Any clues?


DIY: Doom-It-Yourself

Offline

#2 2004-07-19 07:02:45

Olli
Member
Registered: 2004-04-01
Posts: 57

Re: php5/mysql problem

Found my 'problem' smile
In php.ini

extension=mysql.so

was commented out smile


DIY: Doom-It-Yourself

Offline

#3 2004-07-25 19:46:42

Tebroc
Member
From: PA
Registered: 2004-06-11
Posts: 3
Website

Re: php5/mysql problem

Excellent! That was my issue too. Thanks! smile

Offline

#4 2004-12-18 08:42:54

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: php5/mysql problem

[root@dogma ~]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/mysql.so' - libmysqlclient.so.14: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.0.3 (cli) (built: Dec 16 2004 13:44:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

I have it uncommented but still can't get it working.

Offline

#5 2004-12-18 23:22:35

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: php5/mysql problem

Same problem here since I upgraded PHP earlier this week  :?
Possible bug is my guess...


--
JSkier

Offline

#6 2004-12-18 23:31:34

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: php5/mysql problem

I have been compiling my own modified pkgbuild for php, so I wouldn't know. You should probably submit a bug report to the bug tracker if it hasn't already been done.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#7 2004-12-20 06:05:23

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: php5/mysql problem

Tim D'Hooge wrote:

looks like a bug in the mysql package to me

The package has symlink /usr/lib/libmysqlclient.so.14 --> /usr/lib/mysql/libmysqlclient.14. But ~/mysql/libmysqlclient.14 is a symlink and cannot be installed. Requires a direct link to /usr/lib/mysql/libmysqlclient.14.0.0

Run this syntax:
ln -s /usr/lib/mysql/libmysqlclient.14.0.0 /usr/lib/libmysqlclient.so.14


Markku

Offline

#8 2004-12-24 03:00:28

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: php5/mysql problem

Same here, thanks.


--
JSkier

Offline

#9 2004-12-24 04:30:29

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: php5/mysql problem

Been fixed in the newest (couple days ago) mysql release...


The suggestion box only accepts patches.

Offline

#10 2005-01-19 19:14:56

drg006
Member
Registered: 2005-01-09
Posts: 19

Re: php5/mysql problem

I had the same (or similar) problem, even with the newest package.

This fixed it:

ln -s /usr/lib/mysql/libmysqlclient.so.14.0.0 /usr/lib/libmysqlclient.14

Tips:
-uncomment extension=mysql.so in /etc/php.ini
-you seem to need to restart the httpd after changes; look at /var/log/httpd/error_log
-I defined PHPRC in /etc/profile, but I'm not sure if this was neccessary

Offline

Board footer

Powered by FluxBB