Upgrading 7.11.2 to 7.11.8. Cannot complete Upgrade Wizard "You don't have access to this area"

Hello,

New to SuiteCRM. I’m trying to upgrade a 7.11.2 installation to 7.11.8 version. Following the guide at https://docs.suitecrm.com/admin/installation-guide/using-the-upgrade-wizard/.

The error I’m getting is “You do not have access to this area. Contact your site administrator to obtain access.” I have created the Role, I have created the Group with all access but still geting the same error.

I went to the server and tried the following:

chmod -R 760 /var/www/html/modules/UpgradeWizard and then run the Upgrade Wizard I get the “./upgradeWizard.log could not be created/written to. Please fix permissions on your SuiteCRM directory.”

Then if i run chmod -R 660 /var/www/html/modules/UpgradeWizard and run the Upgrade Wizard again I get: “You do not have access to this area. Contact your site administrator to obtain access.”

Besides that I then chmod -R 777 to config.php in /va//www/html with the same “You do not have access to this area. Contact your site administrator to obtain access.”

I reverted the same config.php file to 660 and the same message. By the way, what is the correct permission for the config.php file so it is secure?

Thank you.

Maybe your ownerships aren’t correct? Because those values on permissions totally depend on the ownership also.

If you run a “ls -al” on the root of your installation, you should see all owners and you can compare that to the user that your web server is running under.

Note also that for new files, the permissions on the parent directory are relevant, and also the UID bits, etc.

Finally, check in your config.php what you have under default_permissions.

Thanks for your reply. I did the ls -al command and ALLfiles and folders are owned by “root”. I don’t know where to go when you mention: “and you can compare that to the user that your web server is running under.” Can you please clarify?

This is from config.php:

$sugar_config = array (
  'admin_access_control' => false,
  'admin_export_only' => false,
  'cache_dir' => 'cache/',
  'calculate_response_time' => true,
  'calendar' =>

Thanks.

Is this Apache? If so, please tell me what this command gives:

ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'

That should be the user that needs to own the files.

That part of config.php is not what I was asking about, you need to scroll to find the “default_permissions” array key.

This is what I’m getting:
root@SuiteCRMUbuntu:~# ps -ef | egrep ‘(httpd|apache2|apache)’ | grep -v whoami | grep -v root | head -n1 | awk ‘{print $1}’
www-data

and,

'default_permissions' =>
  array (
    'dir_mode' => 1528,
    'file_mode' => 493,
    'user' => '',
    'group' => '',

Does that help? Thanks.

Ok, so try this


  sudo chown -R www-data:www-data .
  sudo chmod -R 750 .
  sudo chmod -R 770 cache custom modules themes data upload
  sudo chmod 770 config_override.php 2>/dev/null

And this in config.php:


'default_permissions' =>
  array (
    'dir_mode' => 02750,
    'file_mode' => 0750,
    'user' => 'www-data',
    'group' => 'www-data',

(Those values starting with a 0 are PHP notation for Octal, after a QR&R you will find SuiteCRM changes them for their Decimal equivalents, that’s normal)

If after this and a QR&R, you see files going back to having “root” as owner, then you probably have your cron jobs running as root, that’s a separate problem.

Everything is working fine after using your suggestions. I really appreciate your help. My apologies for the late response. Thanks!