Chào các bạn, Show # cd /usr/local/directadmin/custombuild Bước này nếu grep PHP ra vài phiên bản PHP thì bạn cần xác định cài cho phiên bản PHP 5.x hay 7.x. Ở dây mình đang sử dụng là 7.x nên sẽ cài. Còn nếu các bạn là 5.x thì cần thay thế thư mục của php 5.x tương ứng nhé. # tar xvzf php-7.0.27.tar.gz Thêm dòng sau vào: ... ; extension_dir = "ext" extension=exif.so ... Như vậy là đã hoàn thành việc cài đặt. Để check lại các bạn dùng lệnh #php -m | grep exif Hoặc dùng file phpinfo để check nhé. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Ở trên mình hướng dẫn các bạn cài đặt PHP 7.x còn các lệnh dưới đây sẽ cài đặt trên PHP 5.x: Bước 1: [root@webserver ~]# cd /usr/local/directadmin/custombuild Bước 2: [root@webserver custombuild]# ls -l | grep php Bước 3: [root@webserver custombuild]# tar -xvzf php-5.6.23.tar.gz Bước 4: [root@webserver custombuild]# cd php-5.6.23 Bước 5: [root@webserver php-5.6.23]# cd ext/exif/ Bước 6: [root@webserver exif]# /usr/local/php56/bin/phpize Bước 7: [root@webserver exif]# ./configure --with-php-config=/usr/local/php56/bin/php-config Bước 8: [root@webserver exif]# make Bước 9: [root@webserver
exif]# make install Bước 10: Chèn thêm đoạn trên vào php.ini của bạn. ... Như vậy là đã cài xong rồi đó. Chúc các bạn thành công! I moved my website to a Nội dung chính
Information:
First, I run options.conf
configure.php72
php.ini
But still I got:
Any idea? asked Mar 19, 2019 at 6:12 1 If php.ini contents is like this:
make sure in your PHP installation 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...
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 NotesThere are no user contributed notes for this page. Submit a Pull Request Report a Bug Your PHP must be compiled in with 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 NotesThere are no user contributed notes for this page.
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: https://help.directadmin.com/item.php?id=252 but after entering these commands nothing happens. Code:
Screenshots:
Correct. That is because you forgot step 3 and 4 from the help file.
How should I add the "--enable-exif" line?
edit configure.php72: Code:
The last line is probably: Add a backslash and add --enable-exif on the line below, so it looks like this: Code:
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.. |