Hey there,
I would like to use exec in post-install.php to register and mailhandler (see https://talk.plesk.com/threads/extension-dev-handling-mails.338811/).
But I get:
Also using "su" doesnt help (ask for password).
Heres the Script
What can I do to make this work?
I would like to use exec in post-install.php to register and mailhandler (see https://talk.plesk.com/threads/extension-dev-handling-mails.338811/).
But I get:
Code:
root@v22016081573736335:~# plesk bin extension -i /root/PMSP-0.1-2.zip
exit status 255
exit status 255
The extension was successfully installed.
Also using "su" doesnt help (ask for password).
Heres the Script
PHP:
<?php
exec("plesk sbin mail_handlers_control --add --priority 50 --queue=before-queue --type global --executable /opt/psa/admin/htdocs/modules/PMSP/mail-handler.sh --enabled --name PMSP");
exec("plesk sbin mail_handlers_control --add --priority 50 --queue=before-sendmail --type global --executable /opt/psa/admin/htdocs/modules/PMSP/mail-handler.sh --enabled --name PMSP");
What can I do to make this work?
Last edited: