PHP works via fastcgi (nginx) but not via CLI

aagaag

New Member
Joined
Jan 8, 2022
Messages
3
Reaction score
1
Credits
30
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:
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
I suspect that nginx uses a different conf file than the CLI. Can you direct me to a resolution?
 



Members online


Top