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
게시글 목록
| 번호 | 제목 |
|---|---|
| 21184 | |
| 21166 | |
| 21157 | |
| 21136 | |
| 21132 | |
| 21124 | |
| 21119 | |
| 21114 | |
| 21106 | |
| 21095 | |
| 21069 | |
| 21063 | |
| 21060 | |
| 21058 | |
| 21053 | |
| 21035 | |
| 21032 | |
| 21028 | |
| 21009 | |
| 21000 | |
| 20994 | |
| 20993 | |
| 20984 | |
| 20979 | |
| 20958 | |
| 20935 | |
| 20934 | |
| 20930 | |
| 20913 | |
| 20883 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기