I\'m trying to open a file for read/write. I\'ve been developing on Ubuntu, and have had no problems whatsoever. Now it\'s time to deploy to the RHEL server, and I discove
As written in the httpd_selinux(8) man page, you must give files and directories specific file contexts if you want to be able to read from or write to them. See the man page for details, keeping in mind that PHP scripts run as the daemon unless you have specifically set up PHP to run as CGI.