Hi.
Sorry, I not used php-thttpd. I use only busybox@httpd, two times
From lighttpd this cgi-script not working, buf if you change name x to x.cgi, will work.
Idea: If script run from php-thttpd, but not wol, change user in script by su or sudo.
George