Installing LibXSLT

digi

Verified User
Joined
May 18, 2006
Messages
66
Having:
OS: CentOS 4.5 i386
DA: Latest 1.30.1
PHP: 5.2.3
Apache: 1.3.37

Wanted / Needed: XSLT / LibXSLT

Already done:
Installed libxml2-devel / libxslt-devel / libxslt / libxml

Installed PHP5.2.3, compiled whit:
#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-dom=/usr/lib \
--with-dom-exslt=/usr/lib \
--with-dom-xslt=/usr/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-freetype \
--with-freetype-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pdo-sqlite=shared \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-sqlite=shared \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit \
--enable-xslt

Restarting apache give the following error:
PHP Warning: PHP Startup: Unable to load dynamic library './apc/apc.so' - ./apc/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP info:
http://195.238.75.11/php

But software on the server still says::
http://195.238.75.11/~xct/test/install.php


So, now i need / wanted advice.....:s

Someone with some tips??

Thanks a lot!!!
 
FIrstly, comment out the apc extension line, or change the extension_dir to /usr/local/lib/php. You have PHP 5.2, XSLT is only for PHP 4.x. If you need xslt support with PHP 5 you can use the XSL extension.
 
FIrstly, comment out the apc extension line, or change the extension_dir to /usr/local/lib/php.
Where to do that? Can't find it yet... :s

You have PHP 5.2, XSLT is only for PHP 4.x. If you need xslt support with PHP 5 you can use the XSL extension.

--with-xsl \ and --with-xsl=/usr/local/lib \ didn't work @ all....
yum install xsl already done.

other hints??
Thanks.
 
Do clean before you try to reinstall it ;) About the 1st issue - the file is /usr/local/lib/php.ini
 
Do clean before you try to reinstall it ;) About the 1st issue - the file is /usr/local/lib/php.ini

I've disabled apc in the php.ini.

./build clean
./build php n

/usr/local/directadmin/customapache/configure.php: line 5: --with-apxs: command not found

:confused:
 
Please post an output of:
Code:
cat /usr/local/directadmin/customapache/configure.php
 
Last edited:
Please post an output of:
Code:
cat /usr/local/directadmin/customapache/configure.php


# cat /usr/local/directadmin/customapache/configure.php
#!/bin/sh
./configure \

--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-freetype \
--with-freetype-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pdo-sqlite=shared \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-sqlite=shared \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit
 
hi, i have this problem with debian and custombuild
I use Joomla and for a extension i have problem with xsl

I use php5

Thanks
 
I perform this operation. How can we control it's good.
When I want to install a component for my site, it tells me that xsl is not there?
 
Hello,

in your output

'./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/local/mysql' '--with-mysqli=/usr/local/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr/local/mysql' '--with-pear=/usr/local/lib/php' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--with-openssl' '--with-iconv=/usr/local' '--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'

XSL in not enabled. But you should do it:

1. open /usr/local/directadmin/custombuild/custom/suphp/configure.php5
2. add this line:

Code:
"--with-xsl" \

after:

Code:
"--with-xml" \
"--with-xmlrpc" \

It should look like:

Code:
...
"--with-pear" \
"--with-png-dir=/usr/local/lib" \
"--with-xml" \
"--with-xmlrpc" \
"--with-xsl" \
"--with-zlib" \
...

and then rebuild PHP.
 
open /usr/local/directadmin/custombuild/custom/suphp/configure.php5
i don't have this files ?
I just have configure.suphp and in i have
#!/bin/sh
"./configure" \
"--prefix=/usr/local/suphp" \
"--sysconfdir=/usr/local/suphp/etc/" \
"--with-apache-user=apache" \
"--with-setid-mode=owner" \
"--with-apxs=/usr/sbin/apxs" \
"--disable-checkpath"
 
Copy it then from /usr/local/directadmin/custombuild/configure/suphp/configure.php5

Code:
cp /usr/local/directadmin/custombuild/configure/suphp/configure.php5 /usr/local/directadmin/custombuild/custom/suphp/configure.php5

and follow all those steps from post above
 
thanks now i have in configure.php5
#!/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/local/mysql" \
"--with-mysqli=/usr/local/bin/mysql_config" \
"--with-pcre-regex=/usr/local" \
"--with-pdo-mysql=/usr/local/mysql" \
"--with-pear=/usr/local/lib/php" \
"--with-png-dir=/usr/local/lib" \
"--with-zlib" \
"--with-zlib-dir=/usr/local/lib" \
"--with-openssl" \
"--with-iconv=/usr/local" \
"--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"
 
Hi,
i modify my configure.php5
#!/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/local/mysql" \
"--with-mysqli=/usr/local/bin/mysql_config" \
"--with-pcre-regex=/usr/local" \
"--with-pdo-mysql=/usr/local/mysql" \
"--with-pear=/usr/local/lib/php" \
"--with-png-dir=/usr/local/lib" \
"--with-xml" \
"--with-xmlrpc" \
"--with-xsl" \
"--with-zlib" \
"--with-zlib-dir=/usr/local/lib" \
"--with-openssl" \
"--with-iconv=/usr/local" \
"--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"
after in ssh
./build clean
./build php n
and in my info.php i look xsl . ;)
it's good.

Thanks
 
Back
Top