I use PHP exec function to run some python scripts. I was using apache and it was logging all errors in error.log file. Whenever there was syntax error or anything, it was being logged in apache error log. But Now I have installed nginx and php-fpm.
The problem here is that whenever there is error in python, the nginx does not log anything in error.log. The $output passed as second argument in exec is also an empty array. So now there is no way I can get errors from python or terminal. Please show me the way to get those errors....