Use the following codes to enable error logging. Copy and paste the code below into a php.ini text file. This php.ini file should be saved in the webspace folder containing that website files that should be monitored for logging.
|error_reporting = E_ALL | E_STRICT||This line specifies which errors should be recorded. E_ALL indicates that all errors and warnings should be recorded. E_STRICT suggest changes in coding and ensures compatibility with future PHP-versions.|
|log_errors = On||Errors in the log file are recorded.|
|display_errors = Off||Browser errors will not to be displayed.|
|error_log = /home/d123456789/private/php-errors.log||Errors will be recorded into the respective folder in your private directory.|