PROBLEM LIKELY OCCURS ON OTHER PLATFORMS TOO Description of problem: Can't use PHP extensions when SELinux mode is enforcing, at least xmlrpc extension fails to work. Version-Release number of selected component (if applicable): RPMS: libsepol-1.1.1-2 libselinux-1.19.1-7 httpd-2.0.52-9.ent php-4.3.9-3.6 php-pgsql-4.3.9-3.6 php-xmlrpc-4.3.9-3.6 How reproducible: Steps to Reproduce: 1. Install php-xmlrpc 2. setenforce 1 3. /etc/init.d/httpd/restart 4. Try with /var/www/html/xmlrpc.php: <? $server = xmlrpc_server_create(); ?> 5. Look /var/log/httpd/error_log Actual results: Expected results: Apache error_log after /etc/httpd/start - last line is after pointing web browser to http://localhost/xmlrpc.php: [Sat May 14 20:08:04 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sat May 14 20:08:06 2005] [notice] Digest: generating secret for digest authentication ... [Sat May 14 20:08:06 2005] [notice] Digest: done [Sat May 14 20:08:06 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Sat May 14 20:08:06 2005] [notice] LDAP: SSL support unavailable PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/pgsql.so' - /usr/lib/php4/pgsql.so: failed to map segment from shared object: Permission denied in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/xmlrpc.so' - /usr/lib/php4/xmlrpc.so: failed to map segment from shared object: Permission denied in Unknown on line 0 [Sat May 14 20:08:06 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Sat May 14 20:08:06 2005] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations [client 127.0.0.1] PHP Fatal error: Call to undefined function: xmlrpc_server_create() in /var/www/html/xmlrpc.php on line 2
restorecon -R -v /usr/lib should fix it. How did this file get there?