
cd /var/www/html
mkdir upload
chown apache:apache upload
chcon -t httpd_sys_rw_content_t upload
ls -Z /var/www/html
The chcon command helps to change the SELinux context or TYPE of what will most often be a single or perhaps sometimes a few files that can be referenced easily together with some form of a wildcard. chcon along with semanage and restorecon can be used to fix an incorrect SELinux context.