Rocky Linux 9 APM phpMyAdmin 설치
페이지 정보
작성자 아름답게 작성일 24-03-10 15:47 조회 777 댓글 0본문
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/
참조: 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/
댓글목록 0
등록된 댓글이 없습니다.
