How to install PHP5.2 environment on Ubuntu 14.04
I have a specification website that php version is very old ---> PHP Version 5.2.17 (if need, i can offer all phpinfo list detail.)
So Anyone can teach or help how to install php 5.2.17 version environment on linode virtualhost ?
EX:
--Under php 5.3 version or higher:
--Under php 5.2 version: <=>
and other deprecated function of php 5.2 version , I am sure that all you Senior can totally understand my meaning.
thank you very much.
James
6 Replies
PHP release archives
Anyway, the short opening tag (
But I really need to set the environment of php 5.2 …(php5.3 not work for my website,I tired…)
Today I tried to install php5.2.17 and others is…
Unbuntu 12.04
php: 5.2.17
mysaql: 4.0
When "make instal"l php5.2 , there is a issue that I check php version and key in "php -v", it show php 5.2 ,
but when I created a php file inside of code is phpinfo(); the browser show php 5.3
Can anyone know what happened?
thank you !
James
Efforts to install php 5.2 are wasted (again, in my opinion) because that php version is unmaintained, has security issues and will lead to serious problems down the road.
Focus on fixing your app now to work with php 5.3. The changes from 5.2 to 5.3 were not major. Run php 5.3 with CentOS 6 and you have 4 years to plan for your next upgrade.
@mag620:
When "make instal"l php5.2 , there is a issue that I check php version and key in "php -v", it show php 5.2 ,
but when I created a php file inside of code is phpinfo(); the browser show php 5.3
:| Can anyone know what happened?
PHP includes multiple binaries. One is the CLI executable, which is what you're calling when you use the "php -v" command. Another is the Apache module, which is what you're using when you call a script from your browser. You need to remove your distro's PHP 5.3 Apache module and replace with with the one that you just compiled.
Next step: Do your best to hide the fact that you're running such an outdated version of PHP, because if someone finds out, your server will be pwned
@sleddog:
In my opinion you should be focusing your efforts on getting your site working with php 5.3. CentOS 6 provides php 5.3 and supports it for security updates until 2020.
Efforts to install php 5.2 are wasted (again, in my opinion) because that php version is unmaintained, has security issues and will lead to serious problems down the road.
Focus on fixing your app now to work with php 5.3. The changes from 5.2 to 5.3 were not major. Run php 5.3 with CentOS 6 and you have 4 years to plan for your next upgrade.
Thanks a lot for update!
I had recommend my boss and maybe I still need to do the stuff….
James
@hybinet:
@mag620:When "make instal"l php5.2 , there is a issue that I check php version and key in "php -v", it show php 5.2 ,
but when I created a php file inside of code is phpinfo(); the browser show php 5.3
:| Can anyone know what happened?
PHP includes multiple binaries. One is the CLI executable, which is what you're calling when you use the "php -v" command. Another is the Apache module, which is what you're using when you call a script from your browser. You need to remove your distro's PHP 5.3 Apache module and replace with with the one that you just compiled.
Next step: Do your best to hide the fact that you're running such an outdated version of PHP, because if someone finds out, your server will be pwned
:oops:
Thanks for update!!
I will try to check apache module with php5.2.
Next Step: Yes, It's so bad to do this….but thank you!