0

I have a server which have both PHP 5.2 and 5.3 on it, default version is 5.2 and whenever i uses command "php" it takes the 5.2 version. Is there any way i can specify the version while running command? php -v only display the version.

For application i use .htaccess to set version, like AddHandler application/x-httpd-php53 .php

Is there any similar way while using command "php"

1 Answer 1

2

/usr/bin/php5.3 but using your path to the correct php version. You can use which php to find the path.

If you don't want to type the full path, you can setup an alias in your .bashrc

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.