I am trying to run a PHP script from the CLI (command line interface) and get this error as if PHP curl is not loaded.
Fatal error: Call to undefined function curl_init()
I have been looking and tried many solutions on here and no results.
What I have done
- Updated PHP
- Updated Linux system
- Installed php-curl extension
- Copied over Apache php.ini to cli/php.ini
What does work
- Running curl_init from Apache (web request)
- Running the command: php5 -q file.php (This works but I get another error regarding the class Thread not being loaded, but seems curl_init should be easier to fix)
