Additional info: hashmarkername: setroubleshoot kernel: 3.6.7-5.fc18.i686.PAE type: libreport
Created attachment 655167 [details] File: description
Did you read the alert? It told you what to do.
*** Bug 882349 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > Did you read the alert? It told you what to do. My PHP code stored in home directory. Why can't I use it from there?
You can, you just need to set the SELinux booleans to tell the system that apache (httpd_t) will be using home directories. man httpd_selinux Explains this also. ***** Plugin catchall_boolean (47.5 confidence) suggests ******************* If you want to httpd_read_user_content Then you must tell SELinux about this by enabling the 'httpd_read_user_content' boolean.You can read 'user_selinux' man page for more details. Do setsebool -P httpd_read_user_content 1 ***** Plugin catchall_boolean (47.5 confidence) suggests ******************* If you want to httpd_enable_homedirs Then you must tell SELinux about this by enabling the 'httpd_enable_homedirs' boolean.You can read 'user_selinux' man page for more details. Do setsebool -P httpd_enable_homedirs 1
I am run sudo setsebool -P httpd_enable_homedirs 1 but php-fpm still cannot write to home directory :( this php code if(($handler = fopen($program_dir.'/logs/'.$user.'-'.$fname, "a")) !== false) please see https://bugzilla.redhat.com/show_bug.cgi?id=882467 Why so hard in F18 run php scrpts? In F17 it would be much easy.