I am running uBuntu 12.04.3, 32 bit OS on a 8 CPU, 8GB RAM 64-bit Intel Xeon machine. I have installed all backports as well.
I have this problem which is eating my head for the last 3 days. I created a play.sh file with the following code...
Code:
#! /bin/sh
vlc -vvv sasural.ts
Where sasural.ts is a video file that resides under home and in the same level as Apache. I am invoking the .sh file by using the following PHP code...
Code:
shell_exec('play.sh');
I also tried both the exec() / system() methods to invoke the .sh file.
Whenever I do so, I get the following message...
VLC media player 2.2.0-git Weatherwax Command Line Interface initialized. Type `help' for help. > Shutting down.
play.sh works if I execute it from the terminal command prompt outside of the PHP code. I guess I am doing something wrong when I invoke it from within PHP.
I have performed the following tasks...
- Given Apache Root Access
- Linked all folders to Apache
-vvv
option? I useVLC media player 2.0.8 Twoflower
and I have no problem.