To test your extension in real-life conditions, install it to Plesk by logging in to Plesk as the administrator and adding the extension on the Server Management > Extensions page. Below you will find Plesk configuration parameters that help you easily debug your extensions. Be sure to comment the parameters (by adding the leading ; symbol) after you complete testing and decide to use Plesk in production.
How to Improve the Verbosity of Debug Information
If your extension uses the Plesk GUI and it exits with an error or an exception, you should see the PHP stack trace. If you do not see it, and, say, see only a blank screen, try to improve the verbosity level of the debug output by adding a few lines to
panel.ini. The file path is:
If you do not have this file, create it.
Open the file and add the following lines to it:
Then, turn on PHP error reporting in
php.ini. The file path is:
Open the file and edit the
display_errors = On
Restart the the web server which handles requests to the Plesk GUI:
How to Prevent Inconsistency Between Code and Results
If you are testing an extension on Linux, you may run across the problem with inconsistency between your code and expected result. The inconsistency happens because Plesk content is cached, so the cache must expire before you see the update. To mitigate this problem, turn the Plesk cache off. This is also triggered in
php.ini by the following line:
apc.enabled = 0
The change will take effect after you restart the web server which handles requests to the Plesk GUI. The restart command is as follows:
Leave your comments on this page
Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.