there is no easy way to use whm to build the apache/php module with the dbx functions enabled. this option is not offered as part of the standard whm php build interface.
the php dbx functions have great value because they are db neutral ... this means that php pages built on top of dbx functions are database independent ... this would allow you to change databases for your server and not have to touch but a single line in a php include file to do so.
in our opinion cpanel dropped the ball here ... it would have been more user friendly to have simply provided a user editable field in the whm php build options interface wherein we could've simply added
--enable-dbx
but no ... life should not be this easy.
to their credit they have provided extensibility via
/scripts/postbuildapache
here is the script we used to add the php features (specifically dbx) to the php build
there are 2 very distinct downsides to this workaround:
1) it renders the whm php interface entirely moot ... because regardless of what gets built .. the post build script is going to rebuild from scratch
2) your web server php pages that access dbx functions will be broken from the moment whm restarts the non dbx enabled build ... until the post build script finishes ... this takes about 5 minutes.
cheers
the php dbx functions have great value because they are db neutral ... this means that php pages built on top of dbx functions are database independent ... this would allow you to change databases for your server and not have to touch but a single line in a php include file to do so.
in our opinion cpanel dropped the ball here ... it would have been more user friendly to have simply provided a user editable field in the whm php build options interface wherein we could've simply added
--enable-dbx
but no ... life should not be this easy.
to their credit they have provided extensibility via
/scripts/postbuildapache
here is the script we used to add the php features (specifically dbx) to the php build
Code:
cd /home/cpapachebuild/buildapache/php-4.3.10/
pwd
rm -f config.status config.cache
make clean
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-xml \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-dbx \
--with-gd \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr \
--with-xpm-dir=/usr/X11R6 \
--enable-magic-quotes \
--with-mysql=/usr \
--enable-discard-path \
--with-pear \
--enable-sockets \
--enable-track-vars \
--enable-versioning \
--with-zlib \
"$@"
make
service httpd stop
make install
service httpd start
1) it renders the whm php interface entirely moot ... because regardless of what gets built .. the post build script is going to rebuild from scratch
2) your web server php pages that access dbx functions will be broken from the moment whm restarts the non dbx enabled build ... until the post build script finishes ... this takes about 5 minutes.
cheers