Thank you @sterndata.
SELinux was the issue!! After reading a lot of other posts and blogs came down to this resolution.
Resolution: Enter this command
ls -Z /var/www/html/path_to_your_website_folder/
If your output is as shown below (read, write permissions are only enabled for wp-content folder.)
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 index.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 license.txt
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 readme.html
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wordpress
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-activate.php
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-admin
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-blog-header.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-comments-post.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-config.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-config-sample.php
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-content
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-cron.php
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-includes
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-links-opml.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-load.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-login.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-mail.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-settings.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-signup.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 wp-trackback.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 xmlrpc.php
All you need to do is enable read write for all the other files and directories which can be done using the following command
chcon -R –type httpd_sys_rw_content_t /var/www/html/rr/path_to_your_website_folder/
Now the output should look something like this.
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 index.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 license.txt
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 readme.html
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wordpress
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-activate.php
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-admin
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-blog-header.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-comments-post.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-config.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-config-sample.php
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-content
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-cron.php
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-includes
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-links-opml.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-load.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-login.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-mail.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-settings.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-signup.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 wp-trackback.php
-rw-rw-r–. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 xmlrpc.php
Solution taken from @toddalancox ‘s post. Thank you @toddalancox. You made my day ??
Hope this helps someone else too.