Hi, I'd like to be able to click a button on a web interface, and have an audio file play locally on the server.

I'm using Apache 2.2 in Ubuntu 7.04.

I've tried simply using shell_exec and mplayer, but I cannot use su or sudo to play the file as the user logged into the desktop and the apache user does not appear to have access to the soundcard.

The apparent problem from the command's output for just...