I have a directory where shared PHP scripts are kept (the name is arbitrary, but it isn\'t /var/, /usr/, or anything that SELinux would have specific settings for): /w
I use this with the executable programs I need to run from my PHP scripts and Apache
sudo chcon -v -t httpd_sys_script_exec_t my-executable