LoginSignup
10
14

More than 5 years have passed since last update.

Macのローカル開発環境でhttpsを有効にしたらApacheが起動しない

Posted at

Macに最初から入っているApacheでSSL通信する環境を整えた
http://www.karakaram.com/mac-apache-ssl

こちらを参考にhttpsを有効化しようとしたところ、
sudo apachectl restartしてもApacheが起動しない。

[MAMP]Apacheが起動しないときの手順
http://qiita.com/maximum80/items/3ca16b0b41cd5ff11c6c

こちらを参考に
apachectl configtest
で設定の構文チェック。

AH00526: Syntax error on line 52 of /private/etc/apache2/extra/httpd-ssl.conf:
Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration

コメントアウトして有効化する。
/private/etc/apache2/httpd.conf
LoadModule ssl_module libexec/apache2/mod_ssl.so

再度apachectl configtest

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

コメントアウトして有効化。
/private/etc/apache2/httpd.conf
LoadModule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so

動いた。

10
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
14