PHP Errorlog: How to enable error logging

Step 1:

Please note that the following tutorial only allows the output or logging of PHP error messages

Step 2:

PHP Errorlog - How to enable error logging, Bild 1
Log in to our WebFTP using your login credentials.

Step 3:

PHP Errorlog - How to enable error logging, Bild 2
Switch to the folder where the respective software is located.

Step 4:

PHP Errorlog - How to enable error logging, Bild 3
Edit the .user.ini file by clicking the arrow icon or create a New file in case the file doesn't exist.

If you edit an already existing .user.ini file, please insert the commands which are described in the following steps at the end of the file, after the already existing commands.

Step 5:

PHP Errorlog - How to enable error logging, Bild 4
In order to display error messages directly on the website, you need to insert the following line:
 

display_errors = on


Click save in order to write the changes to the .user.ini file.

Step 6:

PHP Errorlog - How to enable error logging, Bild 5
You can also enable the error logging to be written into a log file and disable showing the error messages on the website. In this case please insert the following lines into the .user.ini file:
 

display_errors = off
log_errors = on
error_log = /www/htdocs/<login>/<folder>/errorlog.txt


Replace <login> with the login name of your KAS (Technical Administration) e.g. w00....

Replace <folder> with the folder in which you want the file to be stored. The folder must exist.

Click save in order to confirm the changes to the .user.ini file.
How helpful was this tutorial?

Search in support and FAQ

Seitensuche