Can anyone help me with automating OpenVZ containers with PHP? I have tried some methods but couldn't make the shell commands work with PHP.
Following methods that I tried:
Function like
shell_exec()
,exec()
with and without sudo.Create a PHP script to execute
vzlist
and executed with cron jobs as root but no luck.Edited sudoers
Tried this: Execute root commands via PHP but still it do not work when i open file php file that run
php_shell.sh
in browser.
Anyone have any ideas?