This article takes the installation of Itop 2.3 on CentOS 7 as an example. More convenient to copy and paste.
1. Installation of lamp and related software
Yum install Epel-release-yyum install httpd PHP mariadb-server graphviz unzip php-gd php-mysqlnd php-imap Php-soap php-ld AP Php-mbstring Php-mcrypt Php-pecl-zendopcache-y
2. Ensure Session Directory Permissions
Mkdir-p/var/lib/php/sessionchown-r apache:apache/var/lib/php/session
3. Turn on lamp
Systemctl enable httpd mariadbsystemctl start mariadb httpd
4, copy the contents of the Web directory in the itop2.3 compressed package into the/var/www/html/itop/
Unzip itop-2.3.3-3159.zip-d/var/lib/www/html/mv/var/lib/www/html/web/var/lib/www/html/itop
5, fixed directory permissions, require Web server users can write.
Mkdir-p/var/lib/www/html/itop/{conf,data,log,env-production}chown-r apache:apache/var/lib/www/html/itop/{conf, Data,log,env-production}
6. mysql Build Library
Mysqlmysql> CREATE DATABASE itop23 DEFAULT CHARACTER SET utf8;mysql> Grant all on itop23.* to ' itop ' @ ' localhost ' ide Ntified by ' itopasswd ';mysql> flush privileges;
7. Visit http://IP/itop/setup/to start the installation Wizard
# database localhost# database user name itop# database password itopasswd
This article is from the "Focus on Linux Operations" blog, please be sure to keep this source http://purplegrape.blog.51cto.com/1330104/1886542
CentOS 7 Installation Itop