OS : Centos 6.8
iTop : itop-itsm-2.1.0.beta-1.noarch.rpm
Virtual software : vmware 12 pro
1. Login to root user
2. 확장 패키지를 설치한다.
yum -y install epel-release
3. 필요한 패키지들을 설치한다.
yum -y install wget httpd php-devel php-ldap php-mcrypt php-mysql php-soap php-xml mysql-server graphviz
4. 웹 데몬을 시작한다.
service httpd start
5. mysqld 데몬을 실행한다.
service mysqld start
6. 시스템 시작할때 자동으로 데몬을 올리도록 설정한다.
chkconfig httpd on
chkconfig mysqld on
7. 방화벽에서 웹을 허용한후 저장한다.
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
service iptables save
8. SElinux를 비활성화 한 후 시스템을 재시작한다.
sed -i 's/^SELINUX=enforcing$/SELINUX=disabled/g' /etc/selinux/config
reboot
9. 다시 root사용자로 로그인 한다.
Login : root/toor
10. iTop 패키지를 다운로드 하고 설치한다. 설치되는 디렉터리는 /usr/share/itop-itsm 디렉터리일 것 이다.
wget https://excellmedia.dl.sourceforge.net/project/itop/itop/2.1.0-beta/itop-itsm-2.1.0.beta-1.noarch.rpm --no-check-certificate
itop-itsm-2.1.0.beta-1.noarch.rpm
rpm -Uvh itop-itsm-2.1.0.beta-1.noarch.rpm
11. mysql 보안 설치를 한다. 이 항목에서 root의 암호를 설정한다.
mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] y New password: 루트사용자의 암호설정 Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! |
12. mysql 서비스에 접속한 후 Database생성과 권한 설정을 한다.
mysql -u root -p
SET GLOBAL max_allowed_packet = 2097652;
create database itopDB character set utf8;
grant all privileges on itopDB.* to 'itop'@'localhost' identified by 'itop';
flush privileges;
quit;
13. mysqld 데몬을 재시작한다.
service mysqld restart
14. httpd 구성파일에 가상호스트를 설정한 후 저장하고 데몬을 재시작한다.
vi /etc/httpd/conf/httpd.conf
NameVirtualHost *:80 (이 부분을 hash mark를 해지한다.)
[아래 부분은 맨 마지막 라인에 추가 한다.]
<VirtualHost *:80>
DocumentRoot /usr/share/itop-itsm
DirectoryIndex index.php
</VirtualHost>
15. httpd 데몬을 재시작한다.
service httpd restart
16. Service Desktop에 웹을 사용하여 접근한 후 설정한다.
http://192.168.8.128
[구성 패키지들이 올바르게 설정된 모습]
The current PHP Version (5.3.3) is greater than the minimum version required to run iTop, which is (5.2.0) Required PHP extension(s): dom, hash, iconv, json, mysqli, pcre, session, simplexml, soap. Optional PHP extension(s): ldap, mcrypt. Loaded php.ini files: /etc/php.ini, /etc/php.d/curl.ini, /etc/php.d/dom.ini, /etc/php.d/fileinfo.ini, /etc/php.d/json.ini, /etc/php.d/ldap.ini, /etc/php.d/mcrypt.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/phar.ini, /etc/php.d/soap.ini, /etc/php.d/sqlite3.ini, /etc/php.d/wddx.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini, /etc/php.d/zip.ini The value for session.save_path (/var/lib/php/session) is writable for the web server. |
[Show Details 를 클릭하여 본 모습]
[iTop 설치]
[라이센스 동의]
[위 그림처럼 설정 한 후 Database server connection Ok 되어야 한다.]
[윗 그림은 Mysql 서버에서 최대연결 허용 패킷을 기본값으로 사용할 경우 경고이다.]
[웹 접속시 사용할 Admin의 암호를 설정한다.]
[구성 관리 옵션 선택화면]
[티켓 관리 옵션]
[추가적인 ITIL 티켓]
[설치를 하고 있는 그림]
[설치 완료후 접속된 모습]