With the recent surge of tools using web service APIs like the Yahoo APIs in PHP such as
it suddenly became necessary for several web hosts (including me with my own dedicated servers) to provide the PHP domxml extension in their setup.
I noticed that the standard CPANEL setup didn't provide an option for adding DOMXML to the standard PHP recompilation and decided to dig into the configure/make config of CPANEL9/10.x and PHP4.3.9/10 …
Here are my steps for getting DOMXML and XML-RPC (another usefull thing) into your standard PHP distro… all steps without ANY warranties… get a paid administrator if you don't have the guts.
find you normal CPANEL/Apache directory that is left from the last Apache upgrade in CPANEL
it could be here
cd /home/cpapachebuild/buildapache/php-4.3.10
of course the PHP version no could be different on your system.
in that directory you find a file called config.status which is generated by the previous compile procedure… it contains a commented line starting similar to this:
- ./configure —with-apxs=/usr/local/apache/bin/apxs —with-xml —enable-bcmath —enable-calendar —with-curl —enable-ftp —with-gd —with-jpeg-dir=/usr/local —with-png-dir=/usr —with-xpm-dir=/usr/X11R6 —enable-magic-quotes —with-mysql —enable-discard-path —with-pear —enable-sockets —enable-track-vars —with-ttf —with-freetype-dir=/usr —enable-gd-native-ttf —enable -versioning —with-zlib
This is actually the last configure commandline used for your apache build… I think you could get it from phpinfo() as well, but this way we can be sure… copy/paste that line and save for later…
Then type
make clean
to cleanup old build objects and other crap that could interfere with your next steps…
Then we use the last command line and simply add the two essential modifieds
type:
./configure —with-apxs=/usr/local/apache/bin/apxs —with-xml —enable-bcmath —enable-calen
dar —with-curl —enable-ftp —with-gd —with-jpeg-dir=/usr/local —with-png-dir=/usr —with-xp
m-dir=/usr/X11R6 —enable-magic-quotes —with-mysql —enable-discard-path —with-pear —enable-
sockets —enable-track-vars —with-ttf —with-freetype-dir=/usr —enable-gd-native-ttf —enable
-versioning —with-zlib —with-xmlrpc —with-dom
This runs for ages, checks all libraries, dependencies etc.etc.
Then to really build the Apache PHP modules in your build directories
make
To install them with Apache type
make install
and finally restart your Apache with
httpd restart
You should now have DOMXML and XMLRPC in your Apache distribution installed… phpinfo() should tell you so, as well as this commandline…
Recent comments
1 year 35 weeks ago
1 year 36 weeks ago
1 year 37 weeks ago
1 year 38 weeks ago
1 year 38 weeks ago
1 year 47 weeks ago
1 year 47 weeks ago
1 year 48 weeks ago
1 year 48 weeks ago
1 year 49 weeks ago