Skip to content

System requirements ​

Check that your site meets the WordPress and PHP minimums, find your versions in WordPress, and see what changes for visitor countries on PHP 8.0.

Link Manager Pro needs WordPress 6.0 or later and PHP 8.0 or later. Those are the only version minimums. One extra: reading visitor countries from the country database, a free download, needs PHP 8.1 or later.

Link Manager Pro needs WordPress 6.0 and PHP 8.0 at least, and PHP 8.1 to read the country database.

SoftwareMinimumIf your site is below it
WordPress6.0Update WordPress first. WordPress stops the install or the activation.
PHP8.0Ask your host for a newer PHP. WordPress stops the install or the activation.
PHP, for the country database8.1The plugin works, but it can't read the country database (details below).

WordPress checks the first two numbers itself. If your site is below them, it stops and shows a message with your version and the one the plugin needs.

How do you check your WordPress and PHP versions? ​

WordPress shows both under Tools › Site Health, on the Info tab: the Version row under WordPress, and the PHP version row under Server. You need an administrator account.

  1. In WordPress, go to Tools › Site Health.
  2. Select the Info tab.
  3. Open WordPress. The Version row is your WordPress version.
  4. Open Server. The PHP version row is the PHP version your site runs on.

Is PHP too old? Ask your host to move your site to PHP 8.1 or later. Some hosting control panels let you change it yourself. Then check the PHP version row again.

Which PHP version does the country database need? ​

The country database needs PHP 8.1 or later. On PHP 8.0, Link Manager Pro runs and records clicks as usual, but it can't read the database. With the default settings, those clicks then have no country.

The country database (GeoIP) is a free download of about 7.5 MB. You get it under Link Manager › Settings › Tracking, in the GeoIP database row, with Download database. A visitor's country shows up, for example, in the country figures of your click reports and in the Country condition of routing rules. Which clicks are recorded at all is on How clicks are counted.

On PHP 8.0:

  • The GeoIP database row says the server runs PHP older than 8.1, so the database can't be read. Visitor countries then come only from trusted CDN or proxy headers.
  • Setup doesn't offer the download. The Tracking settings still do, but the downloaded file isn't read until your site runs PHP 8.1 or later.
  • Site Health shows a recommended test titled Visitor countries need PHP 8.1 or newer.
  • A Country condition is never met while the country is unknown. If no routing rule matches, the visitor goes to the short link's own destination.

How Link Manager Pro finds the country, in this order:

  1. Cloudflare. When a visit comes from one of Cloudflare's published addresses, Link Manager Pro reads the CF-IPCountry header on its own, with no setting.
  2. A two-letter country header from another CDN or proxy: CF-IPCountry, then X-Country-Code. Link Manager Pro reads these only after you trust that header (see below).
  3. The country database, once it's downloaded and your site runs PHP 8.1 or later.

If neither gives a country, the click has none.

Get more out of it ​

Behind a CDN or proxy that sends a CF-IPCountry or X-Country-Code header, you can get visitor countries on any PHP version. A CDN is a service such as Cloudflare that sits in front of your site and passes each visit on to it. Cloudflare needs no setting, because Link Manager Pro recognizes it by its published addresses.

  • Trust another CDN's country header. Go to Link Manager › Settings › Advanced and turn on Trust proxy headers (it's off by default). If your CDN sends one of those two headers, countries then work on PHP 8.0 too, with or without the database. A country header under any other name isn't read. When both are there, the header wins. The same switch also makes Link Manager Pro read the visitor's IP address from forwarded headers.

    WARNING

    Turn on Trust proxy headers only if every visit really comes through your proxy or CDN. Otherwise a visitor can send a made-up country or IP address.

  • Trust only your proxy's addresses. Under Trusted proxy IPs or CIDR ranges, enter the addresses your CDN or proxy connects to your site from, one address or range per line. A line that isn't an IP address or range is refused when you save. A CIDR range like 203.0.113.0/24 covers a whole block of addresses. Once the list is filled, Link Manager Pro trusts the headers only on visits from those addresses, whatever the switch says. Select Save changes after either change.

  • Copy your versions for support. Once the plugin is active, administrators can open Help & Support: the life-buoy icon at the right end of the plugin's header. Select System information. It lists your WordPress and PHP versions, your server, themes and plugins, among other things. Copy puts it all on your clipboard for a support request.

If something goes wrong ​

  • If WordPress refuses to install or activate the plugin and names a version, then update that software. For PHP, ask your host. Then activate the plugin again, or upload the zip again if the install stopped.
  • If the GeoIP database row says the server runs PHP older than 8.1, then ask your host for PHP 8.1 or later. Behind a CDN, you can trust its country header instead (Get more out of it).
  • If reports show no countries behind a CDN other than Cloudflare, then check that it sends a CF-IPCountry or X-Country-Code header and that Trust proxy headers is on. If you filled Trusted proxy IPs or CIDR ranges, check that it holds the addresses your CDN connects from.

More fixes are on Troubleshooting.