WordPress.org

Support

Support » How-To and Troubleshooting » How to make WordPress log database failures ?

How to make WordPress log database failures ?

  • Hello,

    I have the impression my blog is having a surge in database connexion failures, however I cannot be really sure : I’m using mutualized hosting, and I can’t access my blog’s mysql server logs.

    So, I wonder, would you know, please, if it’s possible to make wordpress keep a log of database problems ?

    I’d be very interested if it was possible 🙂

    Thank you VERY MUCH if you can help, I’ll be grateful !

    Sabinou

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is an important matter to me, so I allow myself a free bump 🙂

    Sadly, it seems no one can help. I hope I’m not annoying with one final bump, this is a problematic issue for me 🙁

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    I’ve never tried it (I have full access to all logs on my VPS) but this may create the log you are looking for via .htaccess.

    # enable PHP error logging
    php_flag  log_errors on
    php_value error_log  /home/path/public_html/domain/PHP_errors.log

    http://perishablepress.com/press/2007/12/17/how-to-enable-php-error-logging-via-htaccess/

    Make the path and file name to something only you can access and give it a try.

    Be careful to remove this after you’ve gotten what you want. That error file will just keep growing.

    Edit: Also, don’t bump. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make WordPress log database failures ?’ is closed to new replies.
Skip to toolbar