Module Builder. Unable to write in /var/www/html/dolibarr/htdocs/custom

Hi,
I’m running Dolibarr 11.0.4 over apache localhost in ubuntu 18.04 desktop. After activating module builder, and pressing bug to create a new module, it is not possible to go further as it is unable to copy to htdocs/custom directory. Permissions for either directory and files are 775, I think they should be enough.
I would agree very much any help.
Salut!

Hi Cesc,

You are true, 775 should be enough if the directory is owned by and in the group of the user running apache/php, otherwise this will not be sufficient. Check first if this directory is owned by www-data or is in this group.

Regards,
Marc

Thank you,
That works. I changed the permissions but not user to www-data. It works properly.
Salut!
Cesc