Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

One error_log per account with lsapi like PHP-FPM

Discussion in 'CloudLinux' started by MarkCanada, Mar 1, 2019.

  1. MarkCanada

    MarkCanada Member

    Joined:
    Jan 10, 2015
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there

    Switching from PHP-FPM which had all the error_log files of an account neatly tucked away into the account's /logs/ folder I am missing that under lsapi.
    I don't like to have to hunt down if and where any errors occured. Just a waste of time and easy to miss something in a large program.
    I know I can set it in each account's php.ini file, but is there a way to make it server wide for all existing and new accounts like PHP-FPM had it?

    Thanks

    EDIT - just noticed the incorrect thread title - I don't need one error_log FILE, but one error_log FOLDER (file would work too)
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,

    mod_lsapi utilizes either the error_log or the sulsphp_log you can read more about these here: Troubleshooting
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MarkCanada

    MarkCanada Member

    Joined:
    Jan 10, 2015
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Lauren

    Thanks for the link, but I can't find any information there on how to change the location / combine the error_log files.
    Could you please point me to it?

    Thanks
    Mark
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @MarkCanada


    These logs aren't combined like the php-fpm logs are. The information added was where mod_lsapi logs its data for your reference.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. MarkCanada

    MarkCanada Member

    Joined:
    Jan 10, 2015
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    But I am looking at combining them. That's what I am trying to get.
    php-fpm combines them nicely and supposedly setting
    in htaccess: php_value error_log /home/USERNAME/logs/error_log
    or php.ini: error_log = /home/USERNAME/logs/error_log
    does it on an account basis (not sure if any of these works under mod_lsapi. Haven't tried since that's not what I am looking for).
    I am trying to apply this somehow on a server wide setting without having to do it manually for each account.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice