Question from a newbie about GPM (Grav Package Manager)

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

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.

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


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



Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /homepages/22/d294493xxx/htdocs/grav/bin/gpm on line 13

(uiserver):u54468182:~ >

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

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

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


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

  1. cd grav
    to go to the good directory

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

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

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

Glad you got it sorted!