1
Your problem is likely SELinux if you're running a Red Hat type of distro.
To get around this, just chown apache mainfile.php
This should get you around the problem. Once it's updated, just chown it back to whoever owned it before.
To get around this, just chown apache mainfile.php
This should get you around the problem. Once it's updated, just chown it back to whoever owned it before.