Help with Error log issues

Discussion in 'Apache' started by adzeds, Aug 2, 2010.

  1. #1
    I have noticed that I have got a rather large error log building up that keeps repeating the same issues..

    I was wondering if anyone knows how i can fix them..

    The errors being shown are:

    [02-Aug-2010 04:52:50] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/ixed.5.2ts.lin' - /usr/local/lib/php/extensions/no-debug-zts-20060613/ixed.5.2ts.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 04:52:50] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 04:52:50] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 04:52:50] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 04:52:50] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 04:52:50] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/uploadprogress.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/uploadprogress.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    Code (markup):
     
    adzeds, Aug 2, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    If you don't need those extensions which would appear to be the case as you didn't say your site was not working then you can just find the extension lines in php.ini and comment them out.

    If you're on shared hosting then talk to your host to get it fixed.
     
    tolra, Aug 2, 2010 IP
  3. adzeds

    adzeds Well-Known Member

    Messages:
    1,209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #3
    Would these errors prevent me from being able to insert into my database, because I am appearing to have a problem storing data which is not being caused by an SQL error from what I can see.
     
    adzeds, Aug 2, 2010 IP
  4. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #4
    Yes if your script is using pdo then as that's one of the extensions not loading that would stop your script working.

    Check you've built the extensions and if so check your paths in php.ini, if this is shared hosting the host should be fixing this for you very quickly.
     
    tolra, Aug 2, 2010 IP
  5. adzeds

    adzeds Well-Known Member

    Messages:
    1,209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #5
    It is on a VPS, so think it is up to me to fix it..

    How do I check I have built the extensions?
     
    adzeds, Aug 2, 2010 IP
  6. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #6
    If it's not managed then yes it's you or a server admin you employ.

    There's not a simple answer to this one as it depends how you installed PHP and where you installed it to. It could be as simple as the extension_dir is set wrong in php.ini

    if you look in /usr/local/lib/php/extensions/ does the no-debug-zts-20060613 directory exist or is it something else, in that something else are there the missing extension files, if so you can try updating extension_dir in php.ini to this other directory.

    Do you have a control panel such as cPanel?

    NOTE: Backup anything you change before you change it and keep notes so you can undo it or give it to a server admin.

    Just one other thing, if you've just taken delivery of this VPS and have done nothing with it then you may well be able to have your supplier resolve if for you.
     
    tolra, Aug 2, 2010 IP
  7. adzeds

    adzeds Well-Known Member

    Messages:
    1,209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #7
    I have got cPanel etc..

    I have had the VPS for a few months now. Just come across this error.

    All the files are present in that folder.
     
    adzeds, Aug 2, 2010 IP
  8. adzeds

    adzeds Well-Known Member

    Messages:
    1,209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #8
    Just found a slight type in the path.. Will try it again now, see if it is still producing error.
     
    adzeds, Aug 2, 2010 IP
  9. adzeds

    adzeds Well-Known Member

    Messages:
    1,209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #9
    Seems to have fixed some issues, still have these in the error log though?
    
    [02-Aug-2010 08:20:01] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mssql.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mssql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 08:20:01] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_msql.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_msql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 08:20:01] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pgsql.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_pgsql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 08:20:01] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ixed.5.2ts.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ixed.5.2ts.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    [02-Aug-2010 08:20:01] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/uploadprogress.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/uploadprogress.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    Code (markup):
    Thanks for all your help!
     
    adzeds, Aug 2, 2010 IP
  10. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #10
    You might be able to copy the missing files from the other folder, however I'd be inclined to just rebuild PHP as that should ensure you have all the correct versions.
     
    tolra, Aug 2, 2010 IP
  11. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #11
    You could probably find your php.ini on your server by doing:

    php --ini

    Then, remove the extension= lines containing those modules, then restart apache with:

    /etc/init.d/httpd restart
     
    zacharooni, Aug 3, 2010 IP