Apache No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed

NO IMAGE

更換ssl證書後,重啟Apache失敗。

檢視Apache的error日誌發現:
複製程式碼 程式碼如下:
[Fri May 20 18:07:23 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Fri May 20 18:08:22 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Fri May 20 18:13:50 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Fri May 20 18:13:52 2011] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed

解決方法:

複製程式碼 程式碼如下:
#重新寫入一些活動訊號量集的資訊
ipcs -s | grep apache | perl -e ‘while (<stdin>) { @a=split(/\s /); print `ipcrm sem $a[1]`}’
</stdin>

參考連結:
http://carlosrivero.com/fix-apache—no-space-left-on-device-couldnt-create-accept-lock