Код: Выделить всё
shell_exec("source ~/.bashrc");
Код: Выделить всё
sh: 1: source: not found
Код: Выделить всё
shell_exec("pm2 restrat 3");
Код: Выделить всё
sh: 1: pm2: not found
Подробнее здесь: https://stackoverflow.com/questions/792 ... tu-via-php