Rahul Gupta Rahul Gupta - 2 years ago 106
PHP Question

PHP "AT command" not executing on nginx ubuntu 16.04

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.

Answer Source

Hi We have found the solution you need to remove WWW-DATA (ie. server) from your /etc/at.deny file .

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download