This time I will show you how to add dba support to php. This is usually necessary when you’re planning to work with big databases and MySQL is not a good idea for any reason. First of all, you should have root access to your server or VPS, in order to reconfigure PHP and to reboot Apache when it’s done. Let’s suppose we’ve got it and can log in. I will show you how to enable dba support on a Directadmin VPS, but it looks the same on servers without it, certainly, if you don’t have an RPM php configuration.
Let’s take a look at our current PHP configuration (that’s phpinfo output).
First of all, we have to install db4 support to your server. You don’t have to know the names of certain packages, you can just download and install all of them with a simple command: yum install db4*. Take a look at my screenshot below.
You should see something like this when the updating process is completed:
Now let’s create the configure line, in order to start the new configuration process. All you have to do is to copy existing configure line (from your phpinfo browser output), to replace apostrophes and to add what you need for a new configuration. This time it will be: –enable-dba –with-db4
Let’s run it. If everything is OK, you should see something like this:
As usually, let’s run make clean, make and make install
Everything seems to be OK. Let’s restart Apache.
That’s all! Let’s take a look at our phpinfo:
And let’s take a look at dba section:
That’s all. It is quite simple, isn’t it?