Skip to content
Advertisement

Unable to locate package php8.1-geoip

I am upgrading a system from PHP 7.4 to 8.1 using as base Ubuntu 22.10.

In the old image, we are using php7.4-geoip, but this package doesn’t exist in PHP 8.1.

JavaScript

Unable to locate package php8.1-geoip

What is the procedure to migrate to a newer version?

Advertisement

Answer

This package isn’t available yet, however you can install via composer.

Ensure GeoIP is installed on the machine:

JavaScript

Install via PHP Composer:

JavaScript

Quick test script to ensure it’s all working:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement