Question
How do I set the PHP error log location?
Answer
The error log location for PHP can be set both globally on the server and on a per-user basis.
Note: If you are using PHP-FPM, the instructions to change the error_log location is different. Please see the following for further information:
How do I set the PHP error log location when using PHP-FPM?
WHM
cPanel 136 and higher:
- Log in to WHM as the
rootuser. - Access Home / Software / MultiPHP INI Editor
- On the Basic Mode tab, select the PHP version you want to edit.
-
Edit the error_log value.
- Save the changes by using the Apply button.
cPanel 134 and lower:
- Log in to WHM as the
rootuser. - Access Home / Software / MultiPHP INI Editor
- On the Editor Mode tab, select the PHP version you want to edit.
-
Find the error_log value in the configuration editor, and set a new value.
- Save the changes by using the Save button.
cPanel
cPanel 136 and higher:
- Log in to cPanel.
- Access Software / MultiPHP INI Editor
- On the Basic Mode tab, select the domain you want to edit.
-
Edit the error_log value.
- Save the changes by using the Apply button.
cPanel 134 and lower:
- Log in to WHM as the
rootuser. - Access Software / MultiPHP INI Editor
- On the Editor Mode tab, select the domain you want to edit.
-
Find the error_log value in the configuration editor, and set a new value.
- Save the changes by using the Save button.
Comments
0 comments
Article is closed for comments.