linux - PHP execute asyncronous php script in shell command doesn't work on bitnami LAMP AWS -



linux - PHP execute asyncronous php script in shell command doesn't work on bitnami LAMP AWS -

on local machine execute following:

exec('sudo nohup '.php_bindir.'/php '.root.'/index.php controller=imports action=import id=12 > /dev/null 2>&1 &');

where "root" constant finish path.

everything works fine , script executed asyncronously no problems.

when run same script on production environment (a bitnami lamp stack running on aws) instead: if run straight terminal works, when run php doesn't.

i have nil in apache error_log , if run shell_exec returned value null.

if seek execute different script php (like exec('whoami')) works, don't think permissions thing.

i tried replacing php command php-cli, nil changes.

hope can help.

thanks in advance.

php linux shell asynchronous amazon-web-services

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -