home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] centos php issue / possibly SELinux

Can you run this on the folder(s) that contain your PHP files?

find /tmp/ -ls

If anything there doesn't have the read and/or execute flag set, that's
probably your problem. I know you've probably already checked this, but
it's an easy thing to miss. If you want to recursively set all your PHP
files to have an execute flag, run this.

find /tmp/ -type f -iname "*.php" -print0 | xargs -0 chmod +x

I haven't used SELinux before, though it's basically the same concept. They
use chcon.

https://wiki.centos.org/HowTos/SELinux#head-0f6390ddacfab39ee973ed8018a32212c2a02199