In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I: Introduction
Zen Road, project management software, is a domestic open source project management software, focusing on R & D project management, built-in requirements management, task management, bug management, defect management, use case management, plan release and other functions, to achieve the complete life cycle management of the software.
Zen Road uses PHP language development, need to run in docker installed with PHP, currently you can choose two different types of docker, one installed with apache, PHP, one installed with nginx, php, fpm. This is the first one, that is, using Apache, PHP.
There is already a docker image of php on "hub.docker.com". This time we choose "7.1.12-apache-jessie" version.
2: Docker deploys Zen
1. Create a directory on the host to deploy our installation package at/var/www/php-html
2. Download and run an image of php 7.1 with php 7.1 and apache installed using the following command:
docker run -d -p 8001:80 --name apache-php-app -v /var/www/php-html:/var/www/html php:7.1-apache
3. Download the relevant version of the installation package from the Zen website and extract it to the/var/www/php-html directory.
Source code download address: http://sourceforge.net/projects/zentao/files/9.6.3/ZenTaoPMS.9.6.3.zip/download
Unzip the installation package to the/var/www/php-html directory
4. Enter the address: ip:8001/zentaopms/www/in the browser to enter the installation page. Click "Next" to go to the "System Check" page.
5. Install pdo_mysql extension in php container and update php configuration file
1). Install pdo_mysql extension into container interior
docker exec -it containerid/bin/bash
docker-php-ext-install pdo_mysql
2). Update php profile inside container
Find the php.ini file on the server by find / -name "php.ini" and set the parameter to (remove the semicolon before configuration)
date.timezone = Asia/Shanghai
session.save_path = "/tmp"
Copy php configuration file inside container and restart container
docker cp Host directory/php.ini Container id:/usr/local/etc/php/php.ini
docker restart container id
6. Refresh the "System Check" page again, enter the "Generate Configuration File" page, enter the database configuration, and complete the installation
Docker deployment MySql (Server version: 8.0.12 MySQL Community Server - GPL)
Create MySql file directory
mkdir -p /mnt/mysql/data
mkdir -p /mnt/mysql/conf(mysql configuration file directory)
MySQL configuration file
[mysqld]pid-file = /var/run/mysqld/mysqld.pidsocket = /var/run/mysqld/mysqld.sockdatadir = /var/lib/mysqlsecure-file-priv= NULLdefault_authentication_plugin=mysql_native_passwordwait_timeout= 2880000interactive_timeout = 2880000max_allowed_packet= 1024M
default_authentication_plugin=mysql_native_password Set MySql authorization authentication method, otherwise client tools cannot connect to MySql remotely
wait_timeout= 2880000
interactive_timeout = 2880000
max_allowed_packet= 1024M
Increase MySql connection time, and maximum run execution packet size. Because in the database configuration phase of Zen Dao, a large number of SQL scripts will be executed to generate data tables related to Zen Dao. If the parameters are set too much, the mysql server has gone away error will be reported.
Docker launches MySql container
a).docker pull mysql
b).docker run -d -v /mnt/mysql/data:/var/lib/mysql -v /mnt/mysql/conf/my.cnf:/etc/mysql/my.cnf -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 --name mysql mysql
4: Centos Install PHP
If PHP is not installed on the service, php.ini file cannot be found during installation of Zen, install higher version of PHP with SCL (Software Collections) software library:
Install SCL
yum install centos-release-scl-rh
Install PHP 7.0
yum install rh-php70
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.