This article describes how to setup a development environment for creation of Plesk extensions.
Creation of a new Plesk extension can be started from generating a new stub. To do this log in to a machine with Plesk installation and type the following command:
# plesk bin extension --create my-extension
Here is an example of output:
The extension was successfully created.
The path to extension's entry points: /usr/local/psa/admin/htdocs/modules/my-extension/
The path to PHP classes: /usr/local/psa/admin/plib/modules/my-extension/
The path to installation scripts: /usr/local/psa/admin/plib/modules/my-extension/scripts/
The path to the directory with run-time data: /usr/local/psa/var/modules/my-extension/
This command will create a new extension named “my-extension”. It will also provide information about where extension parts are located on the file system.
Read the rest of this entry »