for testing purposes, while configuring my web applications, I change the ownership of my application's folder in the server to the Apache user (www-data in Ubuntu):
$ sudo chown -R www-data:www-data /var/www/joomla
Working wiht EC2 and BitNami AMIs, I changed the owner to "apache" and everything ran smoothly:
$ sudo chown -R apache:apache /opt/bitnami/apps/joomla
But when I work in localhost server with a BitNami native stack, the BitNami "apache" user does not exist. And if I change the ownership of the applications folder to Ubuntu's Apache user "www-data", I'm not able to acces it via browser anymore.
Did you face this problem before? What's the apache user for BitNami native stacks?
Thank you very much in advance,
If you have installed as a regular user, the Apache user is the same that your user. If you have installed as root user, the default Apache user is "daemon". I hope it helps.
Rodrigo, can you mark the question as accepted?
I have a follow up question to this:
All files on the Bitnami WP Multsite stack are daemon:daemon but all files I add as bitnami user over ssh or scp are daemon:bitnami. How will this affect the usability of my server? Should I chgrp -R all daemon:bitnami directories and files to daemon:daemon?
It is not necessary if the permissions of these files you are uploading are correct. I mean, check the permissions that correspond to each user or group. That's the key.
I hope it helps you. If not, tell me an example and I will try to explain it in more detail. Regards.