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

How to tun grav install on Windows?

Started by Muut Archive 11 years ago · 7 replies · 1910 views
11 years ago

Hello, I am very new to Grav and I want to execute "bin/grav install". How can I do that on Windows?

11 years ago

I cloned grav into "C:\xampp\htdocs\grav" and opened the MINGW32 "Git Bash" terminal. From there I executed "cd /c/xampp/htdocs/grav" and "bin/grav install" but then I only get the response "/usr/bin/env: php: No such file or directory". :'(

11 years ago

Ok! Got it! I had to add "C:\xampp\php" to my system environment variables. Sorry for bothering you guys! :)

11 years ago

I have the same problem! where did you add the root path?

11 years ago

Thanks for the quick reply didnt help my case though, I think its just not clear to me how to use git-bash with grav, it seem that I am running in circles... I have grav installed and now I would like to try the admin panel in the doc it states it can be installed like so: '$ bin/gpm install admin'.

11 years ago

@Mathias: I had this issue just a moment ago myself. I'm running Grav on USBWebserver (stand-alone server package similar to Xampp) on Windows 7.

1) First install Git for Windows (http://msysgit.github.io/). Just use the default settings when installing.

2) Add the php root path to the Windows System Environment variables: click Start > type "env" in "Search programs and files" > select "Edit the system environment variables" > select "Environment Variables" > Edit the system variable "Path" and add the full path to where you have installed php (for example

TXT
C:\{some folder name}\php).

3) Go the root folder of Grav using Windows Explorer. Here (right-click) and choose "Git Bash". You now enter the Terminal program where you can use the Grav CLI (you'll see the $-prompt). Here you can enter for example:


bin/gpm selfupgrade -f


to upgrade Grav to the latest version. Follow the blog post to further install the Admin plugin.

This worked for me. I now have the Admin beta running on my local installation of Grav running on Windows using USBWebserver :) :)

If you need further help, let us know.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2933 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago