9951 explained code solutions for 126 technologies


supervisorRun GUI commands (export display)


[program:name]
command=php /home/user/gui.php
environment=DISPLAY=:0ctrl + c
name

pick any name for the process you want to run

command

command executable (php script in our case)

DISPLAY=:0

set display environment variable to enable GUI apps