PDA

View Full Version : httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /us



Kingtu
4th April 2007, 09:46 PM
I have this error httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
and the only way I can get apache to run is by putting SElinux in permissive mode :confused:

anybody know how I can get it to work without lowering my security level :(

markkuk
4th April 2007, 10:13 PM
Use the Apache httpd and PHP packages provided by Fedora instead of self-compiled ones. Fedora packages work correctly with SELinux.

pete_1967
5th April 2007, 12:54 AM
Or alternatively, if FC packages are not viable for you, you need to manually either create new policy or label the required files.

http://fedoraproject.org/wiki/SELinux

Of course, last option is for you to disable SELinux but I wouldn't recommend that.