I have apache2, php5 installed. I'm trying to execute the next code in my php script
chdir('/var/www/'); shell_exec('/usr/bin/omxplayer -o hdmi "'.$file_name.'" < omfifo &'); shell_exec('echo -n . > omfifo');
$file_name is a file and it does exist in
www-data user is in sudoers file.
shell_exec does work I checked it with this code
<?php shell_exec('sh boo.sh'); ?>
echo "Download finished" | wall;
When I execute the code with omxplayer in just a console it works fine. I can also launch omxplayer from php without using pipes, but I do need them.