Author Topic: Running the upgrade script on 1and1 shared servers  (Read 1885 times)

Offline oxfordbromley

  • Newbie
  • *
  • Posts: 1
Running the upgrade script on 1and1 shared servers
« on: February 05, 2018, 11:57:53 AM »
Hello,

I installed Roundcube 1.2.5 on our site a while back and all is going well. Thanks for a great open-source effort.

Today I decided to upgrade to 1.3.4 and had a problem with the auto install script on the shared server at 1and1.co.uk that hosts our site. First off, /usr/bin/php is softlinked to a php4.4 executable. I fixed the shebang line in bin/installto.sh ... and then got the script dying with a rather cryptic message "Not on the shell" from program/include/clisetup.php.

For anyone using shared hosting on 1and1, the solution is:
Fix the shebang (first) line of bin/installto.sh to be
#! /usr/bin/php7.1-cli
This invokes the CLI (shell) version of PHP, and the installer then JustWorks (tm).

Hope this is helpful to others!

Jonathan