GD and EXIF?

FAF

Verified User
Joined
Apr 1, 2006
Messages
87
Location
CPH, Denmark
Hi

Have been searching for how to compile with EXIF support, and also how to enable GD.

Is it possible to get some fresh instructions on how to enable EXIF and/or GD? Plz

I'm using CB2.

Thx

/FAF
 
GD is enabled by default; for exif, you need to include --enable-exif

It is explained here how to add that line: http://help.directadmin.com/item.php?id=252

Depending on what versions and types you use; custombuild 1.2 or 2.0, php-fpm, php-cli, suphp etc. It may very what file you need to copy & edit. I'm referring to the file configure.php5 that is being mentioned in the article.

As it also says there, you can do ./build used_configs to find out which file you need to edit.
 
Thank you.

I've added:
"--enable-exif \"
to: /usr/local/directadmin/custombuild/configure/ap2/configure.php55
and rebuild:
./build php n

I have exif enabled in php5.5:
phpinfo: exif
EXIF Support enabled
EXIF Version 1.4 $Id$
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF

Thx
 
While it succeeded, you should copy the file

Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -fp configure/ap2/configure.php55 custom/ap2/configure.php55

Else the next time you update cb/php your change will be gone.
 
While it succeeded, you should copy the file

Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -fp configure/ap2/configure.php55 custom/ap2/configure.php55

Else the next time you update cb/php your change will be gone.

Thx Arieh - appreciate it.
 
ok and how to add the line for exim to: /usr/local/directadmin/custombuild/configure/ap2/configure.php55
i try manually with FTP and wordpad and after that i got error while im trying to run the ./build php n command


[root@server ap2]# ./build php n
File already exists
MD5 Checksum on php-5.5.18.tar.gz passed.
Found /usr/local/directadmin/custombuild/php-5.5.18.tar.gz
Extracting ...
Done.
Configuring php-5.5.18...
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: --enable-exif
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... configure: error: /bin/sh ./config.sub --enable-exif failed
configure: WARNING: cache variable ac_cv_build contains a newline

*** There was an error while trying to configure php. Check the configure file
 
Please show your /usr/local/directadmin/custombuild/configure/ap2/configure.php55
There must be a typo.


Related: http://help.directadmin.com/item.php?id=252


here is the error :

[root@server ~]# ./build php n
File already exists
MD5 Checksum on php-5.5.18.tar.gz passed.
Found /usr/local/directadmin/custombuild/php-5.5.18.tar.gz
Extracting ...
Done.
Configuring php-5.5.18...
./build: /usr/local/directadmin/custombuild/configure/ap2/configure.php55: /bin/sh^M: bad interpreter: No such file or directory

*** There was an error while trying to configure php. Check the configure file
[root@server custombuild]#



here is my .php55 file:


#!/bin/sh
./configure \
--with-apxs2 \
--with-config-file-scan-dir=/usr/local/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-exif \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
--enable-intl




i use word pad to edit the file so maybe is the file that is not encoded in the right format after saving?
 
ok it works now... it was wordpad the problem... with nano it works fine...

a last question... it is possible to update to the latest version of PHP (5.5.24) with directadmin?
im using centos


thx
 
Last edited:
All avaible updates for the server can be showed from custombuild running those commands:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build versions

And in case there are updates you can install them one-by-one or all togheter with ./build update_versions

If the PHP 5.5.24 version isn't showed, than the DA staff hadn't yet added this version to their repository and you need to wait or write to DA support team to ask them to add it.

Regards
 
ok it works now... it was wordpad the problem... with nano it works fine...

You should never use Windows text-editors to edit system files, scripts on Linux. Linux and Windows have different line-breaks. In linux it's simple \n, and in Windows it is \r\n, and this difference is enough serious to break things.

a last question... it is possible to update to the latest version of PHP (5.5.24) with directadmin?

Check your options:

Code:
./build options

and update

Code:
./build update
./build update_versions
 
Back
Top