• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

running command line and php

S

stuayre

Guest
Hi,

im trying to write an automated setup script in php
but i can't seem to get the domain.sh or any of the other
command line tools to work in PHP.

I've tried...

Code:
exec('usr/local/psa/bin/./domain.sh -i mydomain.com',$result);


Code:
exec('/usr/local/psa/bin/./domain.sh -i mydomain.com',$result);


Code:
exec('../../../../usr/local/psa/bin/./domain.sh -i mydomain.com',$result);


but $result is always empty, it works fine from shell, how can I run these programs from within PHP?


cheers

Stu
 
Just to answer my own question


this is the only one that works

Code:
exec('/usr/local/psa/bin/./domain.sh -i funkygroup.com 2>&1',$status);


but it always errors with "Permission denied"


does anyone know what i need to do to get this to work?



cheers

Stu
 
Back
Top