First, login to your server from terminal using root
ssh root@YOUR_IP_ADDRESS
Second, run this command to download the browscap file
wget http://browscap.org/stream?q=Lite_PHP_BrowsCapINI -O /etc/php-extra/browscap.ini
Third, setup this browscap to your php.ini
For example, I want to setup to PHP7.4
Create new file using text editor, vi or nano for example,
nano /etc/php74rc/conf.d/browscap.ini
then add this content to this file and save it
[browscap]
; http://php.net/browscap
browscap = /etc/php-extra/browscap.ini
Fourth, reload the PHP-FPM by running this command
systemctl reload php74rc-fpm
Done!
You can repeat the step by step above for other PHP versions, if needed.