subluminal Posted November 13, 2008 Share Posted November 13, 2008 I'm trying to control Banshee, my audio player of choice, over a web interface. 'banshee --play' works just dandy from a shell. My PHP looks like this: <?php $output = shell_exec("banshee --play"); echo $output; ?> Output looks like this: [Warn 23:11:45.015] DBus support could not be started. Disabling for this session. [info 23:11:45.033] Running Banshee 1.2.1 I tried wrapping the same thing in a shell script, which works from the command line. I get an identical error when trying to execute from PHP. Quote Link to comment Share on other sites More sharing options...
trq Posted November 13, 2008 Share Posted November 13, 2008 Likely to do with the fact that the apache user does not have sufficient permissions to access your audio devices. You'll need to add this user to the relevent groups. Quote Link to comment Share on other sites More sharing options...
subluminal Posted November 13, 2008 Author Share Posted November 13, 2008 Thanks. Tried adding to audio-- same error. Anything else? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.