The probem is, as you suggest, on wich user execute the script. I think that the classic www-data can't use at command
Add dedicated user as normal user (adduser phpschedule); Then change user that execute php in apache from classic www-data to phpschedule