FAQ
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?

--
/\oo/\
/ /()\ \ David Mackintosh |
dave@xdroop.com | http://www.xdroop.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20070928/231322d1/attachment.bin

Search Discussions

  • Ignacio Vazquez-Abrams at Sep 28, 2007 at 3:29 pm

    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.

    --
    Ignacio Vazquez-Abrams <ivazqueznet@gmail.com>

    PLEASE don't CC me; I'm already subscribed
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: This is a digitally signed message part
    Url : http://lists.centos.org/pipermail/centos/attachments/20070928/d0b09e69/attachment.bin
  • David Mackintosh at Sep 28, 2007 at 3:47 pm

    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.

    --
    /\oo/\
    / /()\ \ David Mackintosh |
    dave@xdroop.com | http://www.xdroop.com
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.centos.org/pipermail/centos/attachments/20070928/925d3628/attachment.bin
  • Ignacio Vazquez-Abrams at Sep 28, 2007 at 4:18 pm

    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?

    --
    Ignacio Vazquez-Abrams <ivazqueznet@gmail.com>

    PLEASE don't CC me; I'm already subscribed
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: This is a digitally signed message part
    Url : http://lists.centos.org/pipermail/centos/attachments/20070928/fbbc60ac/attachment.bin
  • David Mackintosh at Sep 28, 2007 at 4:24 pm

    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)
    #

    --
    /\oo/\
    / /()\ \ David Mackintosh |
    dave@xdroop.com | http://www.xdroop.com
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.centos.org/pipermail/centos/attachments/20070928/ae41ab93/attachment.bin
  • Ignacio Vazquez-Abrams at Sep 28, 2007 at 4:48 pm

    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?

    --
    Ignacio Vazquez-Abrams <ivazqueznet@gmail.com>

    PLEASE don't CC me; I'm already subscribed
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: This is a digitally signed message part
    Url : http://lists.centos.org/pipermail/centos/attachments/20070928/510f5d9c/attachment.bin
  • David Mackintosh at Sep 28, 2007 at 6:00 pm

    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.

    --
    /\oo/\
    / /()\ \ David Mackintosh |
    dave@xdroop.com | http://www.xdroop.com
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.centos.org/pipermail/centos/attachments/20070928/aad84cca/attachment.bin
  • Akemi Yagi at Sep 28, 2007 at 3:39 pm

    On 9/28/07, David Mackintosh 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
  • David Mackintosh at Sep 28, 2007 at 4:12 pm

    On Fri, Sep 28, 2007 at 08:39:25AM -0700, Akemi Yagi wrote:
    On 9/28/07, David Mackintosh 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.

    --
    /\oo/\
    / /()\ \ David Mackintosh |
    dave@xdroop.com | http://www.xdroop.com
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.centos.org/pipermail/centos/attachments/20070928/d6741f1e/attachment.bin
  • David Mackintosh at Oct 2, 2007 at 11:48 pm

    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.

    --
    /\oo/\
    / /()\ \ David Mackintosh |
    dave@xdroop.com | http://www.xdroop.com
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.centos.org/pipermail/centos/attachments/20071002/c4d0350e/attachment.bin

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcentos @
categoriescentos
postedSep 28, '07 at 3:15p
activeOct 2, '07 at 11:48p
posts10
users3
websitecentos.org
irc#centos

People

Translate

site design / logo © 2022 Grokbase