How should I be setting browscap.ini file

on linux server

wget http://browscap.org/stream?q=Lite_PHP_BrowsCapINI -O /etc/php.d/browscap.ini

[browscap]
; http://php.net/browscap
browscap = "/etc/php.d/browscap.ini"

This is work for me on MacBook.

[browscap]
; http://php.net/browscap
browscap = "/usr/local/etc/browscap.ini"

use this code for install, tested on mint and debian

wget http://browscap.org/stream?q=Lite_PHP_BrowsCapINI -O /etc/php7/apache2/browscap.ini
sudo echo -e "[browscap]\n  browscap = '/etc/php7/apache2/browscap.ini'" >> php.ini
sudo service apache2 reload

replace php7 for you PHP version


You are to use the Full PATH and restart your server when you are done

Example

[browscap]
; http://php.net/browscap
browscap = "C:\xampp\php\extras\browscap.ini"