Running Gui App with PHP

view story

http://askubuntu.com – I want to run chronium and avconv from a page of my website. How can i make www-data user/group able to launch x11 applications? Thanks very much. edit: I am now able to start chronium , i have changed user and group to my own ones. Still can't use avconv, the string i use to try to record is this: avconv -f x11grab -show_region 1 -video_size 1024x768 -framerate 24 -i :0.0 -threads 2 -q 1 -bt 8000000 -b 8500000 /home/alessandro/condivisa/video.mkv (HowTos)