WebFaction
Community site: login faq

I have clone the git repository and when I try to run it, it says my command line php is too low. 5.3.3 or above required. The current php (cli) is PHP 5.2.17 is there a solution?

asked 02 Nov '13, 01:07

DaBouncer
111
accept rate: 0%


If you need to run a specific version of PHP from the commandline you can use one of the following commands:

/usr/local/bin/php52
/usr/local/bin/php53
/usr/local/bin/php54

These will run PHP 5.2, 5.3 and 5.4 respectively.

permanent link

answered 02 Nov '13, 03:46

waynek
4254
accept rate: 27%

This one was throwing me for a loop as well when trying to run drush from the command line. Shamelessly reposting the instructions I found below:

  1. Create a symbolic link to the desired version of php (php5.4 in my case) ln -s /usr/local/bin/php54 ~/bin/php

  2. we need to change precedence of ~/bin in $PATH so that it appeared before /usr/local/bin (where original php interpreter sits) find ~/ -name .bash_profile | xargs sed -i 's/$PATH:$HOME/bin/$HOME/bin:$PATH/g'

  3. reload .bash_profile source ~/.bash_profile

http://webiga.com/2013/06/22/change-default-version-of-php-at-webfaction/

permanent link

answered 09 Dec '13, 20:08

justinlevi
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×111
×63
×7
×5

question asked: 02 Nov '13, 01:07

question was seen: 5,354 times

last updated: 09 Dec '13, 20:08

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM