LoginSignup
1
1

More than 5 years have passed since last update.

certbotの実行後にApacheが起動できなくなった件

Last updated at Posted at 2016-09-06

Apache on CentOS/RHEL 6

[root@XXX ~]# uname -a
Linux XXX 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@XXX ~]# cat /etc/redhat-release
CentOS release 6.8 (Final)

[root@XXX ~]# httpd -v
Server version: Apache/2.2.15 (Unix)
Server built:   Jul 18 2016 15:24:00

[root@XXX ~]# ./certbot-auto --version
letsencrypt 0.8.1
/var/log/httpd/error_log
(2)No such file or directory: httpd: could not open error log file /var/log/apache2/redirect.error.log.
Unable to open logs
[root@XXX httpd]# ag apache2
conf.d/le-redirect-mydomain.com.conf
9:ErrorLog /var/log/apache2/redirect.error.log
/etc/httpd/conf.d/le-redirect-mydomain.com.conf
- ErrorLog /var/log/apache2/redirect.error.log
+ ErrorLog /var/log/httpd/redirect.error.log

なんとなくソース読んでみたけどCentOS判定されたら/var/log/httpdがログディレクトリに設定されるようになっていたので、OS判定がミスってるのかなとか。
そもそも CentOS 6.8 (Final) だと python 2.7 が標準対応してないのでIssue投げる案件ではないと思いこっちに書いた。

1
1
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
1
1