Install PHP with - T1Lib and XPM support

Artis

Verified User
Joined
Jun 24, 2012
Messages
37
Location
Zagreb - Croatia
Hi to all,

I'm new to DA, and from forum I see that i must use custombuild for PHP options (T1Lib, XPM).

I use centos 6.3, PHP 5.3.18 (CGI) and suPHP 0.7.1.

How i can install T1Lib and XPM. What file do I need to edit.

Best regards

EDIT:

I did:
HTML:
cd /usr/local/directadmin/custombuild
 mkdir -p custom/ap2
 cp configure/ap2/configure.php5 custom/ap2/configure.php5
 nano custom/ap2/configure.php5

after that i add --enable-t1lib

and final
HTML:
./build clean
./build php
service httpd restart

and I do not have t1lib on my system :confused:
Any hint

EDIT2:
My nano /usr/local/directadmin/custombuild/custom/ap2/configure.php5
HTML:
#!/bin/sh
./configure \
        --with-apxs2 \
        --with-curl=/usr/local/lib \
        --with-gd \
        --with-ttf \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql \
        --with-mysqli \
        --with-pdo-mysql \
        --with-pcre-regex=/usr/local \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-xsl \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-exif \
        --enable-ftp \
        --enable-gd-native-ttf \
        --enable-magic-quotes \
        --enable-safe-mode \
        --enable-soap \
        --enable-t1lib \
        --enable-sockets \
        --enable-mbstring \
        --enable-zip \
        --enable-wddx
 
Last edited:
Hello,

For PHP-CGI (suPHP) you should copy

/usr/local/directadmin/custombuild/configure/suphp/configure.php5

to

/usr/local/directadmin/custombuild/custom/suphp/configure.php5

and modify /usr/local/directadmin/custombuild/custom/suphp/configure.php5
 
Thanks you, for this

Another question is, if I enable t1lib and xpm (xpm is required folder dir) I try to find xpm dir but it's not on the server. Can I use yum install to install xpm and after that enable it in config ? Will I break DA ?


Best regards

EDIT:

Error what i have
HTML:
configure: error: libXpm.(a|so) not found.

*** There was an error while trying to configure php. Check the custom/suphp/configure.php5 file

[root@server custombuild]# yum install libXpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.hosteurope.de
 * extras: ftp.hosteurope.de
 * updates: ftp.hosteurope.de
base                                                                                                                                  | 3.7 kB     00:00
extras                                                                                                                                | 3.5 kB     00:00
updates                                                                                                                               | 3.5 kB     00:00
Setting up Install Process
Package libXpm-3.5.8-2.el6.x86_64 already installed and latest version
Nothing to do

My /usr/local/directadmin/custombuild/custom/suphp/configure.php5
HTML:
#!/bin/sh
"./configure" \
"--prefix=/usr/local/php5" \
"--enable-force-cgi-redirect" \
"--enable-fastcgi" \
"--with-config-file-path=/usr/local/etc/php5/cgi" \
"--with-curl=/usr/local/lib" \
"--with-gd" \
"--with-gettext" \
"--with-jpeg-dir=/usr/local/lib" \
"--with-freetype-dir=/usr/local/lib" \
"--with-kerberos" \
"--with-mcrypt" \
"--with-mhash" \
"--with-mysql=/usr" \
"--with-mysqli=/usr/bin/mysql_config" \
"--with-pcre-regex=/usr/local" \
"--with-pdo-mysql=/usr" \
"--with-pear=/usr/local/lib/php" \
"--with-png-dir=/usr/local/lib" \
"--with-xsl" \
"--with-zlib" \
"--with-zlib-dir=/usr/local/lib" \
"--with-openssl" \
"--with-xpm-dir=/usr" \
"--with-iconv=/usr/local" \
"--with-t1lib" \
"--enable-bcmath" \
"--enable-calendar" \
"--enable-exif" \
"--enable-ftp" \
"--enable-gd-native-ttf" \
"--enable-magic-quotes" \
"--enable-soap" \
"--enable-sockets" \
"--enable-mbstring" \
"--enable-zip" \
"--enable-wddx"
 
Last edited:
If installation of libXpm-devel does not help (as suggested by user scsi), then you might need to install 32 bit versions of these two packages.
 
You would have to search the filesystem where the .so files are. I would just try /usr/local

If not you could try:

Code:
find / -type f -name libXpm\*so
 
@Scsi I try to search but i have nothing

HTML:
[root@server custombuild]# find / -type f -name libXpm\*so
[root@server custombuild]#


HTML:
Setting up Install Process
Package libXpm-devel-3.5.8-2.el6.x86_64 already installed and latest version
Nothing to do
 
Oh its cause it doesnt end in .so its .so.XXX

[root@mon1 ~]# find / -type f -name libXpm*
/usr/lib/libXpm.so.4.11.0

You might want to try /usr/lib or /usr/lib64
 
Thanks for help

But i have no success

HTML:
configure: error: libXpm.(a|so) not found.

*** There was an error while trying to configure php. Check the custom/suphp/configure.php5 file

HTML:
#!/bin/sh
"./configure" \
"--prefix=/usr/local/php5" \
"--enable-force-cgi-redirect" \
"--enable-fastcgi" \
"--with-config-file-path=/usr/local/etc/php5/cgi" \
"--with-curl=/usr/local/lib" \
"--with-gd" \
"--with-gettext" \
"--with-jpeg-dir=/usr/local/lib" \
"--with-freetype-dir=/usr/local/lib" \
"--with-kerberos" \
"--with-mcrypt" \
"--with-mhash" \
"--with-mysql=/usr" \
"--with-mysqli=/usr/bin/mysql_config" \
"--with-pcre-regex=/usr/local" \
"--with-pdo-mysql=/usr" \
"--with-pear=/usr/local/lib/php" \
"--with-png-dir=/usr/local/lib" \
"--with-xsl" \
"--with-zlib" \
"--with-zlib-dir=/usr/local/lib" \
"--with-openssl" \
"--with-xpm-dir=/usr/lib64" \
"--with-t1lib-dir=/usr/share" \
"--with-iconv=/usr/local" \
"--enable-bcmath" \
"--enable-t1lib" \
"--enable-calendar" \
"--enable-exif" \
"--enable-ftp" \
"--enable-gd-native-ttf" \
"--enable-magic-quotes" \
"--enable-soap" \
"--enable-sockets" \
"--enable-mbstring" \
"--enable-zip" \
"--enable-wddx"

HTML:
[root@server custombuild]# find / -type f -name libXpm*
/usr/lib64/libXpm.so.4.11.0

any hint ?
 
You might want to look at the config.log in the php source folder and see what its searching for.
 
Hi,

I use google and logs, and i manage to enable T1lib, but XPM support i can't enable.

Google say that I must have DIR something like this /usr/X11R6

On CentOS 6 (x64) I don't have that dir, what yum lib to install to get dir something like that ?

Best regards
 
Back
Top