PDA

View Full Version : Apache failed to start



55debra
10-31-11, 02:46
My Apache failed to start with following error:

Error : “/usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied” Resolution
How can I fix it?

WebMaster
10-31-11, 04:38
Do you have control panel installed in server, or do you have changed any thing in apache modules ?

55debra
10-31-11, 05:07
I don’t have control panel in server and I have installed the apache and php from source.

WebMaster
10-31-11, 05:44
The error occurs because the of wrong ownership if libphp5.s0. You can run the following command for this error you can use below chcon command to change the Selinux security context for the file :


chcon -t textrel_shlib_t /usr/local/apache/modules/libphp5.so

Also set Selinux mode to disabled.