When nginx executes a PHP script, it works just fine. However, if I try to start the same script from the command line, I get a bunch of fatal errors:
I suspect that nginx uses a different conf file than the CLI. Can you direct me to a resolution?
Code:
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/lib/php/20200930/curl (/usr/lib/php/20200930/curl: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/curl.so (/usr/lib/php/20200930/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0