Reputation: 23
php sample code Not working on server:
exec('echo "hello world" | at now + 2 minutes');
On terminal same code successfully getting executed below code :
echo "hello world" | at now + 2 minutes
We are using php 7.0, ngnix, ubuntu 16.04 i am able to execute exec("sudo php -v"); successfully.
Upvotes: 2
Views: 78
Reputation: 881
Hi We have found the solution you need to remove WWW-DATA (ie. server) from your /etc/at.deny
file .
Upvotes: 1