11.Nas_1




Debian 10 Linux에 Apache Web Server를 재설치하는 방법

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문


    Debian 10 Linux에 Apache Web Server를 재설치하는 방법



    ■ 문제 발생 재 설치 합니다 

    https://linuxize.com/post/how-to-install-apache-on-debian-10/

    - 사용 system > gt-king-pro >> termux > debian10 설치 상태에서 Apache Web Server

    Debian_10]root~[23:18:15 apt update

    Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]

    Hit:3 http://packages.openmediavault.org/public erasmus InRelease

    Get:5 http://security.debian.org jessie/updates InRelease [44.9 kB]

    Ign:2 http://cdn-fastly.deb.debian.org/debian jessie InRelease

    Hit:4 http://cdn-fastly.deb.debian.org/debian jessie-updates InRelease

    Hit:7 http://deb.debian.org/debian buster InRelease

    Hit:6 http://cdn-fastly.deb.debian.org/debian jessie Release

    Get:8 http://security.debian.org jessie/updates/main Sources [323 kB]

    Get:9 http://security.debian.org jessie/updates/main armhf Packages [712 kB]

    Fetched 1,146 kB in 6s (194 kB/s)

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    All packages are up to date.


    Debian_10]root~[23:18:58 systemctl status apache2

    System has not been booted with systemd as init system (PID 1). Can't operate.

    Failed to connect to bus: Host is down

    Debian_10]root~[23:19:22 service apache2 status

    [FAIL] apache2 is not running ... failed!

    Debian_10]root~[23:19:48 service apache2 start

    [FAIL] Starting Apache httpd web server: apache2 failed!

    [....] The apache2 instance did not start within 20 seconds. Please read the log[warns to discover problems ... (warning).

    Debian_10]root~[23:20:18 apt purge apache2

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    The following packages were automatically installed and are no longer required:

      apache2-bin apache2-data apache2-utils libapr1 libaprutil1

      libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libcurl4 liblua5.2-0

      ssl-cert

    Use 'apt autoremove' to remove them.

    The following packages will be REMOVED:

      apache2*

    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.

    After this operation, 613 kB disk space will be freed.

    Do you want to continue? [Y/n] y

    (Reading database ... 47660 files and directories currently installed.)

    Removing apache2 (2.4.38-3+deb10u3) ...

    invoke-rc.d: could not determine current runlevel

    [ ok ] Stopping Apache htcacheclean: apache-htcacheclean.

    invoke-rc.d: could not determine current runlevel

    [ ok ] Stopping Apache httpd web server: apache2.

    (Reading database ... 47610 files and directories currently installed.)

    Purging configuration files for apache2 (2.4.38-3+deb10u3) ...

    dpkg: warning: while removing apache2, directory '/etc/apache2/sites-available' not empty so not removed

    Processing triggers for systemd (241-7~deb10u2) ...

    Debian_10]root~[23:20:57 apt install apache2

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    Suggested packages:

      apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser

    The following NEW packages will be installed:

      apache2

    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

    Need to get 251 kB of archives.

    After this operation, 613 kB of additional disk space will be used.

    Get:1 http://deb.debian.org/debian buster/main armhf apache2 armhf 2.4.38-3+deb10u3 [251 kB]

    Fetched 251 kB in 1s (266 kB/s)

    Selecting previously unselected package apache2.

    (Reading database ... 47444 files and directories currently installed.)

    Preparing to unpack .../apache2_2.4.38-3+deb10u3_armhf.deb ...

    Unpacking apache2 (2.4.38-3+deb10u3) ...

    Setting up apache2 (2.4.38-3+deb10u3) ...

    Enabling module mpm_event.

    Enabling module authz_core.

    Enabling module authz_host.

    Enabling module authn_core.

    Enabling module auth_basic.

    Enabling module access_compat.

    Enabling module authn_file.

    Enabling module authz_user.

    Enabling module alias.

    Enabling module dir.

    Enabling module autoindex.

    Enabling module env.

    Enabling module mime.

    Enabling module negotiation.

    Enabling module setenvif.

    Enabling module filter.

    Enabling module deflate.

    Enabling module status.

    Enabling module reqtimeout.

    Enabling conf charset.

    Enabling conf localized-error-pages.

    Enabling conf other-vhosts-access-log.

    Enabling conf security.

    Enabling conf serve-cgi-bin.

    Enabling site 000-default.

    Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.

    Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.

    invoke-rc.d: could not determine current runlevel

    Processing triggers for systemd (241-7~deb10u2) ...

    Debian_10]root~[23:21:24 service apache2 start

    [....] Starting Apache httpd web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message

    . ok

    Debian_10]root~[23:21:35 service apache2 status

    [ ok ] apache2 is running.

    3232235521_1575642608.3815.png

    아파치 설정 파일의 구조와 모범 사례


    데비안 기반 시스템에서 Apache 구성 파일은 /etc/apache2디렉토리에 있습니다.

    • 기본 Apache 구성 파일은 /etc/apache2/apache2.conf입니다.
    • Apache가 청취 할 포트가 /etc/apache2/ports.conf파일에 지정되어 있습니다.
    • Apache Virtual Hosts 파일은 /etc/apache2/sites-available디렉토리에 있습니다. 이 디렉토리에있는 구성 파일은 /etc/apache2/sites-enabled디렉토리에 링크되어 있지 않으면 Apache에서 사용되지 않습니다 .
    • 디렉토리 에있는 구성 파일에서 디렉토리로 명령을 사용하여 심볼릭 링크 를 작성하여 가상 호스트 지시문을 활성화 할 수 있습니다 가상 호스트를 비활성화하려면 명령을 사용하십시오 .a2ensitesites-availablesites-enableda2dissite
    • 예를 들어 도메인 이름이 mydomain.com도메인 구성 파일 인 경우 표준 이름 지정 규칙을 따르는 것이 좋습니다./etc/apache2/sites-available/mydomain.com.conf
    • 다양한 Apache 모듈을로드하는 데 사용되는 구성 파일은 /etc/apache2/mods-available디렉토리에 있습니다. 명령을 사용하여 디렉토리에 mods-available대한 심볼릭 링크를 작성 /etc/apache2/mods-enable하여 a2enconf명령을 사용 하여 디렉토리의 구성을 사용할 수 있습니다 a2disconf.
    • 글로벌 구성 프래그먼트가 포함 된 파일은 /etc/apache2/conf-available디렉토리에 저장됩니다 명령을 사용 하여 conf-available심볼릭 링크를 만들어 디렉토리의 파일을 활성화 /etc/apache2/conf-enabled하고 a2enconf명령으로 비활성화 할 수 있습니다 a2disconf.
    • Apache 로그 파일 ( access.log및 error.log)은 /var/log/apache디렉토리에 있습니다. 다른 사용을 권장 access하고 error각 가상 호스트에 대한 로그 파일을.
    • 도메인 문서 루트 디렉토리를 원하는 위치로 설정할 수 있습니다. webroot의 가장 일반적인 위치는 다음과 같습니다.
      • /home/<user_name>/<site_name>
      • /var/www/<site_name>
      • /var/www/html/<site_name>
      • /opt/<site_name>

    결론 데비안에서 Apache를 설치하는 것은 단일 명령을 실행하는 문제입니다.

    이제 애플리케이션 배포를 시작하고 Apache를 웹 또는 프록시 서버로 사용할 수 있습니다.

    ▶ ☞ ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다. https://11q.kr ♠

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    등록된 댓글이 없습니다.

    목록



    • 일간 조회수
        • 게시물이 없습니다.
    • 주간 조회수
        • 게시물이 없습니다.
    • 월간 조회수
        • 게시물이 없습니다.


    Total 1,665 / 11 Page
    [ ● ESxi 의 HDD의 헤/시놀로지 구성 VMDK 파일 삭제 테스트 와 향후 헤놀 HDD를 RDM 연결의 … ]

    ●ESxi 의 HDD의 헤/시놀로지 구성 VMDK 파일 삭제 테스트 와 향후 헤놀 HDD를 RDM 연결의 필요성 분석으로 레놀로지 RDM으로 H…

    [ ● ESxi서버의 VM가동화면을 VMRC로 사용시 해상도 변경 임의사이즈 마우스 드래그로 키우기 설정 방법 ]

    ● ESxi서버의 VM가동화면을 VMRC로 사용시 해상도 변경 임의사이즈 마우스 드래그로 키우기 설정 방법-VMRC로 사용 방법- esxi 서버…

    [ ● ESxi로 윈도우11-64bit를 VM 생성 원격 실행 사례 설정값 ]

    ●ESxi로 윈도우11-64bit를 VM 생성 원격 실행 사례 설정값▶윈도우11-64bit설정 값- 하드 디스크는 40G정도 > SCSI …

    [ ● ESxi로 윈도우 pe를 vm_WIN10PE64를 VM실행 사례 설정값 ]

    ●ESxi로 윈도우 pe를 vm_WIN10PE64를 VM실행 사례 설정값- 실행 후 VMRC로 웹즈라우즈 동작이 정상적으로 가동- 참고적으로 내…

    [ ● ESxi 스토리지 의 데이터스토어 브라우즈에서 디랙토리 이름변경 은 안되어 터미널 ssh로 변경 가능 … ]

    ●ESxi 스토리지 의 데이터스토어 브라우즈에서 디랙토리 이름변경은 안되어 터미널 ssh로 변경 가능 합니다- 저장폴더 이름을 변경mv 파일1 …

    [ ● [우분투] 우분투 버전 및 하드웨어/사양 확인 저장장치 명령어 ]

    ●[우분투] 우분투 버전 및 하드웨어/사양 확인 저장장치 명령어https://cornbro.tistory.com/10참조 합니다- 리눅스 배포판…

    [ ● 헤/시놀로지 ESxi redpill 부트로더 네트워크 2개중 1개 수동 설정 MTU값 변경시 접속 불가능 ]

    ● 헤/시놀로지 ESxi redpill 부트로더 네트워크 2개중 1개 수동 설정 MTU값 변경시 접속 불가능.으로 네트워크 구성 사례 조건 : …

    [ ● synology Photo 사진 폴더를 불러오기 ? 해결방업은 권한설정후 사용하세요 ] 댓글 1

    ● synology Photo 사진 폴더를 불러오기 ? 해결방업은 권한설정후 사용하세요- 사진 얼굴 인식 dsm7.0구성 //.헤놀지원 여부 ?…

    [ ● 헤놀로지 부트로더 Redpill Driver 추가 방법 ]

    ● 헤놀로지 부트로더Redpill Driver 추가 방법https://blog.dateno1.com/?p=3993#comment-457하기 내용…

    [ ● 시놀로지 dsm 7.0에서 그누보드 5.4.5.5 초기 그누보드 설치 gd 라이브러리 설정 ] 댓글 2

    ● 시놀로지 dsm 7.0에서그누보드 5.4.5.12 초기 그누보드 설치 gd 라이브러리 설정 그누보드 설치조건 : 다른 시스템에서 2번째 설치…

    [ ● 헤놀로지 부트로더 redpill DiskIdxMap=00 변경 테스트 부팅과 disk 정보 보기 ] 댓글 1

    ● 헤놀로지 부트로더 redpillDiskIdxMap=00 변경 테스트부팅과 disk 정보 보기grub.cfg에DiskIdxMap=00 Sata…

    [ ● VMWare ESxi 및 vSphere 개념 과 기능 ]

    ● VMWare ESxi 및 vSphere 개념 과 기능설명이 잘된곳[vCenter Server 및 호스트 관리] 1. vSphere 개념 및 …

    [ ● ESXi 7.0 기동 시 가상 시스템 자동 시작 설정 방법 및 메뉴얼 pdf ]

    ●ESXi 7.0 기동 시 가상 시스템 자동 시작 설정 방법ESXi 7.0 기동 시 가상시스템 헤놀로지 자동 시작 설정 방법ESXi 서버를 한 …

    [ ● ESXi 7.0 Web Client 자동 로그아웃 끄기 ]

    ●ESXi 7.0 Web Client 자동 로그아웃 끄기 esxi 로그인 작업후 얼마의 시간 경과후 아무런 작업이 없어서 로그아웃되었습니다 ▶V…

    [ ● 패키지 업로드 dsm7.0 에서 파일 형식이 올바르지 않습니다. 패키지 개발자에게 문의 하십시요 ...… ]

    ● 패키지 업로드 dsm7.0 에서 파일 형식이 올바르지 않습니다. 패키지 개발자에게 문의 하십시요 ...설치 불가 ☞https://11q.kr…

    [ ● ESxi VM Redpill 1008일자 부트로더 변경 부팅 부분과 HDD연결 문제 SataPortMap… ] 댓글 6

    ● ESxi VM Redpill 1008일자 부트로더 변경 부팅 부분과 HDD연결 문제SataPortMap=6 ( 온보드 6개 단자 )< …


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-04-26 11:44:31

    오늘의 홈 현황


    • 현재 접속자♨ 95 명
    • 오늘 가입자※ 1 명
    • 어제 가입자※ 3 명
    • 주간 가입자※ 20 명
    • 오늘 방문자 1,094 명
    • 어제 방문자 1,686 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,289,611 명
    • 전체 게시물※ 8,532 개
    • 전체 댓글수※ 24,513 개
    • 전체 회원수 10,931 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑