投稿

ラベル(apache2)が付いた投稿を表示しています

apache2.4 で エラー AH01630

apache2.4 の WebDAVでエラーログに AH01630: client denied by server configuration: ディレクトリ が出て認証できない 検索すると Require の問題ばかり出てくるが WebDAV用のモジュールを有効化していなかった 以下で有効化後 apache2 を再起動 # a2enmod dav # a2enmod dav_fs

ラズパイのCronから毎日メールが届くようになった

Raspberry Pi の Cronから、毎朝6:25頃にメールが到着するようになった といっても Cronの問題ではなく systemctl と apache2 の問題らしく Subject: Cron test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) /etc/cron.daily/logrotate: Warning: Unit file of apache2.service changed on disk, 'systemctl daemon-reload' recommended. 本文に書いているとおり # systemctl daemon-reload を実行すればよいようですが、再起動するとまた来るようになります 【追記】 /etc/logrotate.d/apache2 へ太字の部分を追記して # systemctl daemon-reload コマンドを実行することで解決 参考 → https://www.raspberrypi.org/forums/viewtopic.php?t=160476 /var/log/apache2/*.log { daily missingok rotate 14 compress delaycompress notifempty create 640 root adm sharedscripts postrotate if /etc/init.d/apache2 status > /dev/null ; then \ /bin/systemctl daemon-reload; \ /etc/init.d/apache2 reload > /dev/null; \ fi; endscript prerotate ...