php56 package installation in FreeBSD 11

Hi Team,
We want it to install php56 package on FreeBSD server but while doing that we are getting the below error, as FreeBSD 11.1 can we install these packages? or we need to upgrade the server to the latest version, so guys please help me with this query. Thanks, in advance.

Code:
root@XYZ:/etc/pkg # pkg install php56
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/meta.txz: Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/packagesite.txz: Not Found
Unable to update repository FreeBSD
Error updating repositories!
root@XYZ:/etc/pkg #
 
FreeBSD 11.1 is end-of-life since September 2018. PHP 5.6 has been end-of-life since December 2018.

 
There are no packages for 11.1, it's been end-of-life for nearly 5 years. A recent ports tree isn't going to help you either.

And note that PHP 7.4 is also end-of-life (November 2022).

Supported versions are, FreeBSD 12.4 or 13.2. I would recommend 13.2 as the entire 12 branch will be end-of-life at the end of 2023. The default PHP version is 8.1 at the moment.
 
There are no packages for 11.1, it's been end-of-life for nearly 5 years. A recent ports tree isn't going to help you either.

And note that PHP 7.4 is also end-of-life (November 2022).

Supported versions are, FreeBSD 12.4 or 13.2. I would recommend 13.2 as the entire 12 branch will be end-of-life at the end of 2023. The default PHP version is 8.1 at the moment.
Thank you so much SirDice for your all help, this is really going to help me a lot.
 
We want it to install php56 package on FreeBSD 11.1
It is not a good idea to use so old php for production sites,
but if you need it for some research or to use some old php code then
you can try to install old php using packages on the FreeBSD-11.1 DVD.iso image.
Another way is to use old ports tree when FreeBSD 11.1 was supported, and compile required php using ports.
Some files required for the old ports may be inaccessible, but I hope that someone like me should have a backup of the old directory /usr/ports/distfiles with a cache of the old sources.

Be careful! Don't allow any access from the internet to the webserver with completely outdated php and php code.
 
Back
Top