2017년 2월 17일 금요일

CentOS 7.x Apache Invalid command SSLEngine

CentOS 7.x Apache Invalid command SSLEngine


retsencrypt 로 인증서 발급후에 아파치 설정하고 에러 발생시 해결방법


[root@conoha-jp ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-02-17 08:43:27 JST; 12s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 21946 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 11721 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  Process: 21945 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 21945 (code=exited, status=1/FAILURE)

Feb 17 08:43:26 conoha-jp systemd[1]: Starting The Apache HTTP Server...
Feb 17 08:43:27 conoha-jp httpd[21945]: AH00526: Syntax error on line 2 of /...:
Feb 17 08:43:27 conoha-jp httpd[21945]: Invalid command 'SSLEngine', perhaps...n
Feb 17 08:43:27 conoha-jp systemd[1]: httpd.service: main process exited, c...RE
Feb 17 08:43:27 conoha-jp kill[21946]: kill: cannot find process ""
Feb 17 08:43:27 conoha-jp systemd[1]: httpd.service: control process exited...=1
Feb 17 08:43:27 conoha-jp systemd[1]: Failed to start The Apache HTTP Server.
Feb 17 08:43:27 conoha-jp systemd[1]: Unit httpd.service entered failed state.
Feb 17 08:43:27 conoha-jp systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.




[root@conoha-jp ~]# yum install mod_ssl
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
 * base: ftp.iij.ad.jp
 * epel: ftp.jaist.ac.jp
 * epel-debuginfo: ftp.jaist.ac.jp
 * epel-source: ftp.jaist.ac.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.4.6-45.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch          Version                         Repository   Size
================================================================================
Installing:
 mod_ssl        x86_64        1:2.4.6-45.el7.centos           base        105 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 105 k
Installed size: 224 k
Is this ok [y/d/N]: y
Downloading packages:
mod_ssl-2.4.6-45.el7.centos.x86_64.rpm                     | 105 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:mod_ssl-2.4.6-45.el7.centos.x86_64                         1/1
  Verifying  : 1:mod_ssl-2.4.6-45.el7.centos.x86_64                         1/1

Installed:
  mod_ssl.x86_64 1:2.4.6-45.el7.centos

Complete!


systemctl restart httpd


SSL 인증서 무료 발급은 아래 링크를 참고하세요.



댓글 없음:

댓글 쓰기