Skip to main content

Dealing with multiple error_log files?

Comments

2 comments

  • 1linweb
    I forgot to add that I'm running Apache 2.4, PHP 5.4, SuPHP Since I'm using SuPHP, is the only way to get all errors placed in a single error_log file in each accounts public_html folder by adding a php.ini file to every account? How would I automate copying the default php.ini from /usr/local/lib/php.ini to /home/$user/php.ini during account creation, with the error_log directive modified? Can anyone provide me with an example of using the skeleton directory and/or postwwacct for this purpose? A few more SSH comands for dealing with error_log files to add to this thread: remove all error_log files over 10MB - find /home/ -size +10000k -name error_log -exec rm -rf {} \; find large error_log files over 10MB - find /home -type f -size +10000k -name "error_log" list size and location of all error_log files - find /home -type f -name "error_log" -print0 | xargs -0 du -sh Thank you,
    0
  • cPanelMichael
    Hello :) Yes, with suPHP, you can configure individual PHP options by placing a php.ini file within the account. The "Skeleton Directory" functionality is documented here: Skeleton Directory Thank you.
    0

Please sign in to leave a comment.