HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - Printable Version +- TACTIC Open Source (http://forum.southpawtech.com) +-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3) +--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4) +--- Thread: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 (/showthread.php?tid=90) Pages:
1
2
|
HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - Bob.K - 04-02-2020 Hey Guys! I have struggled around with the installation documentation of Tactic-4.7 for a while now and I thought maybe I should share my version of it. Requirements: - Minimal Installation of CentOS 7 + Internet (Network connection) For simplicity, issue the following commands as root user (otherwise don‘t forget to put sudo in front of each command) First of all, update the system: >yum update -y Enabling SELinux Open the file /etc/selinux/config and change the option SELINUX to enforcing >yum install -y nano >nano /etc/selinux/config # CTRL+O to save ; CTRL+X to exit >reboot Enabling firewalld Check status with >systemctl status firewalld >systemctl start firewalld >systemctl enable firewalld Install Apache >yum install -y httpd >firewall-cmd --add-service=http --permanent >firewall-cmd --add-service=https --permanent # optional >firewall-cmd --reload >/usr/sbin/setsebool -P httpd_can_network_connect 1 >systemctl start httpd >systemctl enable httpd Download and extract Tactic-Install archive >yum install -y unzip wget >cd /tmp >wget http://community.southpawtech.com/downloads/TACTIC%20-%20Enterprise/TACTIC-4.7.0.b02.zip >unzip TACTIC-4.7.0.b02.zip EPEL Enable Extra Packages for Enterprise Linux (EPEL). >yum -y --enablerepo=extras install epel-release Install PostgreSQL >rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm >yum update -y >yum install -y postgresql11-server postgresql11-contrib postgresql11-devel >/usr/pgsql-11/bin/postgresql-11-setup initdb >systemctl start postgresql-11 >systemctl enable postgresql-11 Configure and verify PostgreSQL >systemctl stop postgresql-11 >mv /var/lib/pgsql/11/data/pg_hba.conf /var/lib/pgsql/11/data/pg_hba.conf.BACKUP >cp /tmp/TACTIC-4.7/src/install/postgresql/pg_hba.conf /var/lib/pgsql/11/data/ >chown postgres:postgres /var/lib/pgsql/11/data/pg_hba.conf >systemctl start postgresql-11 To verify, issue followinf command: >psql -U postgres template1 It should give you a prompt: > [b]template1=# [/b]Exit out by pressing [b]CTRL+D[/b] Install Python 3.6 and supporting modules >yum install -y python3 >yum install -y python36-pycryptodomex python36-lxml python36-requests >yum install -y python36-pillow python36-dateutil python36-pytz >yum install -y python3-psycopg2 Alternatively you can also install these modules using pip like this.
>pip3 install pycryptodomex Install ImageMagick >yum install -y ImageMagick ImageMagick-devel ImageMagick-perl Install ffmpeg >rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro >rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm >yum install -y ffmpeg Install pyodbc >yum install -y unixODBC unixODBC-devel >yum install -y gcc-c++ >yum install -y python3-devel >yum install -y pyodbc >pip3 install --upgrade pip >pip3 install pyodbc Installing Tactic 4.7.0.b02 >cd / >python3 /tmp/TACTIC-4.7/src/install/install.py The installer will ask you a number of questions. You should be prompted by the following:
>Please enter the base path of the TACTIC installation: >(/home/apache) -> /opt/tactic Choose your custom Tactic path, this will be the base directory for your Tactic installation. We have chosen /opt/tactic.
Next you will be asked to identify the user used to run the Apache service. >Please enter the user Apache Web Server is run under: >(apache) -> apache While installation, you will be asked if you want to run fix_search_code.py, press y followed by ENTER Configuring Apache Lastly Tactic requires us to install the custom Apache configuration file it has created during the installation process /opt/tactic/tactic_data/config/tactic.conf With an editor make sure the following lines exist: # Using the ProxyPass directives
>cp /opt/tactic/tactic/src/install/service/tactic_python3 /etc/init.d/tacticProxyPreserveHost on <Proxy balancer://tactic> BalancerMember http://localhost:8081/tactic BalancerMember http://localhost:8082/tactic BalancerMember http://localhost:8083/tactic </Proxy> ProxyPass /tactic balancer://tactic ProxyPass /tactic_data balancer://tactic As root issue the following commands: >cp /opt/tactic/tactic_data/config/tactic.conf /etc/httpd/conf.d >systemctl restart httpd Starting Tactic in Development Mode >su -s /bin/bash apache >python3 /opt/tactic/tactic/src/bin/startup_dev.py You should now be able to navigate a web browser to http://localhost Alternatively, use the non-local IP address or fully qualified domain name you have assigned to your TACTIC server in place of localhost. You should see the TACTIC login screen. Press CTRL+C to exit TACTIC Development Mode followed by CTRL+D Installing TACTIC as a Service Update your TACTIC config file /opt/tactic/tactic_data/config/tactic-conf.xml to use Python 3 for all services by updating tag: <services> ... <python>python3</python> ... </services> Now as root, type the following: >chmod 755 /etc/init.d/tactic >systemctl enable tactic >systemctl start tactic Create user „tactic“ and configure permissions >adduser tactic >chown tactic:tactic -R /opt/tactic >chmod 755 -R /opt/tactic Finally, reboot the server and test whether the TACTIC service continues to perform across reboots. >reboot RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - listy - 04-02-2020 Hi! Thanks! It should be pinned at the top! RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - fxside - 04-02-2020 wooooooooowwww RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - dankripac - 04-07-2020 Thanks so much for this guide! Before I tear my hair out trying to make a docker-compose out of this, do you know if anyone has converted this to a Docker or docker-compose setup? Cheers Dan RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - listy - 04-07-2020 Search for the forums, Diego already did docker-compose RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - tushar_soni - 07-26-2020 Thank you Bob. This was very helpful. I am installing tactic 4.8.0.b03 on centos 7 VM on virtual box according to above guidelines. Everything went fine upto running tactic in dev mode with startup_dev.py, I could access the site on host OS with IP address. However, when I tried to install tactic service I am getting below error. tactic.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig tactic on service tactic does not support chkconfig Any workaround for this as I am using latest version of tactic from git repo? Thanks. (07-26-2020, 12:25 PM)tushar_soni Wrote: Thank you Bob.I created tactic user, switched to tactic user and then tried to run tactic bootstrap as mentioned here, http://community.southpawtech.com/docs/sys-admin/install-tactic-centos7/ But I am getting error as in attached snapshot. RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - tushar_soni - 07-26-2020 (07-26-2020, 12:25 PM)tushar_soni Wrote: Thank you Bob.Finally I got it working after digging up for a while on google, this one helped: https://philchen.com/2007/06/04/quick-and-dirty-how-to-write-and-init-script I copied service in /etc/rc.d/init.d and then changed permission as mentioned above and then added it to ckhconfig like below, Code: > /etc/rc.d/init.d/tactic chkconfig --add That's it! But still this is not enabled across reboots, I have to run chkconfig again on everyboot. There must be some solution for this. Thanks RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - Bob.K - 07-26-2020 yeah weill, i actually did used systemctl to enable the service on boot....I'm not sure why you have to fiddle around with chkconfig just to be sure, have you type this one as well: systemctl enable tactic ? RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - tushar_soni - 07-27-2020 (07-26-2020, 06:35 PM)Bob.K Wrote: yeah weill, i actually did used systemctl to enable the service on boot....I'm not sure why you have to fiddle around with chkconfigYes, I had done that but again it gave error about service tactic does not support chkconfig That's the reason why systemctl enable tactic doesn't work, if this works then tactic will start on every boot. RE: HOW TO: Install Tactic-4.7 Enterprise on CentOS 7 - tushar_soni - 07-27-2020 (07-27-2020, 04:04 AM)tushar_soni Wrote:Finally got tactic 4.8.0.b03 working on centos 7 with minor change in /etc/rc.d/init.d/tactic service(07-26-2020, 06:35 PM)Bob.K Wrote: yeah weill, i actually did used systemctl to enable the service on boot....I'm not sure why you have to fiddle around with chkconfigYes, I had done that but again it gave error about service tactic does not support chkconfig I changed chkconfig runlevels like below... Code: #chkconfig 2345 99 10 |