Currently, I have PHP 5.2.11. We have a new project to be deployed which uses Symfony Framework and uses a higher php version. We can't upgrade to a newer version since there are a lot of running application which uses the lower version. So in this case, I need to install another PHP version for it to run. I already searched for some tutorials yet I ended up confused. I would really appreciate your help with this. I'm using Red Hat Enterprise Linux AS release 4 by the way.
Thanks in advance.
You can easily install multiple versions of php. The problem is that it's difficult to associate multiple php versions to web server simultaneously. For testing purpose you can use built in web server of php.
1) Download php source from http://php.net/downloads.php
2) tar -xvf php-5*
3) cd php-5* && ./configure --prefix=/usr/local/bin/php && make && make install
4) /usr/local/bin/php -v
5) cd your_symfony project
6) /usr/local/bin/php -S ip:8080
7) Take ip:8080 in browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With