I have it narrowed down to pulseaudio. If I edit the .conf file and 
set  autospawn = no, the script launches without error, but I get no 
sound. If I set  autospawn = yes, I get the error about /var/www from 
pulseaudio, and still no sound.


The script launches fine from cron or terminal window.