Install iTop IT Helpdesk under Centos
LAMP has been installed, copy the downloaded iTop to the root of the website and visit it from the web page to start the installation. You can see that the web page goes to setup/index.php, but an error occurs.
Fatal error: Class' DBBackup' not found in / var/www/html/setup/applicationinstaller.class.inc.php on line 956
Look at the iTop community and see that this is because php does not have zip enabled. Refer to the following article
Https://sourceforge.net/p/itop/tickets/1289/
Recompile php, add the-- enable-zip parameter, make & & make install, and everything seems to be fine.
/ configure-- prefix=/usr/local/php-- with-libdir=lib64-- with-apxs2=/usr/bin/apxs-- with-openssl-- with-mcrypt-- with-mysql=mysqlnd-- with-mysqli=mysqlnd-- with-pdo-mysql=mysqlnd-- enable-sockets-- enable-zip-- with-pcre-regex-- with-gettext-- with-pear-- with-zlib-- with-gd-enable-soap-- with-ldap-- with-mysql-sock=/var/lib/mysql/mysql.sock
Check the iTop installation manual and find several recommended settings for php and mysql. Modify them first.
MySQL recommandations
My.cnf
Innodb_buffer_pool_size = 512m
Query_cache_size = 32m
Query_cache_limit = 1m
PHP recommandations
Php.ini
Memory_limit = 256m
Restart apache, open the iTop web page, the original error is gone, indicating that the directory does not have permission
Set apache as the owner of the directory
Chown apache:apache / var/www/html/
Refresh the page and find that the error disappears. But there's still a warning message.
Find the appropriate line in php.ini and remove the comment
Session.save_path = "/ tmp"
Restart apache, open the web page, and all errors disappear.