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

Bin/gpm not working!

Started by Muut Archive 11 years ago · 20 replies · 2881 views
11 years ago

This is the error is got when I click on the gpm in bin.

"FATAL: Must be run from ROOT directory of Grav!logout"

[Process completed]

PLEASE HELP!!

11 years ago

You are clicking it directly in the bin folder, so it doesn't work. You must open your console/terminal, go to the root of your grav installation (where the README, LICENSE and index.php are) and call it from there with gpm bin/gpm. That's where it works.

11 years ago

Yes you should be in the root of Grav not in the bin/ directory itself.

11 years ago

I ALWAYS get the "FATAL" error. Even from the Grav root.

11 years ago

It is supposed to be run from the command line, from the root of the installation, like this: bin/gpm <command>

11 years ago

Not 100% sure on the OS. It's on a 1and1 shared host. I have access to the command line which is where I run this.

11 years ago

I've seen other reports from users having trouble with 1and1. It's a discount hosting service and seems to have quite a restrictive environment.

Can you please confirm if all the PHP requirements are met

You can do this by using:

BASH
$ php -i | more

And paging through the list of output.

11 years ago

The requirements 1and1 is missing are xdebug, xcache, and apcu. Would those affect the cli?

11 years ago

Those are optional modules, so you can skip them although xcache & apcu are recommended for optimal performance

11 years ago

Hi - could you solve the problem? I'm on 1und1 to and have the same problem ... I have to use $php5.4 bin/gpm <command> to use php5.4 ... without this php4.4.9 is the system standard ... is there a way to use gpm on 1un1? Thanks a lot!

11 years ago

Now I tried to install manually ... it doesn't work ==> first he cant find the Swift.php - I have copy the file from swift to Swift ... but now I have an Internal server error when I go to /admin ... ;( ==> is there someone who get Grav run on 1und1?

11 years ago

You can set the php5.4 as your default PHP by adding it to your path in front of the standard location. Although not identical you can see how to do it for Siteground hosting here:

SiteGround Hosting Guide

11 years ago

done - but still the same problem => website is working, but bin/gpm, bin/grav say Fatal Error and the admin plugin give me an Internal Error ...

11 years ago

@honingmann, your clearly running a CGI/FCGI version of PHP in your screenshot. You need to be running a CLI version. type php -v to see..

11 years ago

php -i | more shows php 4.4 on 1and1 despite having selected 5.5 for the domain I am testing.

Changing the top line of the scripts like grav from

!/usr/bin/env php

to

!/usr/bin/env php5.5

has resolved many issues, but not the FATAL must run from ROOT message. Maybe I need to find more places to change to 5.5...

Also, 1and1 required .htaccess to uncomment the line

RewriteBase /

in order to not get a server 500 error when accessing any page but the root page.

11 years ago

Be careful: the domain specific php settings on your 1und admin panel don't effect the CLI version you are running on your terminal ssh connection. You need to call something like "/usr/bin/php5.5-cli" to get the cli version to work properly. Or you could define an alias for it via .bashrc…

tl;dr:
for example instead of bin/gpm selfupgrade you need to type /usr/bin/php5.5-cli bin/gpm selfupgrade

11 years ago

To solve the FATAL: Must be run from ROOT directory issue you might need to prefix bin/grav commands with php-cli. So the full command would be php-cli bin/grav clear-cache for example.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1335 9 years ago
Archive · by Muut Archive, 9 years ago
2 925 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2940 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago