Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configured my domain to use PHP 5.5.30 ... but when I SSH into the server, bash is telling me that the php -v is 5.4.13

Why does bash use a different version of PHP, even though when running .php scripts at the domain level, the version is 5.5.30? Also, phpinfo() confirms 5.5.30

share|improve this question
    
How did you configure your domain? – blissini Nov 13 '15 at 12:30
    
The options are all within Plesk. – dcolumbus Nov 13 '15 at 16:26

You configured your php version per domain. The purpose of this is to different php versions on different domains. The shell you get, when you connect to your server does not have the same environment that you configured in your domains.

share|improve this answer
    
So I must just suffer with an older version of PHP when connecting via SSH? – dcolumbus Nov 13 '15 at 16:25
    
Yes, it's probably the current version of the your distribution's package. Which dístro is your server running? – blissini Nov 13 '15 at 21:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.