Last-modified: 2011-12-26 (月) 01:24:45
SELinux/libphp5.soが原因でApacheが起動しない

現象

mod_phpを組み込んでからApacheを起動しようとしたら
cannot restore segment prot after reloc: Permission denied
というエラーが発生しました。

原因

対策

方法

Everything is expanded.Everything is shortened.
  1
  2
  3
  4
  5
-
!
 
-
!
# タイプtextrel_shlib_tを設定
chcon -c -v -t textrel_shlib_t [Apacheのパス]/modules/libphp5.so
 
# 確認
ls -laZ [Apacheのパス]/modules/libphp5.so

検証時の環境

参考