Not activating the permision


I am trying to install next cloud in my internal server but i am getting an error


You don’t have permission to access /index.php on this server.

like that error i am getting

i have used the below commands to give permission

chown -R apache:apache nextcloud/
chmod 777 ./nextcloud -R

still i am getting the same error

OS : RHEL 7.7 Server
maria db

selinux enabled but nextcloud not in /var/www?

I have kept the nextcloud directory inside /var/www/html/

And i have given 777 permission also for that directory