Instead of replacing /etc/php.ini file I've used a php.ini inside php.d folder