skip to Main Content

pm2 via apache server

I want to control my pm2 app via apache server. I have tried it via a bash script and php. Here is my index.php: <html> <head> <meta c </head> <?php if (isset($_POST['RightOPEN'])) { exec("/home/pi/startmm.sh"); } if (isset($_POST['LeftOPEN'])) { exec("/home/pi/channel4.sh"); }…

VIEW QUESTION
Back To Top
Search