Installation on 1&1 - php version

I have just started an installation on my webspace provided by 1&1 / ionos.
Within the hosting environment the php version is 7.3 but when I access through SSH the php version is 4.4.9. When I try to install the admin plugin through gpm I get the error
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or β€˜(’ in /homepages/25/d313203090/htdocs/domain/bin/gpm on line 4

Is this a php issue I need to take up with 1&1 or is it something to be done within Grav?


1 Like

It’s a problem at 1&1, their CLI is set to an ancient, outdated, unsupported, and not to be used version of PHP. You can change the PHP version with 1&1, but it won’t necessarily affect the CLI.

A few things to try:

  1. Does which php list several available installations of PHP?
  2. Does /usr/bin/php7.1-cli --version report a PHP-version?
  3. Can you inspect /usr/bin/ to look for more up to date versions of PHP?
1 Like