How to install old php version 5.2.17 on new gentoo system?

I just refresh install new Gentoo system.
I did install php on it, it php 5.6.
It looks my old php code have lots of issue.
How to install old php version 5.2.17 on new gentoo system?

Thanks
TimSenior PHP DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
php 5.2 is EOL, so it's no longer included among the packages: https://packages.gentoo.org/package/dev-lang/php

5.4 is the oldest you can install/compile automatically.

Your other option is to find the source for 5.2 somewhere and compile directly from source. Not recommended, but should work.

HTH,
Dan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
Strongly recommend that you not install a back-level version of PHP.  You should be on the most current version, and if it means a little work to refactor your old code set, just do it.  The old PHP versions contain known errors and security holes and if you choose to use the old versions, you are making yourself (and your clients) into the hackers' attractive prey.

Current versions of PHP are always listed on the upper right corner of PHP.net.
http://php.net/

PHP publishes migration guides that tell you exactly what changed from release to release.  Start here and work your way up through the migration chain till you get to a current stable release:
http://php.net/manual/en/migration53.php
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.