Bitnami SuiteCRM Permission Issue

It was on another host and was working fine, I migrated over to AWS Lightsail on Bitnami.

Errors I am receiving:

Upgrade Wizard I get the following:

./upgradeWizard.log could not be created/written to. Please fix permissions on your SuiteCRM directory.

GOOGLE CALENDAR SYNC

File does not exist on system: cache/themes/SuiteP/modules/Schedulers/DetailView.tpl

SuiteCRM Version 7.11.13
Sugar Version 6.5.25 (Build 344)

I used to following directory permissions to setup:

sudo chown -R bitnami:root .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod 775 config_override.php 2>/dev/null

ps aux | egrep ‘(apache|httpd)’

root      2252  0.0  1.0  14312  5104 ?        Ss   13:46   0:00 /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf
daemon    2255  0.0  1.1 1867576 5872 ?        Sl   13:46   0:00 /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf
daemon    2256  0.0  1.9 1867644 9796 ?        Sl   13:46   0:00 /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf
daemon    2597  0.0  2.2 1867668 11276 ?       Sl   13:46   0:00 /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf
bitnami   4777  0.0  0.1   6208   852 pts/1    S+   15:20   0:00 grep -E (apache|httpd)

config.php

array (
‘dir_mode’ => 1533,
‘file_mode’ => 493,
‘user’ => ‘bitnami’,
‘group’ => ‘root’,
),

It looks like your web server is running under user daemon, use that for the chown

I don’t know the correct group, but it’s probably not root.

Try daemon:daemon

The group would ideally be a Linux group that contains both daemon and the user you’re using to log in (check with whoami)

Thank you. This was the solution for Bitnami on AWS Lightsail.

sudo chown -R daemon:daemon .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod 775 config_override.php 2>/dev/null

Nice, Check that your cron jobs are running under the same correct user, otherwise your permissions will get messed up again.