揮発性のメモ2

http://d.hatena.ne.jp/iww/

suEXECを無効化する

error_log:[Tue Feb 14 14:59:28 2017] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

こういうログが出ているとき、suEXECは正常に動作している。
これを無効化する。

httpd.confに書く

httpd.conf か httpd/conf.d/hoge.conf にて Suexec ディレクティブで Offを指定する

Suexec Off

ただし、古いApacheではこのコマンドが未実装なのでエラーになる

# service httpd start
httpd を起動中: Syntax error on line 11 of /etc/httpd/conf.d/hoge.conf:
Invalid command 'Suexec', perhaps misspelled or defined by a module not included in the server configuration

互換性: Available in Apache httpd 2.2.18 and later

Suexec ディレクティブ

suexecを削除する

/usr/sbin/suexec を削除するか、リネームする