RHEL9 그누보드5 설치

배찌 (배찌)·2023년 2월 20일
0

설치 기록

목록 보기
1/12

그누보드 5 실행 조건PHP 5.2.17 이상 (PHP 7.2 이상 권장)

  • MySQL 5.0 이상 or MySQL 5.0 이상의 기능을 만족하는 MariaDB

  • 리눅스 호환 OS

  • 필수 라이브러리

    • GD Library 2.0 이상
    • iconv
    • php-fpm
yum -y update
yum -y install php mariadb mariadb-server httpd

yum list로 모두 조사해본 결과 모두 버전이 충족하여 기본 레포지터리로 설치하여도 무관하였다.

[root@ktwfolio src]# php -v
PHP 8.0.20 (cli) (built: Jun  8 2022 00:33:06) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.20, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.20, Copyright (c), by Zend Technologies
[root@ktwfolio src]# rpm -qa | grep -i mariadb
mariadb-connector-c-config-3.2.6-1.el9_0.noarch
mariadb-connector-c-3.2.6-1.el9_0.x86_64
mariadb-common-10.5.16-2.el9_0.x86_64
mariadb-10.5.16-2.el9_0.x86_6

php 모듈 다운

yum install php-gd php-mysql php-fpm

서비스 시작

sysetmctl start php-fpm httpd
systemctl enable php-fpm httpd

방화벽 열기

firewall-cmd --add-service=httpd --add-service=php-fpm --permanent
firewall-cmd --reload

iconv-simosx install (https://snapcraft.io/install/iconv-simosx/rhel)
두가지중 하나만 진행

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf upgrade
sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
sudo yum update

snap install

sudo yum install snapd

기본 스냅 통신 소켓을 관리하는 시스템 장치를 활성화

sudo systemctl enable --now snapd.socket

클래식 스냅 지원을 활성화 하기 위하여 심볼릭 링크 생성

sudo ln -s /var/lib/snapd/snap /snap
export PATH=$PATH::/var/lib/snapd/snap/bin

iconv-simosx install

snap install iconv-simosx
systemctl start mariadb
systemctl enable mariadb

MariaDB 설정

# mysql -u root -p
MariaDB [(none)]> create user 'gb'@localhost identified by '123qwe';
MariaDB [(none)]> create user 'gb'@'%' identified by '123qwe';
mysql> create database gb;
MariaDB [(none)]> grant all privileges on gb.* to gb@localhost identified by '123qwe';
MariaDB [(none)]> grant all privileges on gb.* to gb@'%' identified by '123qwe';
MariaDB [(none)]> flush privileges;
mysql> exit;

나의 경우 테스트로 접속 대역대를 제한하지 않았지만 공인 IP로 구현한다면 IP제한이 필수라는건 당연한 상식이다.

Gnuboard 설치

https://sir.kr/

tar -zxvf gnuboard5.5.8.2.6.tar.gz -C /var/www/html
sudo mkdir /var/www/html/data
sudo chmod 707 /var/www/html/data

다음은 GUI에서 순서에 따라하면 끝

profile
Never give up Impossible is nothing

0개의 댓글