httpd.conf probs when installing php
I have manually compiled php-5.1.4 and tried to start httpd. I get the following error when I type service httpd configtest:
httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
I have looked around and noticed the following solution seems to have helped a lot of people:
1. If selinux enabled? type: setenforce 0
or try
2. set allow all permission chmod 777 libphp5.so
or
3. chcon libphp5.so -t shlib_t
of those 3 solutions, only #1 worked for me and I don't think that is the best solution. Can anyone explain to me why solution #3 would not work in my case? I'm using FC6, Apache 2.2.3, php 5.1.4
Thanks,
PlainD
|