Reconfigure PHP5 on cPanel Server

Reconfigure PHP5 on cPanel Server


I have PHP 5.2.0 installed on my cPanel dedicated server (by using the apache update under WHM)

I am now trying to use the XSL Functions in PHP5 (http colon slash slash au2.php.net/manual/en/ref.xsl.php), but I get an error -
Fatal error: Class 'XSLTProcessor' not found in /home/username/public_html/scriptname.php on line 6
According to the PHP documentation, I just need to add "--with-xsl" to the configure line.


This doesn't seem to be possible using "apache update" under WHM, so I'm trying to do it from the commandline, but cannot seem to get it to work. Here is what I am doing, can anyone tell me what I'm doing wrong?
  1. I got the configure command from phpinfo() -

    './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-xmlrpc' '--with-zip' '--with-zlib'
  2. I removed the quotes from the configure command, removed --with-apxs and added --with-xsl, then went to /home/cpapachebuild/buildapache/php-5.2.0 and ran it -

    ./configure --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-iconv --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-xslt --with-xslt-sablot --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-xmlrpc --with-zip --with-zlib --with-xsl
  3. Then executed the following

    make
    make install
    http restart
After doing this, when I go back to my phpinfo(), it still looks the same as before, and my xsl script still does not work...

I know I am missing something basic, but I just can't seem to find it, and I've been searching for hours! Any help would be greatly appreciated.

No comments:

Post a Comment