exif on PHP 4.4.x and Apache 2.0.x

webbasica

Verified User
Joined
Feb 21, 2005
Messages
69
I'm trying to enable exif on PHP 4.4.x and Apache 2.0.x. I found this "guide" for it:
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

I guess I don't have to download anything, because it's php 4.4.6

But since the post is like 3 years old I'm nervous about the effect on my apache. I ve broken apache before, and I don't want to go though again ..
 
Just change "./build php" with "./build php_ap2" and "configure.php" with "configure.php_ap2".
 
I can't figure it out!
Code:
server:~# cd /usr/local/directadmin/customapache
-bash: cd: /usr/local/directadmin/customapache: No such file or directory
server:~#

And where is the file configure.php???
Code:
#edit the configure.php file and add:
--enable-exif

I'm running latest DA on Debian 4
 
I don't know what you mean? DA was installed by some other person. If thats what have been done, then how to enable exif?
:confused:

I have PHP Version 5.2.5
 
Last edited:
Code:
server:/usr/local/directadmin# ls -l
total 13052
drwx------ 2 diradmin diradmin    4096 Mar 23 17:51 conf
drwxr-xr-x 4 root     root        4096 Mar 23 17:51 custombuild
-rw-r--r-- 1 root     root       77606 Mar 19 22:16 custombuild.tar.gz
-rwx------ 1 diradmin diradmin  719620 Dec 17 08:32 da-popb4smtp
drwx--x--x 8 diradmin diradmin    4096 Mar 23 18:02 data
-rwx------ 1 diradmin diradmin 4021237 Dec 17 08:32 dataskq
-rwx------ 1 diradmin diradmin 4006035 Dec 17 08:32 directadmin
-rwx------ 1 diradmin diradmin   12492 Dec 17 08:32 logger
drwx--x--x 4 diradmin diradmin    4096 Feb  7 16:18 scripts
-rw-r--r-- 1 diradmin diradmin 4468902 Feb  7 16:18 update.tar.gz
server:/usr/local/directadmin#
 
I found the config file
Code:
/usr/local/directadmin/custombuild/configure/ap2/configure.php5

Added the line
Code:
--enable-exif

The end of that file looks now like this
Code:
        --enable-mbstring \
        --enable-exif

I restarded my server but the phpinfo shows no exif
http://79.99.6.178/~testar/info.php

Is there anything more I should do?
 
Last edited:
Did you re-compile php ?
Code:
./build php5-cli
Arkaos Did you rebuild after you added that line?
Today 01:51 PM

Nope, f_cking server ran out of memory I think...
:mad:

Code:
virtual memory exhausted: Cannot allocate memory
make: *** [ext/date/lib/parse_date.lo] Error 1

*** The make has failed, do you want to try to make again? (y,n):
 
Reboot and try again ?
Did try that an get error message
Code:
Another instance of custombild is running, please delete the .custombuild file if you want to use custombuild.
Quit at position: doCURL

Now I can't find file .custombuild
 
Code:
rm -f /usr/local/directadmin/custombuild/.custombuild
 
Code:
rm -f /usr/local/directadmin/custombuild/.custombuild

That worked, but still
Code:
virtual memory exhausted: Cannot allocate memory
make: *** [Zend/zend_execute.lo] Error 1

*** The make has failed, do you want to try to make again? (y,n):

I tried to stop most of the services before i did the build...
I'm on a vps with 384 Mb ram
:confused:
 
Now I did the
Code:
./build php5-cli
without any errors

It also seems that exif is enabled! :D

And the function who auto resize members uploaded pictures in my forum is working! :cool:

Thank You all for helping me out!
 
Last edited:
Back
Top