Answer the question
In order to leave comments, you need to log in
How to enable PHP error logging in error.log in current folder automatically on Apache?
VPS on Centos 7.3 with Webuzo control panel. apache, php. How to enable, so that errors when executing PHP files are written to error.log in the same directory? Perhaps they are still being written, but somewhere in general for the server, but it needs to be in the current directory. Is it something that needs to be enabled in php.ini?
Answer the question
In order to leave comments, you need to log in
Found a solution.
Since it costs suPHP, you can set the settings in a local ini file in each directory, or in a common one for some. But the local file should not be called php.ini , but .user.ini (this default value was found as a result of the output of the phpinfo function). In it he wrote:error_log = error_log
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question