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.

Support

Cannot run GPM on win cmd

admin first-time solved

Solved by pamtbaau View solution

Started by Hellen 6 years ago · 4 replies · 1764 views
6 years ago

Hi there. I'm dummy with grav, so maybe my issue is simple.. but can't find a solution on the web.
I've installed Grav on my Windows 10 pc and i'm trying to add some plugins with GPM.
I go to cmd and type php -v
and it's ok, php application is added to windows system.
So I type C:\WINDOWS\system32>php bin/gpm index
or C:\WINDOWS\system32>php grav/gpm index
or backslash too, but i always get "Could not open input file: bin\gpm"
I checked OpenSSL support: enabled and cURL support: enabled
What is lacking? Thank you!

6 years ago

Slash-direction is not a problem anymore on WIndows, but is this the right folder? You probably need to run the commands in the right folder, so cd C:/My/Grav/installation before you run these commands.

6 years ago

Same result.. as php.exe is into C:\xampp\php\ folder, i type
C:\xampp\php>php grav/gpm index
and get
Could not open input file: grav/gpm

6 years ago Solution

@hellen_sfms Mistakenly you changed your working directory to the php installation.

As OleVik said, you have to change your working directory to the root of your Grav installation.

That's the folder in which you unzipped grav-admin-v1.6.23.zip or grav-v1.6.23.zip. Considering you are using Xampp, it will probably be something like C:/xampp/htdocs/grav-admin

TXT
> cd C:/xampp/htdocs/grav-admin
> php bin/gpm index
6 years ago

It works. Thanks a lot for your help, issue solved!!

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago