Updating PHP or Other Services with DirectAdmin Custombuild

| |

If you´re hosting your WordPress sites on an unmanaged VPS, you´ll have to perform all system updates and upgrades yourself. The control panel DirectAdmin offers a handy tool that makes keeping your server packages updated a breeze.

The tool is called DirectAdmin Custombuild. This script package allows DirectAdmin users to install and upgrade services like Apache, PHP and MySQL from a central place. Here´s a good introduction to DirectAdmin Custombuild.

Before making any changes to your server, don´t forget to backup your data. The process described below works for us, but your server might be totally different. Know what you´re doing.

How to install Custombuild

During the installation of DirectAdmin you´ll be asked if you want to install Custombuild. If your VPS came with DirectAdmin already running, chances are that Custombuild is already installed.

Here´s the recipe to install Custombuild from scratch:

cd /usr/local/directadmin
wget http://files.directadmin.com/services/custombuild/1.1/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild

To install version 1.2 beta simply change the version number to 1.2

When done, you need to run this command for the first time:

./build all d

How configure Custombuild

You can specify the services and versions you wish to use in the options.conf file. All available options are listed here.

To see your current configuration, run this command:

./build options

How to update PHP or another service

  1. cd /usr/local/directadmin/custombuild

    – browse to the Custombuild directory

  2. ./build options

    – review your current settings

  3. nano options.conf

    – edit the options.conf file, save and exit

  4. ./build update_data

    – always run this command after opdating options.conf

  5. ./build versions

    – check for available updates

  6. ./build update_versions

    – install the updates

Don´t forget to restart Apache if not done automatically by the update script.


How to Install WordPress

Install WordPress locally using WampServer (WAMP)


2 thoughts on “Updating PHP or Other Services with DirectAdmin Custombuild”

  1. Nice post. I was checking constantly this blog and I am inspired! Extremely helpful info specifically the remaining part 🙂 I maintain such info much. I used to be looking for this certain info for a long time. Thank you and best of luck.

Leave a Comment