I moved my website to a vps
and I used exif
function but look like in this new server exif
not installed or enabled.. I tied many ways to enable it but no success:
Information:
Linux, Apache, Centos7
First, I run php -m
but there is no exif
in list.
options.conf
php1_release=7.2
php1_mode=mod_php
configure.php72
--enable-mbstring \
--enable-exif
php.ini
extension=php_mbstring.dll
extension=php_exif.dll
But still I got:
PHP Fatal error: Uncaught Error: Call to undefined function
exif_read_data() in…
Any idea?
Best Answer
If php.ini contents is like this:
make sure in your PHP installation
ext
directoryphp_exif.dll
is present.If it's not there, get it from here.