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.

Error_log of websites are eat the hard drive. Any suggestion ?

Discussion in 'General Discussion' started by konrath, Jan 19, 2011.

  1. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Error_log of websites are eat the hard drive. Any suggestion ?



    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_pgsql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gettext.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gettext.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdf.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdf.dll: cannot open shared object file: No such file or directory in Unknown on line 0

    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_pgsql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gettext.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_gettext.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Jan-2011 07:19:15] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdf.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pdf.dll: cannot open shared object file: No such file or directory in Unknown on line 0



    Thank you
    Konrath
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The PHP warning leads me to believe that the "phpshield.5.2.lin" file may not exist at the path mentioned in the logged message. To help us diagnose the issue, please let us know the output from the following commands, entered via "root" SSH access:
    Code:
    # stat /usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin
    # find /usr/local/lib/php/extensions -type f
    # egrep -Hn "^(zend_)?extension(_dir)?" /usr/local/lib/php.ini
    # /usr/local/cpanel/bin/rebuild_phpconf --current
    # /usr/local/bin/php -v
    I would ensure that the "phpshield" extension is properly installed or fully removed; either path should be a viable solution. If the PHP configuration "php.ini" files have entries to load a missing extension, this will trigger PHP to log messages into an "error_log" file, as I believe you are experiencing.
     
  3. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Hello


    root@server [/]# stat /usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin
    stat: cannot stat `/usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield.5.2.lin': No such file or directory
    root@server [/]#
    root@server [/]# find /usr/local/lib/php/extensions -type f
    /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so
    /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so
    /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so
    /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mailparse.so
    /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so
    /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so

    root@server [/]#
    root@server [/]# egrep -Hn "^(zend_)?extension(_dir)?" /usr/local/lib/php.ini
    /usr/local/cpanel/bin/rebuild_phpconf --current
    /usr/local/lib/php.ini:428:extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
    /usr/local/lib/php.ini:429:zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
    /usr/local/lib/php.ini:430:extension="suhosin.so"
    /usr/local/lib/php.ini:1119:extension=pdo.so
    /usr/local/lib/php.ini:1120:extension=pdo_sqlite.so
    /usr/local/lib/php.ini:1121:extension=sqlite.so
    /usr/local/lib/php.ini:1122:extension=pdo_mysql.so
    /usr/local/lib/php.ini:1123:extension=mailparse.so
    /usr/local/lib/php.ini:1124:zend_extension="/usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so"
    root@server [/]#
    root@server [/]# /usr/local/cpanel/bin/rebuild_phpconf --current
    /usr/local/bin/php -v



    Available handlers: suphp dso cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: suphp
    SUEXEC: enabled
    root@server [/]#
    root@server [/]# /usr/local/bin/php -v
    PHP 5.2.16 (cli) (built: Jan 19 2011 22:30:31)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
    root@server [/]#
    root@server [/]#


    Thank you
    Konrath
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    It appears there may not be a relevant extension entry for "phpshield.5.2.lin" in the main php.ini file according to the provided command-line (CLI) output.

    Please search the directory that contains the error_log for php.ini files that may have mention of the missing extension; in the following example command, replace "/path/to/directory/" with the directory path that contains the "error_log" file from PHP:
    Code:
    # grep -HnR "phpshield.5.2.lin" /path/to/directory/
     
  5. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil

    Hello

    I've tried to comment these lines with ; and did not solve the problem.

    Thank you
    Konrath

    root@server [/home/babibaby/public_html]# grep -HnR "phpshield.5.2.lin" /home/babibaby/public_html
    /home/babibaby/public_html/php.ini:431:extension=phpshield.5.2.lin
    /home/babibaby/public_html/php.ini:537:extension=phpshield.5.2.lin
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    What happens if you rename the php.ini file to move it out of the way? In the following example command, replace "$user" with the username of the account:
    Code:
    # cd ~$user/public_html && mv -v php.ini php.ini.backup
    Look for more php.ini files that may be located elsewhere in the directory structure, for example, similar to each of the following paths:
    Code:
    /php.ini
    /home/php.ini
    /home/$user/php.ini
    /home/$user/public_html/php.ini
    You will need to ensure there are no erroneous PHP configuration entries, or misconfigured PHP scripts, that may be attempting to load a non-existent extension. If the script actually requires the custom PHP extension, I recommend referring to the third-party vendor's web site and their documentation or support resources for assistance.
     
  7. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brasil
    Hello cPanelDon

    I understand what is happening. Thanks for the help.

    I looking for a way to disable the generation of error logs on to websites.

    I can not disable the php.ini from my client because I use suPHP with many functions disabled.

    My customer has an own php.ini so that it can enable the functions that are disabled in php.ini. of server ( main php )

    phpSHIELD is not a free script. I will not install.

    I see mistakes too, GD2, but the gd2 is installed on the server.

    Thank you
    Konrath
     
    #7 konrath, Jan 19, 2011
    Last edited: Jan 19, 2011
  8. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The phpSHIELD loaders are free and are intended to allow use of PHP scripts that were processed through their proprietary encoder: phpSHIELD loaders

    The purpose of the phpSHIELD loader is similar to that of the ionCube loaders, to load an encoded script. The part that is not free is the proprietary encoding software purchased by software developers to protect their PHP source code and, subsequently, require use of the appropriate [loader] (PHP extension) to use their specific PHP scripts. Similar examples include ionCube, SourceGuardian, phpSHIELD, and Zend Guard/Optimizer.
     
    #8 cPanelDon, Jan 19, 2011
    Last edited: Jan 19, 2011
Loading...

Share This Page