Rhymix
라이믹스(Rhymix)는 모던 PHP를 지향하는 웹 프레임워크이고, 그 프레임워크를 기반으로 구현된 콘텐츠 관리 시스템(CMS)이기도 합니다.


- 설치 환경 : Rocky 9, 가상 서버
- 참고 메뉴얼 : https://rhymix.org/manual
-rhymix github : https://github.com/rhymix/rhymix
Rhymix 매뉴얼
Rhymix is an open source content management system.
rhymix.org
- 데몬 최소 사양 및 필수/권장 모듈
- PHP 7.2.5 이상 (PHP 7.4 이상 권장)
- MySQL 5.7 이상 또는 MariaDB 10.1 이상
- 필수 PHP 모듈
- curl
- gd
- iconv 또는 mbstring
- json
- openssl
- PDO_MySQL
- SimpleXML
- Zend OPcache
- 권장 PHP 모듈
- apcu (캐시 사용을 통해 성능 향상 가능)
- exif (이미지 자동 회전 기능에 필요)
- fileinfo (첨부파일 보안 검사에 필요)
- intl (한글도메인 사용시 성능 향상 효과 있음)
- zip (추후 필수 모듈로 지정될 가능성 있음)
서버 기본 프로그램 설치
dnf groupinstall "BASE" -y
Last metadata expiration check: 0:51:10 ago on Fri Jun 21 09:05:30 2024.
Dependencies resolved.
=======================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================
Installing group/module packages:
at x86_64 3.1.23-11.el9 baseos 60 k
attr x86_64 2.5.1-3.el9 baseos 58 k
bash-completion noarch 1:2.11-5.el9 baseos 291 k
bc x86_64 1.07.1-14.el9 baseos 118 k
blktrace x86_64 1.2.0-19.el9 appstream 142 k
bluez x86_64 5.64-2.el9 baseos 978 k
bpftool x86_64 7.3.0-427.22.1.el9_4 baseos 6.1 M
bzip2 x86_64 1.0.8-8.el9 baseos 52 k
cockpit x86_64 311.2-1.el9_4 baseos 40 k
cryptsetup x86_64 2.6.0-3.el9 baseos 296 k
cyrus-sasl-plain x86_64 2.1.27-21.el9 baseos 23 k
dos2unix x86_64 7.4.2-4.el9 baseos 235 k
ed x86_64 1.14.2-12.el9 baseos 74 k
fprintd-pam x86_64 1.94.0-3.el9 appstream 24 k
iprutils x86_64 2.4.19-5.el9 baseos 244 k
kmod-kvdo x86_64 8.2.3.3-117.el9 baseos 334 k
kpatch noarch 0.9.7-2.el9 baseos 15 k
kpatch-dnf noarch 0.9.7_0.4-2.el9 baseos 16 k
ledmon x86_64 0.97-1.el9 baseos 86 k
libstoragemgmt x86_64 1.9.7-2.el9 appstream 244 k
lsof x86_64 4.94.0-3.el9 baseos 238 k
lvm2 x86_64 9:2.03.23-2.el9 baseos 1.5 M
mailcap noarch 2.1.49-5.el9 baseos 32 k
man-pages noarch 6.04-1.el9 baseos 5.7 M
mcelog x86_64 3:195-0.el9 baseos 77 k
mlocate x86_64 0.26-30.el9 baseos 113 k
mtr x86_64
php 설치
dnf install php
Last metadata expiration check: 0:51:01 ago on Fri Jun 21 09:05:30 2024.
Dependencies resolved.
=======================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================
Installing:
php x86_64 8.0.30-1.el9_2 appstream 7.7 k
Installing dependencies:
apr x86_64 1.7.0-12.el9_3 appstream 122 k
apr-util x86_64 1.6.1-23.el9 appstream 94 k
apr-util-bdb x86_64 1.6.1-23.el9 appstream 12 k
httpd-core x86_64 2.4.57-8.el9 appstream 1.4 M
httpd-filesystem noarch 2.4.57-8.el9 appstream 12 k
httpd-tools x86_64 2.4.57-8.el9 appstream 80 k
libxslt x86_64 1.1.34-9.el9 appstream 240 k
mailcap noarch 2.1.49-5.el9 baseos 32 k
nginx-filesystem noarch 1:1.20.1-14.el9_2.1 appstream 8.5 k
php-common x86_64 8.0.30-1.el9_2 appstream 665 k
rocky-logos-httpd noarch 90.15-2.el9 appstream 24 k
Installing weak dependencies:
apr-util-openssl x86_64 1.6.1-23.el9 appstream 14 k
httpd x86_64 2.4.57-8.el9 appstream 45 k
mod_http2 x86_64 2.0.26-2.el9_4 appstream 162 k
mod_lua x86_64 2.4.57-8.el9 appstream 59 k
php-cli x86_64 8.0.30-1.el9_2 appstream 3.1 M
php-fpm x86_64 8.0.30-1.el9_2 appstream 1.6 M
php-mbstring x86_64 8.0.30-1.el9_2 appstream 468 k
php-opcache x86_64 8.0.30-1.el9_2 appstream 509 k
php-pdo x86_64 8.0.30-1.el9_2 appstream 81 k
php-xml x86_64 8.0.30-1.el9_2 appstream 131 k
Transaction Summary
설치 확인 및 설치된 모듈 확인하여 없는 필수 모듈 설치
[php 설치 및 버전 확인]
php -v
PHP 8.0.30 (cli) (built: Aug 3 2023 17:13:08) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies
[php 모듈 확인]
php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
...
..
[Zend Modules]
Zend OPcache
[확인하여 없는 필수모듈 설치]
dnf install php-gd
Last metadata expiration check: 1:00:36 ago on Fri Jun 21 09:05:30 2024.
Dependencies resolved.
=======================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================
Installing:
php-gd x86_64 8.0.30-1.el9_2 appstream 39 k
Installing dependencies:
gd x86_64 2.3.2-3.el9 appstream 131 k
jbigkit-libs x86_64 2.1-23.el9 appstream 52 k
libXpm x86_64 3.5.13-10.el9 appstream 58 k
libtiff x86_64 4.4.0-12.el9 appstream 197 k
libwebp x86_64 1.2.0-8.el9 appstream 276 k
...
..
Complete!
git 설치 및 rhymix 설치
dnf install git
Last metadata expiration check: 2:05:19 ago on Fri Jun 21 09:05:30 2024.
Dependencies resolved.
=======================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================
Installing:
git x86_64 2.43.0-1.el9 appstream 50 k
Installing dependencies:
git-core x86_64 2.43.0-1.el9 appstream 4.4 M
git-core-doc noarch 2.43.0-1.el9 appstream 2.6 M
perl-Error noarch 1:0.17029-7.el9 appstream 41 k
perl-Git noarch 2.43.0-1.el9 appstream 37 k
Transaction Summary
[git rhymix 다운로드]
git clone https://github.com/rhymix/rhymix.git
Cloning into 'rhymix'...
remote: Enumerating objects: 202155, done.
remote: Counting objects: 100% (11635/11635), done.
remote: Compressing objects: 100% (3999/3999), done.
remote: Total 202155 (delta 7857), reused 11082 (delta 7368), pack-reused 190520
Receiving objects: 100% (202155/202155), 106.76 MiB | 14.62 MiB/s, done.
Resolving deltas: 100% (143185/143185), done.
[설정]
# shopt -s dotglob
# mv rhymix/* .
# shopt -u dotglob
# git checkout develop
branch 'develop' set up to track 'origin/develop'.
Switched to a new branch 'develop'
# mkdir files
# chmod 777 files
[파일명 변경 및 기존폴더 생성]
[root@Rhymix src]# mv /usr/local/src /home/rhymix
[root@Rhymix src]# mkdir /usr/local/src
httpd 설정
[conf파일 설정]
vi /etc/httpd/conf.d/vhost.conf
<VirtualHost *:80>
<Location />
Require all denied //아이피접근 차단
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName 도메인 기입
ServerAdmin 관리자 이메일 주소 기입
DocumentRoot "/home/rhymix"
ErrorDocument 404 /home/www/404_error.html
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
CustomLog "/etc/httpd/logs/rhymix_access.log" combined
ErrorLog "/etc/httpd/logs/rhymix_www_error.log"
TransferLog "/etc/httpd/logs/rhymix_www_transfer.log"
<Directory '/home/rhymix'>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
[적용 및 데몬 실행 확인]
# systemctl restart httpd
# netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 816/sshd: /usr/sbin
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 816/sshd: /usr/sbin
tcp6 0 0 :::80 :::* LISTEN 42154/httpd
tcp6 0 0 :::111 :::* LISTEN 1/systemd
mysql 서버 설치
dnf install mysql*
Last metadata expiration check: 2:14:04 ago on Fri Jun 21 09:05:30 2024.
Dependencies resolved.
=======================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================
Installing:
mysql x86_64 8.0.36-1.el9_3 appstream 2.7 M
mysql-common x86_64 8.0.36-1.el9_3 appstream 69 k
mysql-errmsg x86_64 8.0.36-1.el9_3 appstream 497 k
mysql-selinux noarch 1.0.10-1.el9 appstream 36 k
mysql-server x86_64 8.0.36-1.el9_3 appstream 17 M
Installing dependencies:
mecab x86_64 0.996-3.el9.4 appstream 346 k
protobuf-lite x86_64 3.14.0-13.el9 appstream 231 k
Transaction Summary
=======================================================================================================================================
Install 7 Packages
Total download size: 21 M
Installed size: 179 M
Is this ok [y/N]: y
mysql 실행 및 mysql DB, 유저 생성
[mysql 실행]
systemctl start mysqld
netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 816/sshd: /usr/sbin
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 816/sshd: /usr/sbin
tcp6 0 0 :::80 :::* LISTEN 42351/httpd
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::33060 :::* LISTEN 43090/mysqld
tcp6 0 0 :::3306 :::* LISTEN 43090/mysqld
[mysql 접속]
mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.36 Source distribution
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
[DB,user 생성 권한 설정]
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> create database rhymix;
Query OK, 1 row affected (0.00 sec)
mysql> create user rhymix@localhost identified by '패스워드';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on rhymix.* to 'rhymix'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
웹 접근(IP 또는 도메인 입력)하여 Rhymix 설치 진행

동의 및 다음>>

필수 모듈 설치 OK --> 다음 >>

생성하였던 DB정보 기입

관리자 계정 생성 완료 >>시 설치진행됩니다.
[설치 완료]

'Server > Web' 카테고리의 다른 글
| L4 로드밸런서 구축 및 활용 (0) | 2022.05.07 |
|---|---|
| linux 웹서비스 접속 느림불가 현상 원인 파악 (0) | 2022.01.15 |
| Nginx, Apache, Tomcat 비교 (0) | 2022.01.12 |
| apache 웹사이트 접속자 수 확인 (0) | 2021.12.20 |
| apache error페이지 출력 설정 (0) | 2021.12.20 |
댓글