Open full view…

How to tun grav install on Windows?

Benny Neugebauer
Sat, 09 May 2015 16:51:08 GMT

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

Benny Neugebauer
Sat, 09 May 2015 16:58:54 GMT

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". :'(

Benny Neugebauer
Sat, 09 May 2015 17:05:38 GMT

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

Sat, 09 May 2015 19:20:23 GMT

Glad you got it sorted!

Mathias Merlet
Thu, 06 Aug 2015 10:38:46 GMT

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

Benny Neugebauer
Thu, 06 Aug 2015 10:48:20 GMT

@Mathias: Maybe this video helps you?

Mathias Merlet
Thu, 06 Aug 2015 11:11:15 GMT

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'.

Fri, 07 Aug 2015 20:40:01 GMT

@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 ( 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 --- 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.