xslt extensions

assam_siddibapa

Verified User
Joined
Jan 29, 2011
Messages
10
Hello , I just got the direct admin installed on my VPS but i am not able to figure out how to enable xslt extensions .

It says as
Code:
For PHP5, make sure that PHP is compiled with the following extension:

                    --with-xsl
So i have to run this on my terminal or add it some where ? and what does compiling means ?

Thank You
 
If you run only php5, you find the configuration file here

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

Open this and add;
--with-xsl \

And save

If you run suPHP with php 4 and 5, you find the configuration file here

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

Open this and add;
--with-xsl \

save it.

You have you rebuild PHP after changes.

./build php y


Use WinSCP to edit files on your server, much easier ;)
 
Last edited:
Hey thanks for the help . How can i rebuild php . I tried to use ./build php y in putty .. it said so such directory .
 
Hello, Ya i changed the files and uploaded them and used the last command but for ./build php y it gave many errors like such directory not found and No targets specified and no makefile found. Stop. etc etc . Is it normal ?
 
Now i got an error in the last

/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 31: --with-xsl: command not found

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
Here it is

Code:
#!/bin/sh
./configure \
	--with-apxs2 \
	--with-curl=/usr/local/lib \
	--with-gd \
        --enable-gd-native-ttf \
        --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=/usr \
	--with-mysqli=/usr/bin/mysql_config \
	--with-pcre-regex=/usr/local \
	--with-pdo-mysql=/usr \
	--with-pear \
	--with-png-dir=/usr/local/lib \
	--with-zlib \
	--with-zlib-dir=/usr/local/lib \
	--enable-zip \
	--with-iconv=/usr/local \
	--enable-bcmath \
	--enable-calendar \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-sockets \
	--enable-mbstring
	--with-xsl \
 
I have corrected now. slash should not be on the last line

#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--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=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring \
--with-xsl

Edit your file and rebuild with N

./build php n
 
I have trouble with same issue. i did all above but i get this error.

Code:
/usr/local/lib/libxslt.so: undefined reference to `xmlDictQLookup@LIBXML2_2.6.0'
/usr/local/lib/libxslt.so: undefined reference to `xmlNewText@LIBXML2_2.4.30'
/usr/local/lib/libxslt.so: undefined reference to `htmlSetMetaEncoding@LIBXML2_2.4.30'
/usr/local/lib/libexslt.so: undefined reference to `xmlXPathPopBoolean@LIBXML2_2.4.30'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

i googled all the web but i coulnt find any solution. can anybody help me? I use centos 5 with directadmin and php 5.2.17
 
I have trouble with same issue. i did all above but i get this error.

Code:
/usr/local/lib/libxslt.so: undefined reference to `xmlDictQLookup@LIBXML2_2.6.0'
/usr/local/lib/libxslt.so: undefined reference to `xmlNewText@LIBXML2_2.4.30'
/usr/local/lib/libxslt.so: undefined reference to `htmlSetMetaEncoding@LIBXML2_2.4.30'
/usr/local/lib/libexslt.so: undefined reference to `xmlXPathPopBoolean@LIBXML2_2.4.30'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

i googled all the web but i coulnt find any solution. can anybody help me? I use centos 5 with directadmin and php 5.2.17

please leave your configuration file ,let us see how it looks

thank you

طراحی وب سایت
 
Back
Top