Re: Enabling exif in Ubuntu 14.10
| From: | Jim Lucas | Date: | Thu, 29 Jan 2015 18:22:52 +0000 |
| Subject: | Re: Enabling exif in Ubuntu 14.10 | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324321@lists.php.net to get a copy of this message | ||
On 01/28/2015 11:49 PM, Abdul Abdul wrote:
> Hello Peter,
>
> Thanks for your reply. Actually, this is what I have regarding exif in my
> php.ini file. Should I add what you mentioned manually?
>
What you are listing are the setting for exif in your php.ini file. What you
need to make sure exists is the line that actually loads the extension.
You should see something like this in your php.ini file, or depending on your
distro, you might find something in /etc/php.d/*, /etc/httpd/conf.d/*, etc...
Here is a portion of my php.ini file:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
extension=mbstring.so
extension=exif.so
If you are on a unix system, you'll want to verify that you have the exif.so
extension in the correct folder. Run this:
# ls
php -i | grep "^extension_dir" | sed -e 's/.*=> //'
If you don't have the exif.so file in the output, you don't have the extension
available to you to load.
This also assumes that your cli php.ini file is the same as your web server
php.ini file.
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/