note 57061 deleted from function.passthru by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 14:54:04 +0000 |
| Subject: | note 57061 deleted from function.passthru by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197213@lists.php.net to get a copy of this message | ||
Note Submitter: waldow at NOSPAM dot chem dot plu dot edu
----
When upgrading my redhat server to enterprise 4, selinux was turned on. This caused one of my php
scripts (that uses passthru) to fail. After some nice help from redhat, I was able to get the
script running again. Here is what helped me.
If you get permission errors (in /var/log/httpd/error_log) which seem to be from selinux (and not
standard chmod or chown issues), make sure that the folder you are using is not in /tmp and has the
selinux context of httpd_sys_script_rw_t as can be set as follows:
chcon -t httpd_sys_script_rw_t folder_name
Hope this helps someone...