Ok, so if you tuned in last time, I couldn't make the installation/upgrade of PHP5 from the Centos4 CentOS Plus repository work. Not one to be easilly dissuaded, I shapened my shovel and dug myself a hole.
So using the exclude= lines in the repository config file backfired big time: even if I excluded the exclude= lines, yum continued to exclude the files on those lines, and only deigned to update three php files. Thus, my user complained that the mysql pieces were not there.
So what I did was install CentOS 4 fresh into a VM, update it, then I just did a:
# yum --enablerepo centosplus --exclude php-pecl-ssh2 --exclude php-eaccelerator --exclude php-pear-Image-GraphViz --exclude php-pear-PHPUnit2 install php php*
(see the explanations for the --excludes on http://wiki.xdroop.com/space/CentOS/4/Updating+to+PHP+5)
Please with my illusion of progress, I then copied the RPMs from the local cache to my target machine, and installed them with
# rpm -Uvh --nodeps --replacefiles *rpm
The --nodeps was because some other package not otherwise updated depended on the previous version of php-pear, and the --replacefiles was because rpm was complaining that some file owned by mysql-4 conflicted with the mysql-5 package even though it was going to be "upgraded".
Now, my users are complaining about errors like:
[28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 [...repeat for each file in /usr/lib/php/modules/...]
However, those "files" are there:
# ls -l /usr/lib/php/modules/fileinfo.so /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 75652 Nov 24 2006 /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 10580 Nov 24 2006 /usr/lib/php/modules/fileinfo.so
I don't know anything about how to get php to show these errors, since the simple phpinfo.php file works (but admittedly it doesn't really do anything).
Can anyone point me in the right direction, or perhaps offer me other directions in which to dig?
On Fri, 2007-09-28 at 11:15 -0400, David Mackintosh wrote:
Now, my users are complaining about errors like:
[28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 [...repeat for each file in /usr/lib/php/modules/...]
However, those "files" are there:
# ls -l /usr/lib/php/modules/fileinfo.so /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 75652 Nov 24 2006 /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 10580 Nov 24 2006 /usr/lib/php/modules/fileinfo.so
ldd is your friend.
On Fri, Sep 28, 2007 at 11:29:34AM -0400, Ignacio Vazquez-Abrams wrote:
ldd is your friend.
My apologies, as this must be obvious, but I am asking ldd the wrong question:
# ldd /usr/bin/php | grep mo #
...ie I can't see ldd telling me about missing module files. ldd's output implies that the dynamically linked libraries for the php binary are fine; there is nothing missing.
On Fri, 2007-09-28 at 11:47 -0400, David Mackintosh wrote:
On Fri, Sep 28, 2007 at 11:29:34AM -0400, Ignacio Vazquez-Abrams wrote:
ldd is your friend.
My apologies, as this must be obvious, but I am asking ldd the wrong question:
# ldd /usr/bin/php | grep mo #
...ie I can't see ldd telling me about missing module files. ldd's output implies that the dynamically linked libraries for the php binary are fine; there is nothing missing.
But what about the modules?
On Fri, Sep 28, 2007 at 12:18:11PM -0400, Ignacio Vazquez-Abrams wrote:
On Fri, 2007-09-28 at 11:47 -0400, David Mackintosh wrote:
On Fri, Sep 28, 2007 at 11:29:34AM -0400, Ignacio Vazquez-Abrams wrote:
ldd is your friend.
My apologies, as this must be obvious, but I am asking ldd the wrong question:
But what about the modules?
Ahh, I didn't know you could ldd modules. But I still cannot see a problem:
# ldd /usr/lib/php/modules/fileinfo.so linux-gate.so.1 => (0xffffe000) libmagic.so.1 => /usr/lib/libmagic.so.1 (0xf7fb8000) libc.so.6 => /lib/tls/libc.so.6 (0xf7e8c000) libz.so.1 => /usr/lib/libz.so.1 (0xf7e7c000) /lib/ld-linux.so.2 (0x56555000) #
On Fri, 2007-09-28 at 12:24 -0400, David Mackintosh wrote:
Ahh, I didn't know you could ldd modules. But I still cannot see a problem:
Did you run it on a system exhibiting the problem?
On Fri, Sep 28, 2007 at 12:48:23PM -0400, Ignacio Vazquez-Abrams wrote:
On Fri, 2007-09-28 at 12:24 -0400, David Mackintosh wrote:
Ahh, I didn't know you could ldd modules. But I still cannot see a problem:
Did you run it on a system exhibiting the problem?
Yes, I did.
On 9/28/07, David Mackintosh David.Mackintosh@xdroop.com wrote:
Can anyone point me in the right direction, or perhaps offer me other directions in which to dig?
Would this wiki help?
http://wiki.centos.org/Repositories/CentOSPlus/CentOSWebStack
Akemi
On Fri, Sep 28, 2007 at 08:39:25AM -0700, Akemi Yagi wrote:
On 9/28/07, David Mackintosh David.Mackintosh@xdroop.com wrote:
Can anyone point me in the right direction, or perhaps offer me other directions in which to dig?
Would this wiki help?
http://wiki.centos.org/Repositories/CentOSPlus/CentOSWebStack
Sadly, that wiki entry started teh process of digging the hole -- it was from there I got the exclude= lines which I couldn't de-activate.
On Fri, Sep 28, 2007 at 11:15:44AM -0400, David Mackintosh wrote:
Ok, so if you tuned in last time, I couldn't make the installation/upgrade of PHP5 from the Centos4 CentOS Plus repository work. Not one to be easilly dissuaded, I shapened my shovel and dug myself a hole.
[...]
Now, my users are complaining about errors like:
[28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 [...repeat for each file in /usr/lib/php/modules/...]
However, those "files" are there:
# ls -l /usr/lib/php/modules/fileinfo.so /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 75652 Nov 24 2006 /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 10580 Nov 24 2006 /usr/lib/php/modules/fileinfo.so
I don't know anything about how to get php to show these errors, since the simple phpinfo.php file works (but admittedly it doesn't really do anything).
Can anyone point me in the right direction, or perhaps offer me other directions in which to dig?
For those who end up here as the result of an internet search: my problem in this case was that I installed i386 rpms on a x86_64 system, which explains why php couldn't load the modules even though they were there.
Two long hours with yum and rpm, removing and re-installing various parts, and I have a happy user community.
So honestly this problem was of my own making. Nothing to see here.