Kunaljain's Weblog

May 27, 2010

Error – cannot restore segment prot after reloc: Permission denied

Filed under: Linux Tips & Tricks — Kunal Jain @ 05:37

Got the following error while starting apache –

cannot restore segment prot after reloc: Permission denied

Then i google a bit and found that it is because of SE linux setting being set to enforcing.

So i temporarily disable enforcemnt.To Temporarily disable enforcement on a running system use the following command

/usr/sbin/setenforce 0

To permanently disable enforcement during a system startup

change "enforcing" to "disabled" in ''/etc/selinux/config'' and reboot.

Blog at WordPress.com.