Enabling Debug Mode for User Plugin
The cPanel end-user plugin provides a debug mode for use troubleshooting problems. Debug mode is disabled by default.
You should enable debug mode if the plug-in displays the "an error has occurred" message.
Enabling Debug Mode
-
Create the plugin configuration by copying the default file:
cp /usr/local/xvarnish/ui/cpanel/configuration.php-default /usr/local/xvarnish/ui/cpanel/configuration.php
-
Open this new file using your favorite editor:
nano /usr/local/xvarnish/ui/cpanel/configuration.php
-
Change constant
DEBUG_MODE
to a boolean true value as shown below. Save your changes.define('DEBUG_MODE', true);
-
Reload the cPanel end-user plugin to see additional debug information on the error.
-
Revert
DEBUG_MODE
to boolean false once you are finished.