Frequently asked questions
This answer is directed to users that wish to debug errors in their PHP software, such as Wordpress or Joomla.
Regrettably, we cannot provide support for such debugging/programming.
PHP has some internal mechanisms designed for debugging, here are a few tips to get started.
Activate display of PHP errors
Customers are able to enable PHP errors, which will be displayed directly in the browser.
This may be activated in the control panel:
- Log in to the control panel with your user account.
- Click My domains
- Click the relevant domain
- Click Web hosting at the top of the page
- Click View/Change to the right of PHP.
- Check the box for Display PHP errors
- Save the changes by clicking Change
Alternatively PHP errors may be activated through uploading a file on your web hosting. Create a file named
.user.ini in your document root (usually the
www folder) with the following contents:
display_errors = On display_startup_errors = On
It may take up to ten minutes for the changes to take effect.
Use this functionality only for testing, as it may reveal secrets about your website, such as the database passord.
Logging to file
You may find detailed information about error logging in PHP in PHP's error function configuration documentation.
We also permit customers to perform some configuration changes via
.user.ini, error logging is one of the possible configuration changes here.
error_log = /home/1/m/mydomain/php-error.log
This logging may slow down PHP a bit, and pay attention so that it doesn't consume all available space on the webhotel; remember to delete the file regularly.
PHP also has functionality for logging errors directly to an error log from your source code.
We recommend logging to a specific file, to avoid confusion with the error logging configured in
WordPress specific debugging
WordPress lets you toggle its own debugging mode in
/** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. */ define('WP_DEBUG', false);
true to enable debugging messages.
Testing on our login server
As a customer with Webhotel Medium or greater, you also have Unix shell access on our login server. You may use this to test your PHP 5.5 software via the command line. Please be careful with your resource usage, the login server is used by many others.