File permission already 777, but the installation cannot continue

Situation
I already set the file permission already 777, but the installation cannot continue.
I am still getting
"UNABLE to open file ‘/var/www/html/openemr/sites/default/sqlconf.php’ for writing.
(configure file permissions; see below for further instructions)

UNABLE to open file ‘/var/www/html/openemr/interface/modules/zend_modules/config/application.config.php’ for writing.
(configure file permissions; see below for further instructions)

You can’t proceed until all above files are ready (world-writable).
In linux, recommend changing file permissions with the ‘chmod 666 filename’ command.
Fix above file permissions and then click the ‘Check Again’ button to re-check files.
"

OpenEMR Version
I’m using OpenEMR version 5.0.1

Browser:
I’m using: firefox 60.1esr

Operating System
I’m using: centos 7.5

Logs
Did you check the logs? Was there anything pertinent in them? Paste them here (surround with three backticks (```) for readability

/var/log/httpd/error_log:
[Thu Jul 12 04:48:54.014727 2018] [lbmethod_heartbeat:notice] [pid 9552] AH02282: No slotmem from mod_heartmonitor
[Thu Jul 12 04:48:54.271975 2018] [mpm_prefork:notice] [pid 9552] AH00163: Apache/2.4.6 (CentOS) PHP/7.0.30 configured – resuming normal operations
[Thu Jul 12 04:48:54.273427 2018] [core:notice] [pid 9552] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’