PDA

View Full Version : enable exif for php?


lnguyen
04-25-2004, 01:06 PM
is there a relatively simple way to add exif support for php? as far as I can tell, i need to recompile php to support it.. but i'm rather new at that..

and if i did, is there anything i would need to watch out for in terms of keeping php working properly w/ DA?

Thanks
Linh

DirectAdmin Support
04-27-2004, 10:26 AM
Hello,

Download and compile/install exif as per their instructions.

Once that's done, to add it to php, run the following:

cd /usr/local/directadmin/customapache
#edit the configure.php file and add:
--enable-exif
# to the list of configure commands (make sure there is a \ at the end of each line except the last one)
./build clean
./buid php

John

sander79
05-18-2007, 09:56 AM
Hello,

Download and compile/install exif as per their instructions.

Once that's done, to add it to php, run the following:

cd /usr/local/directadmin/customapache
#edit the configure.php file and add:
--enable-exif
# to the list of configure commands (make sure there is a \ at the end of each line except the last one)
./build clean
./build php

John
I just tried this script and there was one little problem.
At the end the script replaced the httpd.conf file with another one.
My site was not working anymore and the browser asked where to save .php files.
After restoring the old httpd.conf file it worked again.

A bug in the script?

maldito
07-11-2007, 01:27 AM
I have apache 2, should it be "./build php_ap2 n" on the last line (instead of "./build php")??

chriske21
05-19-2008, 02:49 AM
i just needed to added --enable-with-exif to my configure line an configure php again. That did it. :)