unzip iTop-2.6.1-4463.zip cp web/* /var/www/html/ -R chown -R apache:apache /var/www/html/ mysql -uroot -p MariaDB [(none)]> create database itop character set utf8 collate utf8_bin; MariaDB [(none)]> grant all privileges on itop.* to itop@'localhost' identified by 'itop'; MariaDB [(none)]> flush privileges; MariaDB [(none)]> exit;
编译PHP扩展实现支持zip 使用YUM/DNF安装的PHP默认不支持zip扩展,因此默认配置下iTOP会出现白屏,日志报错: PHP Fatal error: Class 'DBBackup' not found in /var/www/html/itop/web/setup/applicationinstaller.class.inc.php 所以,需要编译安装PHP的zip扩展。
yum install -y make automake re2c libzip libzip-devel wget http://pecl.php.net/get/zip tar zxvf zip cd zip-* phpize ./configure make cp modules/zip.so /usr/lib64/php/modules/ touch /etc/php.d/20-zip.ini echo 'extension=zip' >> /etc/php.d/20-zip.ini vim /etc/php.ini ~~~~~~ # CentOS8的PHP已经有PHP-zip包 ## 开启zlib压缩支持 269 zlib.output_compression = On ~~~~~~ systemctl restart php-fpm