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

Question from a newbie about GPM (Grav Package Manager)

Started by Muut Archive 11 years ago · 6 replies · 718 views
11 years ago

Hi all
I'm lost. I'm a joomla user and i want to test Grav
On my apache server, external 1&1, I have unzipped the package in a directory and i ve got an Successful Installation page on my test subdomain
I can read on learning page "To install a plugin, simply type bin/gpm index "
but where and how i can found windows to type and run the following gpm command

thanks

11 years ago

You need to have a shell/terminal login to your server in order to execute those commands. Most hosting providers allow access via SSH (secure shell), so this is how you need to connect to the server in order to execute those bin/gpm commands.

11 years ago

Thanks for your quick answer

i have installed Putty but i have the same error when i run the 2 command lines grav/bin/gpm selfupgrade -f and grav/bin/gpm install admin
-- html
(uiserver):u544681xx:~ > grav/bin/gpm selfupgrade -f
X-Powered-By: PHP/4.4.9
Content-type: text/html

<br />
<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in <b>/homepages/22/d294493xxx/htdocs/grav/bin/gpm</b> on line <b>13</b><br />
(uiserver):u54468182:~ > grav/bin/gpm install admin
X-Powered-By: PHP/4.4.9
Content-type: text/html

<br />
<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in <b>/homepages/22/d294493xxx/htdocs/grav/bin/gpm</b> on line <b>13</b><br />
(uiserver):u54468182:~ >

11 years ago

Concerning php info
it is strange
ssh client give me number 4.4.9
but if i load php info on my website folder i have the number 5.6.12

11 years ago

Yah your need to ensure you run the correct CLI version of PHP. Your hosted server is not configured to use a more recent version. This is a common problem with hosting providers. They are pretty lazy about setting things up for CLI use.

Even if your hosting provider is not listed, check out the hosting section on the learn site because they each outline how to ensure you are running the correct version of PHP in the CLI. Other than that you can contact your hosting company and ask them to help you out there.

BTW it's bin/gpm when in the root of the Grav site, not grav/bin/gpm

11 years ago

I have found a solution to run CLI and install admin Panel+user with 1&1

i follow tuto below to install composer.phar in my webhosting
http://community.1and1.com/using-php-composer-at-1and1/
SSH client I type
1) curl -sS https://getcomposer.org/installer | /usr/bin/php5.5-cli
2) /usr/bin/php5.5-cli composer.phar

then i can run installtion with SSH client by typing

3) cd grav
to go to the good directory

4) /usr/bin/php5.5-cli bin/gpm install admin
installation of admin panel

5) /usr/bin/php5.5-cli bin/grav newuser
installation of user

i have also uncommented RewriteBase / in .htaccess to open the admin panel

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