Custom module file permission

Dear Experts,

Hope your life is good!

Here is the scenario :

  1. I have created one module " A module" using module builder in SuiteCRM instance A and deployed
  2. Have made some customization in this module files and have created the newly installable package
  3. Installed the package in the SuiteCRM instance B using module loader.
  4. Module installed successfully and available in the module directory in the CRM.

The problem I’m facing is:

All the modules directories have permission “2770”. All files have 0644.

My module misbehaves and giving me the following error:

[color=#ff0000]Forbidden
You don’t have permission to access /My Directory/myfiles.php on this server.
Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.[/color]

I already have .htaccess available.

If I change directory permission manually then everything is working. I want to make it run automatically after installation.

If there is a way that I can apply, so the default permission I can set up 0775 for directories, it will resolve my issue.

I have faced the same issue in the different SuiteCRM version as on the different web servers.

Many thanks in advance,

I’m sorry, I don’t know the actual answer, but…

What do you have in default_permissions array inside config.php?

Did you check the ownership also, not just the permissions?