'CentOS 7.9 dedicate server errors to be recorded in their respective folders were they occurred

I just upgraded my dedicate servers to CentOS 7.9. Each one has about 15 domains and all of them are php and mysql sites.

With the pervious version 6.x when and error occurred, the "system" was creating an error_log on the folder/directory were was generated. In other words was something like foler1/subfolder2/error_log and... this/is/another/folder/error_log

Now all of them are recorder in a single file under the root directory /home/user/logs/. Is there a way to change any settings and have them recorded as in the older version in different folders.

Thanks for the help in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source