Rocky Linux 9 APM phpMyAdmin 설치 > 리눅스

본문 바로가기
사이트 내 전체검색

리눅스

Rocky Linux 9 APM phpMyAdmin 설치

페이지 정보

profile_image
작성자 아름답게
댓글 0건 조회 776회 작성일 24-03-10 15:47

본문

Rocky Linux 서버 설정

참조: https://www.youtube.com/watch?v=wvwFWEpp5eE
https://foxydog.tistory.com/84

1단계: 설치 준비
dnf -y update

dnf -y install epel-release

cat /etc/selinux/config | grep SELINUX  [보안 설정]
SELINUX=disabled  [빠른 테스트를 위해 비활성화, 재시작 필요]



2단계: 설치 단계
dnf -y install httpd php php-mysqlnd mariadb mariadb-server nginx

방화벽 해제
firewall-cmd --permanent --add-port=80/tcp  [HTTP 80번 포트 추가]
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload  [적용]
firewall-cmd --list-all  [추가된 포트 확인]


설치가 완료되면 다음 명령을 실행하여 httpd 및 mariadb 서비스가 시스템 부팅 중에 자동으로 실행될 수 있도록 합니다.
systemctl enable mariadb
systemctl enable httpd


httpd 및 mariadb 서비스를 시작합니다.
systemctl restart php-fpm mariadb httpd

systemctl restart mariadb
systemctl restart httpd
systemctl restart php-fpm


GD 라이브러리 설치
dnf -y install php-gd gd-devel libjpeg-devel libpng-devel freetype-devel


Maria DB 기본 설정 [DB가 구동된 상태에서 진행 가능]
mysql_secure_installation
mariadb -u root -p
quit
FLUSH PRIVILEGES;


phpmyadmin 기본 설정
dnf -y install phpmyadmin

2-1 phpmyadmin 환경설정
/etc/httpd/conf.d/phpMyAdmin.conf
 
# Alias /phpMyAdmin /usr/share/phpMyAdmin
# Alias /phpmyadmin /usr/share/phpMyAdmin
Alias /phpm /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
  AddDefaultCharset UTF-8

  Require local
  Require ip 192.168.0.81  # 접근가능한 컴퓨터의 ip
  Require ip 192.168.0.68  # 접근가능한 컴퓨터의 ip
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
  Require local
  Require ip 192.168.0.81  # 접근가능한 컴퓨터의 ip
  Require ip 192.168.0.68  # 접근가능한 컴퓨터의 ip
</Directory>


재시작
systemctl restart php-fpm mariadb httpd

systemctl restart mariadb
systemctl restart httpd
systemctl restart php-fpm


인터넷에서 접속확인
http://192.169.1.1/phpmyadmin/

댓글목록

등록된 댓글이 없습니다.


회사소개 개인정보취급방침 서비스이용약관 모바일 버전으로 보기 상단으로

TEL. [본점] 042-365-0123 [청주] 043-223-2114 H.P 010-5500-1456. 개인정보관리책임자 Email: kpcas@pcas.kr
대표:임재관 사업자등록번호:305-08-54668.

Copyright © www.PCAS.kr. All rights reserved.