-2

I am trying to install PHP version 5.2 on CentOS with WHM 86 on EasyApache 4.

I am following this link https://linuxadmin.io/php-5-2-in-a-cpanel-easyapache4-enviroment/

These line give me error, can someone guide me what does these line of code do as mentioned in the screenshot. https://i.stack.imgur.com/v36Wu.png

I am stuck here, any help in this regard will be highly appreciated.

Greg
  • 5,862
  • 1
  • 25
  • 52

1 Answers1

0

PHP 5.2 has been EOL'ed a long time ago. You shouldn't be using it. If you absolutely need to run it, I'd advise you to use HardenedPHP by CloudLinux. They've decided to patch old versions of PHP and make them less insecure. It's a part of their CloudLinux distro, so you'll have to pay in order to use it - but it's the only thing I would recommend if you want to use such an old and insecure version of PHP. CloudLinux is supported by cPanel, and you can migrate from CentOS in a matter of minutes.

If you're fine with using non-patched PHP 5.2, you can also install it from a vendor: Vendor-provided PHP versions - cPanel. I advise against doing it, but it's up to you.

Dennis
  • 56
  • 7