The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP error_logs everywhere

Discussion in 'General Discussion' started by Morley, Nov 28, 2007.

  1. Morley

    Morley Well-Known Member

    Joined:
    Apr 24, 2007
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I've noticed an error_log in all my doc roots dated Oct. 29. Here's the error:

    [29-Oct-2007 13:54:02] PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin: cannot open shared object file: No such file or directory in Unknown on line 0

    The folder usr/local/lib/php/extensions/no-debug-non-zts-20020429/ exists but is empty.

    I have no idea what this is. Can someone help?

    Thanks

    P.S. When I run php -v I get:
    php -v
    PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 4.4.7 (cli) (built: May 28 2007 14:19:24)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies
     
    #1 Morley, Nov 28, 2007
    Last edited: Nov 28, 2007
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    on shell as root:

    cd /usr/src
    wget http://www.sourceguardian.com/ixeds/ixed4.lin.x86-32.tar.gz
    tar -zxf ixed4.lin.x86-32.tar.gz
    mkdir -p /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed
    mv ixed.4.4.lin /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/
    -----------------------------------------------------------------------------------------------------------------------------------

    restart apache and you should be fine.
     
  3. Morley

    Morley Well-Known Member

    Joined:
    Apr 24, 2007
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I appreciate your help but it seems a little drastic and I'm wondering if a cpanel update might wipe it out anyway. The file does exist.

    ls /etc/ixed/ixed.4.4.lin
    /etc/ixed/ixed.4.4.lin*

    Is there any other way or is this something that's happened to others?

    Thanks
     
  4. Michel McA

    Michel McA Member
    PartnerNOC

    Joined:
    Sep 1, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Using the above posters information it looks like the extension is simply installed in the wrong spot.

    So SSHing in as root and running these commands

    mkdir -p /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed
    mv /etc/ixed.4.4.lin /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/

    is worth a shot.
     
  5. Morley

    Morley Well-Known Member

    Joined:
    Apr 24, 2007
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Ok, I created and copied ixed/ixed.4.4.lin to /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/
    and now a simple php -v doesn't cause an error_log

    I'm just curious why this occured and what happens to these?

    ls /etc/ixed/
    ixed.4.1.lin*
    ixed.4.2ts.lin*
    ixed.4.4.lin*
    ixed.5.0.0ts.lin*
    ixed.5.0.2.lin*
    ixed.5.0ts.lin*
    ixed.5.2.lin*
    ixed.4.1ts.lin*
    ixed.4.3.lin*
    ixed.4.4ts.lin*
    ixed.5.0.1.lin*
    ixed.5.0.2ts.lin*
    ixed.5.1.lin*
    ixed.5.2ts.lin*
    ixed.4.2.lin*
    ixed.4.3ts.lin*
    ixed.5.0.0.lin*
    ixed.5.0.1ts.lin*
    ixed.5.0.lin*
    ixed.5.1ts.lin*


    Thanks both of you!
     
  6. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    why it happened : not sure.

    about the rest of the files : delete them.
     
  7. Michel McA

    Michel McA Member
    PartnerNOC

    Joined:
    Sep 1, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Edit:

    Sounds like in your php.ini you set the extension directory to be /usr/local/lib/php/extensions/no-debug-non-zts-20020429, however you installed the module in /etc/

    In my php.ini

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20020429"
     
  8. Morley

    Morley Well-Known Member

    Joined:
    Apr 24, 2007
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    That's the strange thing. I never set the extensions directory in my php.ini. :confused:
     
  9. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    On a related note, before I updated to php 4/5 and suphp using EA3, all errors were being logged to /usr/local/apache/logs/error_log Now, some domains are still logging to here and others are logging to their root directories, basically leaving error_log s scattered all over the place that are, of course, not using log rotation.

    What's the best way to ensure that all domains log errors to the main apache error_log?
     
Loading...

Share This Page