Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Curl errors and no cli commands in Windows

plugins solved

Started by Chris Brown 7 years ago · 0 replies · 1846 views
7 years ago

Having installed GRAV on Windows 10 and started using Mamp I ran into the problem documented elsewhere that I couldn't run cli commands like gpm and plungin because of the folloing error:

FATAL: DEVTOOLS requires PHP Curl module to be installed

This problem has been discussed elsewhere on the forums (ref. /forum/archive/unable-to-use-cli-commands-keep-getting-curl-errors-t4375). It took me a while to join the dots and solve so I'm posting the solution I found.

Searching the forums, I located the php.ini file for the server (make a php script with <?php phpinfo() ?> and run it in your browser, find "loaded configuration file" and read off the location for php.ini). I checked this file, and the _extension=php_curl.dll_ line was uncommented. This was confirmed further down on the php info page in the browser I just called up in the browser - cURL support was enabled. So I was puzzled as to why the error was occuring.

However, at the command line running, php -m, curl was not listed.

Eventually I foung the problem: there are two php environments - one for the browser associated with the local server and another for the command line. Then I found a solution:

I ran the command: php --ini. This returned the php.ini path (in my case C:\Windows). As there was no configuration file loaded, I just copied the php.ini file I'd been looking at above to this location and the problem was resolved.

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 16 hours ago
5 62 10 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 63 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 63 8 months ago
Installation & Hosting · by N, 12 months ago
3 74 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 62 1 year ago