Help required while installing OpenEMR

Hi,
I am installing openemr on Linux but getting below issue

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)

File permissions is as follows

drwxrwxrwx. 2 apache apache 4096 Apr 29 15:40 sql
-rwxrwxrwx. 1 apache apache 4650 Apr 29 15:40 sql_patch.php
-rwxrwxrwx. 1 apache apache 5375 Apr 29 15:40 sql_upgrade.php
drwxrwxrwx. 15 apache apache 258 Apr 29 15:40 templates
drwxrwxrwx. 5 apache apache 67 Apr 29 15:40 tests
-rwxrwxrwx. 1 apache apache 173 Apr 29 15:40 .travis.yml
drwxrwxrwx. 34 apache apache 4096 Apr 29 15:40 vendor

What are the permissions of the /sites/default folder (including the folder itself)

[root@ip-10-101-1-4 sites]# cd default/
[root@ip-10-101-1-4 default]# ls -la
total 88
drwxrwxr-x. 8 root root 250 Apr 29 15:40 .
drwxrwxr-x. 3 root root 21 Apr 29 15:40 …
-rw-rw-r–. 1 root root 2302 Apr 29 15:40 clickoptions.txt
-rw-rw-rw-. 1 root root 3318 Apr 29 15:40 config.php
drwxrwxrwx. 7 root root 127 Apr 29 15:40 documents
drwxrwxrwx. 2 root root 24 Apr 29 15:40 edi
drwxrwxrwx. 2 root root 24 Apr 29 15:40 era
-rw-rw-r–. 1 root root 392 Apr 29 15:40 faxcover.txt
-rw-rw-r–. 1 root root 11218 Apr 29 15:40 faxtitle.eps
drwxrwxr-x. 2 root root 113 Apr 29 15:40 images
drwxrwxr-x. 2 root root 160 Apr 29 15:40 LBF
drwxrwxrwx. 2 root root 20 Apr 29 15:40 letter_templates
-rw-rw-r–. 1 root root 11451 Apr 29 15:40 referral_template.html
-rw-rw-rw-. 1 root root 626 Apr 29 15:40 sqlconf.php
-rw-rw-r–. 1 root root 45946 Apr 29 15:40 statement.inc.php

drwxrwxr-x. 3 root root 21 Apr 29 15:40 sites

I have tried with 777 permission also

I am using AWS Redhat Linux instance