I try to use the php running the python:
<?php $command=shell_exec('sudo python /var/www/html/FacialRecognition/simpleCamTest.py 2>&1'); echo $command; ?>
But the result show in chrome:
Unable to init server: Could not connect: Connection refused (frame:2143): Gtk-WARNING **: cannot open display:
I try any method to fix, but still not work.