Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cpanel drops the ball on php dbx functions

Discussion in 'General Discussion' started by rbornert, Jan 14, 2005.

  1. rbornert

    rbornert Registered

    Jan 13, 2005
    Likes Received:
    Trophy Points:
    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


    but no ... life should not be this easy.

    to their credit they have provided extensibility via


    here is the script we used to add the php features (specifically dbx) to the php build

    cd /home/cpapachebuild/buildapache/php-4.3.10/
    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 \
    service httpd stop
    make install
    service httpd start
    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.


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice