[ Server ][ Linux ] httpd 2.4.x update to 2.4.39 on centos7 > linux

본문 바로가기

사이트 내 전체검색

linux

[ Server ][ Linux ] httpd 2.4.x update to 2.4.39 on centos7

작성일 19-07-10 18:35

페이지 정보

작성자 웹지기 조회 11,032회 댓글 0건

본문

httpd 2.4.x update to 2.4.39 on centos7


# cd /etc/yum.repos.d

# wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo

# yum install httpd -y



오류 확인을 위해 

# httpd -t


httpd: Syntax error on line 13 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_alias.so into server: /etc/httpd/modules/mod_authn_alias.so: cannot open shared object file: No such file or directory


httpd: Syntax error on line 16 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_default.so into server: /etc/httpd/modules/mod_authn_default.so: cannot open shared object file: No such file or directory


httpd: Syntax error on line 22 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authz_default.so into server: /etc/httpd/modules/mod_authz_default.so: cannot open shared object file: No such file or directory


httpd: Syntax error on line 23 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_ldap.so into server: /etc/httpd/modules/mod_ldap.so: cannot open shared object file: No such file or directory


httpd: Syntax error on line 24 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authnz_ldap.so into server: /etc/httpd/modules/mod_authnz_ldap.so: cannot open shared object file: No such file or directory


httpd: Syntax error on line 57 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_disk_cache.so into server: /etc/httpd/modules/mod_disk_cache.so: cannot open shared object file: No such file or directory


httpd: Syntax error on line 58 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_file_cache.so into server: /etc/httpd/modules/mod_file_cache.so: cannot open shared object file: No such file or directory


httpd: Syntax error on line 59 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_mem_cache.so into server: /etc/httpd/modules/mod_mem_cache.so: cannot open shared object file: No such file or directory


@ apache/2.4 부터는 mod_authn_default.so 모듈이 삭제 되었으므로 해당 위치로 가서 주석처리

# vim /etc/httpd/conf/httpd.conf

13, 16, 22, 23, 24, 57, 58, 59줄 주석


@AH00534: httpd: Configuration error: No MPM loaded.

# vim /etc/httpd/conf/httpd.conf

모듈하단에 다음을 추가

# mpm_prefork_module modules/mod_mpm_prefork.so


@AH00526: Syntax error on line 26 of /etc/httpd/conf.d/autoindex.conf : Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration

65줄에 다음의 모듈을 추가

# vim /etc/httpd/conf/httpd.conf

# Loadmodule authz_core_module modules/mod_authz_core.so



@AH00526: Syntax error on line 7 of /etc/httpd/conf.d/fastcgi.conf : Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration

66줄에 

# vim /etc/httpd/conf/httpd.conf

# LoadModule unixd_module modules/mod_unixd.so 

#LoadModule access_compat_module modules/mod_access_compat.so


@AH00526: Syntax error on line 13 of /etc/httpd/conf.d/ssl.conf : Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration

68줄에

# vim /etc/httpd/conf/httpd.conf

# LoadModule ssl_module modules/mod_ssl.so


@AH00526: Syntax error on line 16 of /etc/httpd/conf.d/ssl.conf : SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).

69줄에

# LoadModule socache_shmcb_module modules/mod_socache_shmcb.so


[Wed Jul 10 17:05:33.226743 2019] [core:warn] [pid 18722:tid 140203011664000] AH00117: Ignoring deprecated use of DefaultType in line 97 of /etc/httpd/conf/httpd.conf.

Syntax OK


70줄

# LoadModule authn_core_module modules/mod_authn_core.so

97줄에 사용되는 

# #DefaultType text/plain

주석처리


이렇게 해도 오류가 지속되어 해결이 되지않음

# vim /var/log/httpd/error_log

또는

# httpd -e "debug"

 

[Wed Jul 10 18:16:27.154148 2019] [suexec:notice] [pid 10340:tid 139671303919744] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Wed Jul 10 18:16:27.160496 2019] [proxy_balancer:emerg] [pid 10340:tid 139671303919744] AH01177: Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm loaded??

[Wed Jul 10 18:16:27.160509 2019] [:emerg] [pid 10340:tid 139671303919744] AH00020: Configuration Failed, exiting

첫줄은 무시

두번째 줄에대한 다음 모듈을 추가해서 불러오게해준다

LoadModule slotmem_shm_module modules/mod_slotmem_shm.so



[Wed Jul 10 18:29:01.260525 2019] [suexec:notice] [pid 11200:tid 139780217845888] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Wed Jul 10 18:29:01.267793 2019] [:notice] [pid 11201:tid 139780217845888] FastCGI: process manager initialized (pid 11201)

[Wed Jul 10 18:29:01.267991 2019] [mpm_event:notice] [pid 11200:tid 139780217845888] AH00489: Apache/2.4.39 (codeit) OpenSSL/1.1.1c mod_fastcgi/mod_fastcgi-SNAP-0910052141 configured -- resuming normal operations

[Wed Jul 10 18:29:01.268016 2019] [core:notice] [pid 11200:tid 139780217845888] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'




추천0

비추천 0

댓글목록

등록된 댓글이 없습니다.

전체 103건 1 페이지

이미지 목록

게시물 검색
Copyright © 즐거운 코딩 생활 ( funyphp ). All rights reserved.
PC 버전으로 보기