I am building a dashboard to control couple different websites (each is in a cPanel separate account (including the Dashboard), but all hosted on the same server).
The dashboard will use php's shell_exec
for example to execute shell commands inside a website's directory:
shell_exec('cd /home/website/www/app/ && php artisan config:cache')
Or simply read a file:
file_get_content('/home/website/www/app/license');
Of course, by default, accounts are not allowed to have access to each other like this! Is there a way to allow one account/user to access/modify other accounts?