Keywords: Nginx - Amazon Web Services - Technical issue - Permissions
bnsupport ID: feaa95f0-2e2d-0823-f70d-6c4bb95ff251
I am actually trying to do something easy - I thought.
I installed nginx on AWS Lightsail. I now wanted to
1) add my domain example.com and staging.example.com to it
2) create a folder where I can host all the pages (just php, java, html - simple stuff)
3) obtain an ssl cert
4) add htaccess protection to it while still working on it
now I began with step 2 and failed to create a folder in /apps due to missing permission
however, i could create a folder in /opt/bitnmai/nginx/html/example.com/ using filezilla via SFTP
I tried also mkdir via putty and the AWS SSH client but both failed due to missing permissions.
Now I am trying to change the nginx.config file to listen to my domain. However I simply can't upload it. I get totally stuck for two hours now trying to solve the issue that I can't overwrite the current config at /opt/bitnami/nginx/config.
I checked the troubleshooting help and it says to run a command "sudo stat -la" - however in SSH I get denied doing so.
bitnami@ip-xxx:/opt/bitnami/nginx$ sudo stat -la /opt/bitnami/nginx
stat: invalid option -- 'l'
Try 'stat --help' for more information.
Update: I begin losing permissions on folders I created previously myself. Now I am really puzzled.
Update 2: Even unzipping a tar.gz file or moving it to another folder fails as permission server-wide seem to be insufficient. I followed https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/ but get stuck when the file shall be unzipped.
Any ideas how to get further with this mess?