ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Rocky os 8.9 APM 설치 - apache 설치
    APM으로 게시판 만들기 2024. 6. 5. 13:19

    아래의 사이트를 보고 진행했습니다.

    정확한 정보를 보고 싶으면 아래 사이트로 가주세요.

     

    https://xinet.kr/?p=4173

     

    APM 최신버전 설치 yum ( apache 2.4.37 / php 8.3.2 / mariadb 11.3.1 )

    os/ : rocky linux 8.x서비스 등록 및 시작[crayon-665fc3dd9114f55818...

    xinet.kr

     

    이제 아파치 설치해보자.

     

    # dnf install httpd httpd-devel mod_ssl

    마지막 메타자료 만료확인(0:20:34 이전): 2024년 06월 05일 (수) 오전 06시 47분 09초.
    종속성이 해결되었습니다.
    ==========================================================================================================================================================
     꾸러미                             구조                    버전                                                         저장소                      크기
    ==========================================================================================================================================================
    설치 중:
     httpd                              x86_64                  2.4.37-64.module+el8.10.0+1717+030a9fed                      appstream                  1.4 M
     httpd-devel                        x86_64                  2.4.37-64.module+el8.10.0+1717+030a9fed                      appstream                  227 k
     mod_ssl                            x86_64                  1:2.4.37-64.module+el8.10.0+1717+030a9fed                    appstream                  140 k
    향상 중:
     expat                              x86_64                  2.2.5-13.el8_10                                              baseos                     113 k
    종속 꾸러미 설치 중:
     apr                                x86_64                  1.6.3-12.el8                                                 appstream                  128 k
     apr-devel                          x86_64                  1.6.3-12.el8                                                 appstream                  245 k
     apr-util                           x86_64                  1.6.1-9.el8                                                  appstream                  105 k
     apr-util-devel                     x86_64                  1.6.1-9.el8                                                  appstream                   85 k
     cyrus-sasl-devel                   x86_64                  2.1.27-6.el8_5                                               baseos                     127 k
     expat-devel                        x86_64                  2.2.5-13.el8_10                                              baseos                      57 k
     httpd-filesystem                   noarch                  2.4.37-64.module+el8.10.0+1717+030a9fed                      appstream                   43 k
     httpd-tools                        x86_64                  2.4.37-64.module+el8.10.0+1717+030a9fed                      appstream                  110 k


    ..........
    ..........
    ..........


    향상되었습니다:
      expat-2.2.5-13.el8_10.x86_64
    설치되었습니다:
      apr-1.6.3-12.el8.x86_64                                                        apr-devel-1.6.3-12.el8.x86_64
      apr-util-1.6.1-9.el8.x86_64                                                    apr-util-bdb-1.6.1-9.el8.x86_64
      apr-util-devel-1.6.1-9.el8.x86_64                                              apr-util-openssl-1.6.1-9.el8.x86_64
      cyrus-sasl-devel-2.1.27-6.el8_5.x86_64                                         expat-devel-2.2.5-13.el8_10.x86_64
      httpd-2.4.37-64.module+el8.10.0+1717+030a9fed.x86_64                           httpd-devel-2.4.37-64.module+el8.10.0+1717+030a9fed.x86_64
      httpd-filesystem-2.4.37-64.module+el8.10.0+1717+030a9fed.noarch                httpd-tools-2.4.37-64.module+el8.10.0+1717+030a9fed.x86_64
      libdb-devel-5.3.28-42.el8_4.x86_64                                             mod_http2-1.15.7-10.module+el8.10.0+1775+6b057638.x86_64
      mod_ssl-1:2.4.37-64.module+el8.10.0+1717+030a9fed.x86_64                       openldap-devel-2.4.46-18.el8.x86_64
      rocky-logos-httpd-86.3-1.el8.noarch

    완료되었습니다!

     

    또 다시 향상이 되었고 설치를 하여 완료까지 되었다.

     dnf 가 뭐지? 라떼는 rpm만 죽어라 했는데. 종속성 때문에 개고생했는데...

    yum이 친숙해질라 하니 dnf가 나오네..

     

    나무위키 검색하니

    " DaNdiFied(멋쟁이) Yum의 준말이다.[1]
    어원에서 알수있듯이 yum과 yum의 근간인 rpm에 기반하는 패키지 매니저이다. 이렇게 보면 명령어(프로그램) 작명이 좀 동떨어진 느낌인데 DNA가 아니라 DNF라는 점을 기억하면 될듯하다."

     

    라고 하니.. 뭐 비슷한거구만.

     

    설치를 마쳤으니 설정을 해보자.

    아 설정을 하기 전에 아무것도 모르는 내가 설정을 잘 못할 경우...

    뭐를 고쳤는지도 모르게 때문에 백업을 떠주자.

     

    # cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf_bak

    안심하고 마구마구 고장내보자.

     

    # vi /etc/httpd/conf/httpd.conf 

    얘는 DB와 다르게 300줄이 넘는 어마어마한 길이를 가지고 있다.

    주석떼면 많이 줄어들 듯.

    [root@localhost ~]# vi /etc/httpd/conf/httpd.conf
     
    ServerRoot "/etc/httpd"
     
    #Listen 12.34.56.78:80
    Listen 80
     
    Include conf.modules.d/*.conf
     
    User apache
    Group apache
     
    ServerAdmin root@localhost
     
    ServerName www.example.com:80 <<<<<<<<<<
     
    <Directory />
        AllowOverride none
        Require all granted  <<<<<<<<<<
    </Directory>
     
    #DocumentRoot "/var/www/html"  <<<<<<<<<<
     
    #<Directory "/var/www">  <<<<<<<<<<
    #    AllowOverride None  <<<<<<<<<<
    #    # Allow open access:  <<<<<<<<<<
    #    Require all granted  <<<<<<<<<<
    #</Directory>  <<<<<<<<<<
     
    <IfModule dir_module>
        DirectoryIndex index.html index.htm  <<<<<<<<<<
    </IfModule>
     
    #
    <Files ".ht*">
        Require all denied
    </Files>
     
    #
    ErrorLog "logs/error_log"
     
    LogLevel warn  <<<<<<<<<<
     
    <IfModule log_config_module>
        #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined  <<<<<<<<<<
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i %{GEOIP_COUNTRY_CODE}e" combined  <<<<<<<<<< 따옴표가 이상한데..
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
        <IfModule logio_module>
          # You need to enable mod_logio.c to use %I and %O
          #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio  <<<<<<<<<<
          LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O %{GEOIP_COUNTRY_CODE}e" combinedio  <<<<<<<<<<
        </IfModule>
        #CustomLog "logs/access_log" common
        CustomLog "logs/access_log" combined
    </IfModule>
     
    #<Directory "/var/www/cgi-bin">  <<<<<<<<<<
    #    AllowOverride None  <<<<<<<<<<
    #    Options None  <<<<<<<<<<
    #    Require all granted  <<<<<<<<<<
    #</Directory>  <<<<<<<<<<
     
    <IfModule mime_module>
        TypesConfig /etc/mime.types
        #AddType application/x-gzip .tgz
        #AddEncoding x-compress .Z
        #AddEncoding x-gzip .gz .tgz
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
        #AddHandler cgi-script .cgi
        #AddHandler type-map var
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
    </IfModule>
     
    AddDefaultCharset UTF-8
     
    <IfModule mime_magic_module>
        MIMEMagicFile conf/magic
    </IfModule>
     
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #
     
    #EnableMMAP off
    EnableSendfile on
     
    # Load config files in the "/etc/httpd/conf.d" directory, if any.
    IncludeOptional conf.d/*.conf
     
    ### apache version Hide  <<<<<<<<<<
    ServerTokens Prod  <<<<<<<<<<
    ServerSignature Off  <<<<<<<<<<

     

    어휴 많다..

     

    # dnf config-manager --set-enabled powertools

    바로 프롬프트가 떨어진다

     

    # wget http://rpms.remirepo.net/enterprise/remi-release-8.rpm

    [root@localhost conf]# wget http://rpms.remirepo.net/enterprise/remi-release-8.rpm
    --2024-06-05 07:30:13--  http://rpms.remirepo.net/enterprise/remi-release-8.rpm
    Resolving rpms.remirepo.net (rpms.remirepo.net)... 109.238.14.107, 2a00:c70:1:109:238:14:107:1
    Connecting to rpms.remirepo.net (rpms.remirepo.net)|109.238.14.107|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 35252 (34K) [application/x-rpm]
    Saving to: ‘remi-release-8.rpm’

    remi-release-8.rpm                     100%[==========================================================================>]  34.43K   124KB/s    in 0.3s

    2024-06-05 07:30:14 (124 KB/s) - ‘remi-release-8.rpm’ saved [35252/35252]

     

    다운로드 완료

     

    # rpm -Uvh remi-release-8.rpm

    [root@localhost conf]# rpm -Uvh remi-release-8.rpm
    경고: remi-release-8.rpm: Header V4 RSA/SHA256 Signature, key ID 5f11735a: NOKEY
    오류: Failed dependencies:
            epel-release = 8 is needed by remi-release-8.9-3.el8.remi.noarch
    [root@localhost conf]#

    오류 없는 사회에서 살고 싶다.

    그래서 chatGPT 센세에게 물어본다.

     

    " 위 오류 메시지는 remi-release-8.rpm 패키지를 설치하려고 할 때 epel-release = 8 패키지가 필요하다는 것을 의미합니다. 이를 해결하기 위해서는 epel-release 패키지를 먼저 설치한 후 remi-release-8.rpm을 설치해야 합니다. 아래 단계에 따라 문제를 해결할 수 있습니다."

     

    # sudo dnf install epel-release

    [root@localhost conf]# sudo dnf install epel-release
    Rocky Linux 8 - PowerTools                                                                                                2.2 MB/s | 2.7 MB     00:01
    마지막 메타자료 만료확인(0:00:01 이전): 2024년 06월 05일 (수) 오전 07시 32분 42초.
    종속성이 해결되었습니다.
    ==========================================================================================================================================================
     꾸러미                                  구조                              버전                                   저장소                             크기
    ==========================================================================================================================================================
    설치 중:
     epel-release                            noarch                            8-18.el8                               extras                             24 k

    연결 요약
    ==========================================================================================================================================================
    설치  1 꾸러미

    전체 내려받기 크기: 24 k
    설치된 크기 : 35 k
    진행할까요? [y/N]: y
    꾸러미 내려받기 중:
    epel-release-8-18.el8.noarch.rpm                                                                                          159 kB/s |  24 kB     00:00
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    합계                                                                                                                       33 kB/s |  24 kB     00:00
    연결 확인 실행 중
    연결 확인에 성공했습니다.
    연결 시험 실행 중
    연결 시험에 성공했습니다.
    연결 실행 중
      준비 중     :                                                                                                                                       1/1
      설치 중     : epel-release-8-18.el8.noarch                                                                                                          1/1
      구현 중     : epel-release-8-18.el8.noarch                                                                                                          1/1
    Many EPEL packages require the CodeReady Builder (CRB) repository.
    It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

      확인 중     : epel-release-8-18.el8.noarch                                                                                                          1/1

    설치되었습니다:
      epel-release-8-18.el8.noarch

    완료되었습니다!

     

    그리고 바로 

    # rpm -Uvh remi-release-8.rpm

    경고: remi-release-8.rpm: Header V4 RSA/SHA256 Signature, key ID 5f11735a: NOKEY
    Verifying...                          ################################# [100%]
    준비 중...                         ################################# [100%]
    Updating / installing...
       1:remi-release-8.9-3.el8.remi      ################################# [100%]

    굳잡맨.

     

    일단 여기까지.

Designed by Tistory.