note 57061 added to function.passthru
| From: | waldow at NOSPAM dot chem dot plu dot edu | Date: | Thu, 22 Sep 2005 14:59:42 +0000 |
| Subject: | note 57061 added to function.passthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95611@lists.php.net to get a copy of this message | ||
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...
----
Manual Page -- http://www.php.net/manual/en/function.passthru.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57061
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57061&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57061&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57061&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57061&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57061&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57061&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57061&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57061&report=yes
Search -- http://master.php.net/manage/user-notes.php