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:
Nội dung chính
- Not the answer you're looking for? Browse other questions tagged linux centos apache-2.4 centos7 or ask your own question.
- User Contributed Notes
- User Contributed Notes
- How do I install exif extension?
- What is EXIF PHP extension?
- How do I enable PHP extensions in cPanel?
Nội dung chính
- Not the answer you're looking for? Browse other questions tagged linux centos apache-2.4 centos7 or ask your own question.
- User Contributed Notes
- User Contributed Notes
- How do I install exif extension?
- What is EXIF PHP extension?
- How do I enable PHP extensions in cPanel?
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?
asked Mar 19, 2019 at 6:12
1
If php.ini contents is like this:
1 extension=php_mbstring.dll
2 extension=php_exif.dll
make sure in your PHP installation ext
directory php_exif.dll
is present.
If it's not there, get it from here.
answered Mar 19, 2019 at 8:02
OvermindOvermind
2,9702 gold badges15 silver badges24 bronze badges
I'm using PHP 8 here.
Edit your php.ini which is probably in /etc/php
Page down to "Dynamic Extensions"
Uncomment this line...
extension=exif
Save.
Exif is included, so there's nothing to install.
Restart php-fpm for the changes to take effect.
answered Feb 26 at 9:44
PJ BrunetPJ Brunet
5561 gold badge5 silver badges15 bronze badges
Not the answer you're looking for? Browse other questions tagged linux centos apache-2.4 centos7 or ask your own question.
Submit a Pull Request Report a Bug
To enable exif-support configure PHP with --enable-exif
Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini. The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.
+add a note
User Contributed Notes
There are no user contributed notes for this page.
Submit a Pull Request Report a Bug
Your PHP must be compiled in with --enable-exif
. To enable multibyte support in EXIF tags, the mbstring extension must be enabled by compiling PHP with --enable-mbstring
. PHP does not require any additional library for the exif module.
Windows only: The mbstring extension must always be enabled. Note that mbstring extension must be loaded prior to EXIF in php.ini.
+add a note
User Contributed Notes
There are no user contributed notes for this page.
- #1
Hi,
I have my own VPS on da-debian 9. I have Directadmin installed and I'm using php7.2.
I would like to enable the php exif extension.
I tried to do it according to the instructions: //help.directadmin.com/item.php?id=252
but after entering these commands nothing happens.
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/fpm
cp -fp configure/fpm/configure.php72 custom/fpm/configure.php72
Screenshots:
//ibb.co/gALEFK
//ibb.co/h4agvK
- #2
but after entering these commands nothing happens.
Correct. That is because you forgot step 3 and 4 from the help file.
- #3
How should I add the "--enable-exif" line?
- #4
edit configure.php72:
Code:
nano /usr/local/directadmin/custombuild/custom/fpm/configure.php72
The last line is probably:
Add a backslash and add --enable-exif on the line below, so it looks like this:
Code:
--enable-intl \
--enable-exif
After this is done, follow the remaining steps in the guide.
How do I install exif extension?
Save. Exif is included, so there's nothing to install. Restart php-fpm for the changes to take effect.
What is EXIF PHP extension?
The EXIF [Exchangeable image file format] PHP extension enables to work with the metadata from the images taken by digital devices like digital cameras, cell phones, etc. It depends on the image file format. We can retrieve embedded thumbnails of images.
How do I enable PHP extensions in cPanel?
Steps to Install PHP Extension in cPanel.
Step 1: Select the cPanel and login..
Step 2: Go to PHP version..
Step 3: Pick your ideal PHP version and click on Set as Current and select the extensions..
Step 4: Select the required Extensions..