Jump to content

File and directory permission settings in Amazon Lightsail


hisapon

Recommended Posts

Hello, I'm not good at English so I rely on Google Translate.
I'm sorry if there is any wrong English.

I started building Prestashop on Amazon Lightsail.
I am surprised that Prestashop can be built very easily.

I use the FTP client software WinSCP from my local PC to make an SSH connection and modify the template files.

The directory, file owner, and group when creating Prestashop by SSH connection from the Amazon Lightsail management screen are bitnami/daemon.

However, modules and themes added from the Prestashop management screen will be in daemon/daemon directory.

When editing the template file of this added theme, I do the following work.

  • sudo chown -R bitnami:daemon folder_name
  • Editing files locally using WinSCP (SSH: username->bitnami)
  • sudo chown -R daemon:daemon folder_name

This way I change the owner back to the daemon after editing the file.
If I don't do this, Shopfront will get an error.

I find this task very annoying, is there any solution?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...