1. ZenTao RTE
- Apache + PHP(7.0/7.1/7.2) + MySQL(5.5/5.6)/mariadb is recommended, Nginx is the second-best
- The modules of pdo, pdo_mysql, json, filter, openssl, mbstring, zlib, curl, gd, iconv are needed for ZenTao running, please make sure they are uploaded in the PHP environment.
2. Install httpd
Execute the following instructions to install and start the httpd.
dnf -y install httpd #Install Apache systemctl start httpd.service #Start Apache systemctl enable httpd.service #Enable Apache when booting
Other operation and maintenance commands of Apache.
systemctl status httpd.service #Check Apache systemctl stop httpd.service #Close Apache systemctl restart httpd.service #Restart Apache
After the installation is complete, check the Apache. If it is as shown in the screenshot below, the service has been started.
After the startup, you need to close the server firewall so that the browser can access the Apache service.
systemctl stop firewalld.service # Close the firewall. systemctl disable firewalld.service # Disable the firewall at booting systemctl status firewalld.service # Check the firewall status systemctl start firewalld.service # Start the firewall
Turn off selinux to prevent subsequent operations on files under /var from being unable to grant read and write permissions to files in this path. Run the following commands.
setenforce 0 # Close selinux
Modify the selinux configuration file to make it take effect after booting.
vi /etc/selinux/config # Change it to disabled SELINUX=disabled
After closing the firewall, check the server host IP address by executing the ip addr command for browser access.
Then run the following command.
echo Centos8 http is ok > /var/www/html/index.html
Visit http://serverip/index.html in your browser. If it shows the following screenshot, it means that the Apache configuration is successful.
Apache will be installed under: /etc/httpd/
Apache configuration file: /etc/httpd/conf/httpd.conf
The default access path for Apache website files: /var/www/html/
3. Install PHP 7.2
The default version in AppStream of RHEL 8 / CentOS 8 is PHP7.2, you can execute sudo dnf module list php to view.
Install php7.2 and the required components.
sudo dnf install php php-pdo php-gd php-mbstring php-mysqlnd php-ldap php-json php-xml php-zip
To test the integration of PHP and Apache services, execute the following commands on the command line.
echo '<?php phpinfo();?>' > /var/www/html/index.php
Restart the apache service, visit http://serverip/index.php in the browser, and the Apache configuration is successful if the page displays as follows.
4. Install Mariadb
Execute the following commands to install and start Mariadb.
dnf -y install mariadb mariadb-server systemctl start mariadb.service # start mariadb systemctl enable mariadb.service # enable mariadb at booting
Mariadb operation and maintenance commands.
systemctl status mariadb.service # check mariadb status systemctl stop mariadb.service # stop mariadb
Database installation settings, reset the database root account password, you have to start the Mariadb service before executing this command.
mysql_secure_installation Enter current password for root (enter for none): Set root password? [Y/n] New password: Re-enter new password: Remove anonymous users? [Y/n] Disallow root login remotely? [Y/n] Remove test database and access to it? [Y/n] Reload privilege tables now? [Y/n]
Log in to test, execute the following command and enter the password.
mysql -uroot -p
5. Install ZenTao
5.1 Download the latest version of the ZenTao software source package from the official website. Download HERE.
5.2 Use the lrzsz command to upload the ZenTao software to the /var/www/html directory of the server. You can also upload the ZenTao source package in your own way.
dnf -y install lrzsz # install rz uploaded program cd /var/www/html # switch to Apache root rz # upload ZenTao source code
5.3 Use the unzip command to unzip the ZenTao source code package.
dnf -y install unzip # Install unzip unzip ZenTaoPMS.11.5.stable.zip # Unzip source code zip package
5.4 After the unzip is complete, visit ZenTao software source code in your browser and install ZenTao.The default access address is (the name and path of the ZenTao source code folder has not been modified): http://serverip/zentaopms/www/index.php
Note: After you finish the installation, please delete install.php file for safety reasons (the default program will delete it).