I’ve been trying to upgrade to 1.7 via ssh but as soon as I ran the mage-setup it would initialise then go back to command prompt.
Found a thread that suggested my hosted servers may be running a different php cli so contacted Heart Internet who said that they dont have cli installed on the servers & run PHP as cgi.
Extract from the other post below:
Turns out that STDIN, STDOUT and STDERR are automatically defined if you run php CLI for command line php programs but my site is hosted at bluehost.com and they run FASTCGI as the command line processor and it doesnât define STDIN, STDOUT and STDERR.
Therefore the solution is to change the /mage script so that it calls the CLI processor. I discovered that at bluehost.com you can run the CLI processor by doing âexec php-cliâ instead of âexec phpâ.
Therefore i edit /mage and changed line 4 to:
And that fixed the problem!!
Does anyone know if there is a way to do this via ssh without the php cli being installed?
The alternative is to upgrade via ftp which with our BB connection is about 2 days for each site if we’re lucky.