• Resolved John

    (@dsl225)


    Hi guys,

    I’m using this essential plugin for all my sites without any issues.

    I have a problem though with one specific cPanel account where I host some dev sites under subfolders (site1, site2, site3, etc).

    My plugin’s config section has the usual pattern:

    @ini_set('error_log', '/home/myaccount/public_html/mysites/site1/wp-content/elm-error-logs/php-errors.log');

    Problem is, cPanel groups all logs of all those sites at same location (/home/myaccount/logs/), in a single file, and overrides my settings in config.php!

    They can also be accessed in cPanel’s Metrics section, under “Errors”.

    Despite having them correctly set at config.php, the plugin’s log at Dashborad states this at bottom of list:

    Log file: /home/myaccount/logs/mysites.php.error.log (5.23 KiB)

    Problem is, all errors are logged under the same file and display, all mixed together, at all sites under same folder using this monitor…

    Is there a way to override this and keep each log strictly for each sub-folder as it should be by default?

    Thanks!

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

    (@whiteshadow)

    @dsl225 It sounds like the hosting provider has configured the server to prevent PHP scripts from changing the location of the error log. I suspect that this is something that you can’t override with a plugin. Maybe cPanel has a setting for that somewhere? Alternatively, if you have access to the server’s php.ini, maybe you can change the log file name there?

    Thread Starter John

    (@dsl225)

    @whiteshadow yep, that’s right.
    In the meanwhile I contacted the host and they are currently trying to find a solution in that same way as you suggested.

    Many thanks for your feedback!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cPanel overrides settings and keeps all logs under the ERROR section’ is closed to new replies.