웹사이트 검색

CentOS 8에 OrangeScrum을 설치하는 방법


이 페이지에서

  1. 요구 사항\n
  2. 시작하기\n
  3. LAMP 서버를 설치합니다.\n
    1. 1. 아파치 웹 서버 설치
    2. 2. MariaDB 설치 및 구성
    3. 3. PHP 설치 및 구성

    Orangescrum은 CakePHP를 사용하여 작성된 오픈 소스 및 협업 웹 애플리케이션입니다. 간단하고 사용하기 쉬운 도구를 사용하여 프로젝트, 팀, 문서, 작업을 관리하고 중요한 문제에 대해 팀과 소통합니다. 중소기업에서 널리 사용되는 도구입니다. Orangescrum에는 민첩한 프로젝트 관리, 협업, 문제 추적, 알림, 보고, 작업 관리, 대화 스레드 및 고품질 프로젝트를 제공하기 위해 작업 프로세스를 가속화하는 기타 여러 기능과 같은 많은 유용한 기능이 있습니다.

    요구 사항

    • OS:- Centos 8
    • sudo 권한이 있는 루트가 아닌 사용자.\n
    • STRICT 모드가 켜져 있으면 끕니다. 데이터베이스 서버에서.

    시작하기

    먼저 sudo 권한으로 Centos 시스템에 로그인하고 다음 명령을 사용하여 시스템을 업데이트합니다.

    dnf update

    LAMP 서버를 설치합니다.

    1. 아파치 웹 서버 설치

    다음 명령으로 Apache Web Server를 설치합니다.

    sudo dnf -y install httpd

    이제 다음 명령을 사용하여 Apache 서비스를 확인하십시오.

    systemctl status httpd

    Apache 서비스가 작동하지 않는 경우 시작하고 다음 명령을 사용하여 부팅 시 시작되도록 활성화합니다.

    sudo systemctl start httpd
    sudo systemctl enable httpd

    2. MariaDB 설치 및 구성

    다음 명령을 실행하여 MariaDB 서버를 설치합니다.

    sudo dnf install mariadb-server

    이제 MariaDB 서비스를 시작하고 부팅 시 시작하도록 활성화한 다음 다음 명령을 사용하여 MariaDB 서비스 상태를 확인합니다.

    sudo systemctl start mariadb
    sudo systemctl enable mariadb
    sudo systemctl status mariadb

    다음으로 터미널에서 다음 명령을 실행하려면 데이터베이스 서버를 보호해야 합니다.

    sudo mysql_secure_installation

    여기에서 강력한 암호를 설정하고 모든 질문에 예라고 답하십시오.

    Set root password? [Y/n] Y
    New password:
    Re-enter new password:
    Remove anonymous users? [Y/n] Y
    Disallow root login remotely? [Y/n] Y
    Remove test database and access to it? [Y/n] Y
    Reload privilege tables now? [Y/n] Y

    이제 MariaDB 설치가 안전합니다.

    다음으로 아래와 같이 MariaDB 콘솔에 로그인합니다.

    sudo mysql -u root -p

    다음으로 MariaDB에 대한 엄격 모드를 비활성화해야 합니다. 먼저 다음을 사용하여 MariaDB가 실행 중인 모드를 확인합니다.

    MariaDB [(none)]> SHOW VARIABLES LIKE 'sql_mode';

    다음과 같은 출력이 표시됩니다.

    +---------------+-------------------------------------------------------------------------------------------+
    | Variable_name | Value                                                                                     |
    +---------------+-------------------------------------------------------------------------------------------+
    | sql_mode      | STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
    +---------------+-------------------------------------------------------------------------------------------+
    1 row in set (0.001 sec)

    다음으로 다음 명령을 실행하여 엄격 모드를 비활성화할 수 있습니다.

    MariaDB [(none)]> SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';

    그런 다음 다음을 실행하여 엄격 모드가 비활성화되었는지 여부를 확인할 수 있습니다.

    MariaDB [(none)]> SELECT @@GLOBAL.sql_mode;

    그런 다음 MariaDB 서비스를 다시 시작하십시오.

    sudo systemctl restart mariadb

    다음으로 MariaDB 콘솔에 로그인하고 Orangescrum용 데이터베이스를 생성해야 합니다. 다음 명령을 실행하여 데이터베이스를 생성합니다.

    sudo mysql -u root -p

    프롬프트가 표시되면 루트 비밀번호를 입력하고 다음 명령을 실행하십시오.

    MariaDB [(none)]> CREATE DATABASE orangescrum;

    Now create a new user and grant the required permissions to the user for the database.

    MariaDB [(none)]> CREATE USER 'orangescrum_user'@'localhost' IDENTIFIED BY 'YourStrongPassword';

    Then grant privileges to the orangescrum database with the following command:-

    GRANT ALL PRIVILEGES ON orangescrum.* TO 'orangescrumuser'@'localhost' IDENTIFIED BY 'YourStrongPassword' WITH GRANT OPTION;

    이제 다음 명령을 실행하여 데이터베이스 권한에 대한 변경 사항을 즉시 적용하십시오.

    MariaDB [(없음)]> FLUSH PRIVILEGES;

    다음으로 MySQL 셸을 종료합니다.

    MariaDB [(없음)]> 종료

    3. PHP 설치 및 구성

    다음으로 PHP 패키지를 설치하고 터미널에서 다음 명령을 실행해야 합니다.

    sudo dnf install php php-cli php-mysqlnd php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap php-curl php-opcache php-bcmath php-fpm

    모든 패키지가 설치되면 이제 OrangeScrum에서 요구하는 대로 php.ini 파일을 일부 변경해야 합니다.

    먼저 php.ini를 백업합니다.

    cp /etc/php.ini /etc/php.ini.bak

    다음 편집 php.ini 파일

    sudo vim /etc/php.ini

    값을 찾아 2M에서 200M으로 변경합니다.

    post_max_size=200M
    upload_max_filesize=200M

    파일을 저장하고 닫습니다.

    다음으로 변경 사항을 적용하려면 아파치 웹 서버를 다시 시작하고 다음 명령을 실행해야 합니다.

    sudo systemctl restart httpd

    오렌지스크럼 설치

    Orangescrum의 오픈 소스 버전을 다운로드하려면 다음 명령을 실행하십시오.

    sudo wget https://github.com/Orangescrum/orangescrum/archive/master.zip

    그런 다음 다음을 실행하여 다운로드한 파일의 압축을 풉니다.

    sudo unzip master.zip

    그러면 orangescrum-master 디렉토리가 생성됩니다.

    이제 orangescrum-master 디렉토리를 Apache 웹 디렉토리로 이동하십시오. 다음을 실행하여 이를 수행할 수 있습니다.

    sudo mv orangescrum-master /var/www/html/

    다음으로 orangescrum-master 디렉토리에 올바른 권한을 부여하십시오.

    sudo chown -R apache:apache /var/www/html/orangescrum-master
    sudo chmod -R 777 /var/www/html/orangescrum-master

    Orangescrum용 Apache 구성

    먼저 Orangescrum용 가상 호스트 파일을 만들고,

    sudo vim /etc/httpd/conf.d/orangescrum.conf

    그런 다음 다음 콘텐츠를 추가합니다.

    <VirtualHost *:80>
    ServerName localhost
    DocumentRoot /var/www/html/orangescrum-master
    <Directory /var/www/html/orangescrum-master>
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>
    </VirtualHost>

    저장하고 종료:

    :wq!

    완료되면 구성 구문을 확인합니다. 이렇게 하려면 다음 명령을 실행합니다.

    sudo apachectl configtest

    구문 검사가 완료되면 Apache 서비스를 다시 시작합니다.

    sudo systemctl restart httpd

    Orangescrum 구성

    이제 아래와 같이 다음 명령을 사용하여 OrangeScrum 데이터를 orangescrum 데이터베이스로 가져옵니다.

    mysql -u orangescrum_user -p orangescrum < /var/www/html/orangescrum-master/database.sql

    이제 데이터베이스 연결 세부 정보를 업데이트하려면 database.php 파일을 편집해야 합니다.

    vim /var/www/html/orangescrum-master/app/Config/database.php

    아래와 같이 파일을 변경합니다.

    class DATABASE_CONFIG {

        public $default = array(
                'datasource' => 'Database/Mysql',
                'persistent' => false,
                'host' => 'localhost',
                'login' => 'orangescrum_user',
                'password' => 'Your_StrongPassword',
                'database' => 'orangescrum',
                'prefix' => '',
                'encoding' => 'utf8',
        );
    }

    그런 다음 파일을 저장하고 종료합니다. 여기에서 데이터베이스와 MySQL 사용자를 생성할 때 선택한 데이터베이스 사용 이름, 암호 및 데이터베이스 이름을 입력해야 합니다.

    다음으로 SMTP용 constants.php 파일을 편집해야 합니다.

    sudo vim /var/www/html/orangescrum-master/app/Config/constants.php
    Next Find and Change the following lines as per your need:

    //Gmail SMTP
    define("SMTP_HOST", "ssl://smtp.gmail.com");
    define("SMTP_PORT", "465");
    define("SMTP_UNAME", "'); //(REQUIRED) From Email

    이제 Apache 서비스를 다시 시작하십시오.

    sudo systemctl restart httpd

    그런 다음 웹 액세스를 허용하기 위해 방화벽 규칙을 수정합니다.

    sudo firewall-cmd --zone=public --permanent --add-service=http
    sudo firewall-cmd --reload

    아래 주어진 명령을 사용하여 일시적으로 SELinux를 비활성화할 수 있습니다.

    setenforce 0

    Orangescrum 테스트

    웹 브라우저에서 http://yourserverIP를 방문하여 회사 이름, 이메일 및 암호를 입력한 다음 가입 버튼을 클릭합니다.

    이제 OrangeScrum에서 더 많은 것을 탐색하십시오.