iTop Installation Error : Class ‘DBBackup’ not found

Posted on

The article written discuss on how to handle the error happened in the installation of iTop. What is iTOP actually ?. So, as shown in the title of this article, iTop Installation Error : Class ‘DBBackup’ not found, it is clearly specified that the error is shown in the part of the article’s title “Class ‘DBBackup’ not found”. The error is specifically retrieved from the Apache Webserver error log file named ‘error.log’ as shown below :

[Wed Aug 23 08:07:40.978622 2017] [authz_core:debug] [pid 16830] mod_authz_core.c(809): [client] AH01626: authorization result of <RequireAny>: granted
[Wed Aug 23 08:07:40.979722 2017] [:error] [pid 16830] [client] PHP Fatal error: Class 'DBBackup' not found in /var/www/html/itop/setup/ on line 1037

And the installation process just sending a blank page so there is no clue or hint on the error which is triggering it. To be able to solve the problem above, below is the solution taken :

1. Check the version of PHP available in server. It can be done by executing the command ‘php -v’ as shown below :

root@hostname:~# php -v
PHP (cli) (built: Aug 4 2017 13:04:09) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache, Copyright (c) 1999-2017, by Zend Technologies
You have new mail in /var/mail/root

The proper solution given to solve the problem triggered above is to install php-zip. Since, the available php installed is php7.0, just install php7.0-zip as shown in the installation process below :

root@hostname:/var/www/html/itop/log# apt-get install php7.0-zip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
2 not fully installed or removed.
Need to get 19,8 kB of archives.
After this operation, 89,1 kB of additional disk space will be used.
Get:1 xenial/main amd64 php7.0-zip amd64 [19,8 kB]
Fetched 19,8 kB in 0s (23,3 kB/s)     
Selecting previously unselected package php7.0-zip.
(Reading database ... 912585 files and directories currently installed.)
Preparing to unpack .../ ...
Unpacking php7.0-zip ( ...
Processing triggers for libapache2-mod-php7.0 ( ...
Setting up php7.0-zip ( ...
No apport report written because the error message indicates its a followup error from a previous failure.

Creating config file /etc/php/7.0/mods-available/zip.ini with new version
Processing triggers for libapache2-mod-php7.0 ( ...

Check whether the package ‘php7.0-zip has successfully installed :

root@hostname:/var/www/html/itop/log# apt --installed list | grep php7.0-zip

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

php7.0-zip/xenial,now amd64 [installed]

Since php7.0-zip package has clearly installed, restart the Apache Webserver’s service so that php7.0-zip as part of the module which is going to be used by Apache Webserver used to process the installation of iTOP can be loaded :

root@hostname:~# systemctl restart apache2

Re-execute the process of installing iTOP. It will be shown in the image below :

The installation of iTop can be proceed. But beware of the error and warnings given and another article will provide on how to solve the problem.

3 thoughts on “iTop Installation Error : Class ‘DBBackup’ not found

Leave a Reply