Centos

2019-09-11 10:15:56
John Ten
1914
Final Edition:tengfei De 2019-09-11 14:01:32

ZenTao Group 1.1+ supports Centos 7+ and Apache 2.4+.


1. The Runtime for ZenTao Group

1.1 ZenTao Group 1.0 only supports Ubuntu 16.04. ZenTao Group 1.1+ supports Centos 7+ and Apache 2.4+.

1.2 ZenTao Group consists of Platform and Site. You have to do domain name resolution for both of them to the IP of ZenTao Group server.


2. Configure Centos

2.1 Install Apache

Enter

yum install httpd


Set auto start and restart Apache


systemctl enable httpd
systemctl restart httpd


2.2 Install MySQL. For Centos, install mariadb.

Enter


yum install mariadb-server


Start  mariadb.

systemctl start mariadb


Check whether mariadb is installed.

mysql -uroot -p


If you can access it, that means it is installed.


Set auto start for mariadb.


systemctl enable mariadb


2.3 Install PHP

Take PHP7.1 as an example.


Get the installation package. 


rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm


Install.


yum install -y  php71w php71w-cli php71w-common php71w-devel php71w-gd php71w-pdo php71w-mysql php71w-mbstring php71w-bcmath php71w-ldap php71w-ssl


After the installation, restart Apache.


systemctl restart httpd


3. Install ionCube.

Visit ZenTao Group, and you will be asked to install ionCube.


It is suggested that you install Ioncube using the wizard which can be downloaded here http://www.ioncube.com/loader-wizard/loader-wizard.zip

Unzip it and save it to www, e.g. /var/www/html. Visit loader-wizard.php in your browser, e.g. http://localhost/loader-wizard.php and follow the instructions below.



4. Download ZenTao Group and Configure Domains

4.1 Download source code package from https://www.zentao.pm/download.html. 


The package is a .zip file and the number of user for Platform is unlimited with 2 sites ( each site has 10 developer users and 20 non-developer users). For more users, contact renee@easysoft.ltd.

4.2 Unzip the file and get zentaogroup. Copy zentaogroup to the directory of your server, e.g. www or htdocs of Apache, e.g. /var/www/html.

4.3 Parse the domains and visit it. The installation will be automatically started.


Go to the directory which is to save the configuration of Apache, e.g. /etc/httpd/conf.d/, and created the configuration file for the domain, e.g. 00-group.conf. Enter the code as shown below.


<VirtualHost *:80>
    DocumentRoot "/var/www/html/zentaogroup/plat/www/"
    ServerName zentao.plat.com
    <Directory "/var/www/html/zentaogroup/plat/www/">
      AllowOverride All
      Options None
      Require all granted
    </Directory>
</VirtualHost>


Make sure this file is loaded first by naming it with the initial listed before zentaogroup.conf.


Restart Apache.


systemctl restart httpd 


Visit the domain and the installation will be started.


4.4 Change the access control of apached

Go to /etc/httpd/conf/ and edit httpd.conf as shown below.


Restart Apache.


4.5 If it is not responding, turn off the firewall and try again.

Turn off the firewall.


firewall-cmd --zone=public --add-port=80/tcp --permanent


Restart the firewall.


systemctl restart firewalld


5. Installation

Take zentao.plat.com as an example. 


Visit http://zentao.plat.com/install.php and start the installation.


5.1 The landing page of ZenTao Group installation.

SCREENSHOT


5.2 Agree to ZPL drafted by Nature Easy Soft.

SCREENSHOT


5.3 Follow the instructions to check the system.

SCREENSHOT


You have to add macro of Apache manually. Go to /etc/httpd/conf.modules.d/, add macro, and save. Restart Apache.


#vim  /etc/httpd/conf.modules.d/00-base.conf and add
LoadModule macro_module modules/mod_macro.so
#Restart Apache systemctl restart httpd 
 


 

If it still says that failed in the system checkup, try to close selinx.


Temporarily shut down selinx  and you do not have to restart Apache.


setenforce 0


If you want to permanently close it, go to /etc/selinux/config and change SELINUX=enforcing to SELINUX=disabled. Then restart Apache.


The system checkup should be alright now.


5.4 Create the configuration file.

SCREENSHOT


5.5 Save the file.

SCREENSHOT


5.6 Set the username and the password for the administrator.

SCREENSHOT


5.7 Configure the system directories for ZenTao Group.

SCREENSHOT


5.8 Download the configuration file and set the cron.

SCREENSHOT


After you download the configuration file of Apache, save it as instructed. Then restart Apache.

SCREENSHOT


Make sure the configuration file you write will be listed before zentaogroup.conf in a folder, so it will be loaded first.


If you see the page below, it means you have installed ZenTao Group.

SCREENSHOT



Commenter
Commentaires reçus après vérification。