After migrating all the files in the public_html folder which i get from Hostgator to AWS Lightsail (bitnami wordpress pre-installed), even I still can login into /wp-admin with the old user name and password as well as seeing all the contents of the old website, I could not get the write permissons to the files for that user.
I am still having to the file permissons system set 775 for directory and 664 for files. I also set ftp method to direct in wp-config.php file.
If I set the folder permisson to 777, i can edit the files within wp-admin. However, 777 will make it more vulnerable to be attacked by hackers.
What should I do to obtain the write permissons for files and directories for my wordpress admin user?
Thank you very much.