• Resolved gore.m

    (@gorem)


    Hello,

    after moving to different hosting provider I have problem to set up Error Log Monitor.

    It shows: The log file /home/html/xxxx.cz/logs/php.log does not exist or is inaccessible.

    I have edited wp-config to this:

    //Enable error logging.
    @ini_set(‘log_errors’, ‘On’);
    @ini_set(‘error_log’, ‘/home/html/xxxx.cz/public_html/www/wp-content/elm-error-logs/php-errors.log’);

    //Don’t show errors to site visitors.
    @ini_set(‘display_errors’, ‘Off’);
    if ( !defined(‘WP_DEBUG_DISPLAY’) ) {
    define(‘WP_DEBUG_DISPLAY’, false);
    }

    I have checked url (I have in wp-config) with my hosting provider and it is right. Why is Error Log Monitor showing different url (in backend)? What is wrong?

    Thanks you

    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    The plugin gets the log file path from the active PHP configuration. If it’s showing a different path than what you set in your wp-config.php, that probably means the code in wp-config.php did not successfully change the PHP configuration. Some possible reasons could include:

    • The server configuration does not allow individual PHP scripts to change the error_log setting. Some hosts restrict PHP scripts in this way. This is something you might have to verify with the hosting provider.
    • The code is in the wrong place in the file. If it’s too far down, it might not work as expected.
    • Something else has changed the log file path. This is unlikely, but, in theory, just like you can use ini_set('error_log', '...') in wp-config.php, another plugin or theme could also call ini_set() in its own code and change the log file path to something else.
    Thread Starter gore.m

    (@gorem)

    Thanks you, Ill check it again with my hosting provider.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The log file does not exist or is inaccessible’ is closed to new replies.