리자

클라우드 서버에 그누보드5 빠르게 설치하기. GNUBOARD5 PHP VERSION

https://youtu.be/9GZGdZ1-1UI

 

웹호스팅에서는 서비스 신청후 바로 서비스를 이용하지 못하는 경우가 있는데 클라우드 서비스를 이용하면 서버를 바로 만들고 웹사이트를 바로 이용할 수 있습니다.


이번에는 그누보드5 PHP 버전을 MYSQL, NGINX, PHP-FPM 조합으로 사용하는 방법에 대해 알아보고자 합니다.

 

설치 순서

 

1. 클라우드 서버 생성
    AWS Lightsail 서비스에서 ubuntu 22.04 인스턴스 생성

 

2. 서버 접속
    ssh -i pem파일 ubuntu@서버IP

 

3. 그누보드5 복제
    git clone https://github.com/gnuboard/gnuboard5.git

 

4. DB 서버 설치
    sudo apt update
    sudo apt install mysql-server
    sudo systemctl status mysql

 

5. mysql db, user 생성
    sudo mysql -uroot

 

    # mydatabase, myuser, mypassword는 상황에 맞게 수정하세요
    CREATE DATABASE mydatabase;
    CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword';
    GRANT ALL PRIVILEGES ON mydatabase.* TO 'myuser'@'localhost';


    FLUSH PRIVILEGES;

 

6. 웹서버 설치
    sudo apt install nginx
    sudo systemctl status nginx

 

7. PHP 설치
    sudo apt install php8.1-fpm
    sudo systemctl status php8.1-fpm

 

8. 웹서버 설정
    sudo vi /etc/nginx/sites-enabled/default
    
    server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /home/ubuntu/gnuboard5;
        index index.html index.htm index.nginx-debian.html index.php;
        server_name _;
        location / {
                try_files $uri $uri/ =404;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php8.1-fpm.sock;
        }
    }

 

    sudo systemctl restart nginx


9. 퍼미션 설정, 디렉토리 생성

    sudo chmod 701 /home/ubuntu

    mkdir /home/ubuntu/gnuboard5/data
    chmod 707 /home/ubuntu/gnuboard5/data

 

10. php 필수 모듈 설치
    sudo apt install php-gd php-mysql
    sudo systemctl restart nginx

 

11. 그누보드5 설치 
    http://서버IP

 

=끝=

 

그누보드 커뮤니티
https://sir.kr

|

댓글 1개

감사합니다 ^^

댓글을 작성하시려면 로그인이 필요합니다.
+
제목 글쓴이 날짜 조회
24-03-31 조회 6,225
24-03-31 조회 5,210
24-03-29 조회 5,446
24-03-27 조회 6,384
24-03-27 조회 6,234
24-03-27 조회 6,655
24-03-22 조회 5,708
24-03-19 조회 5,143
24-03-19 조회 1.1만
24-03-15 조회 5,892
24-03-15 조회 5,410
24-03-15 조회 5,303
24-03-15 조회 5,290
24-03-13 조회 5,899
24-03-05 조회 5,371
24-03-01 조회 5,394
24-02-29 조회 7,465
24-02-29 조회 6,571
24-02-28 조회 5,844
24-02-27 조회 5,989
24-02-24 조회 5,557
24-02-18 조회 6,170
24-02-17 조회 5,169
24-02-15 조회 5,515
24-02-14 조회 5,019
24-02-13 조회 8,539
24-02-05 조회 5,704
24-01-31 조회 5,890
24-01-30 조회 5,221
24-01-30 조회 5,856