Failed to delete the file

Hey guys.

I’m learning to use Dolibarr and I really like it because it is simple to understand and to customize.
I can’t wait to create my first module! :smiley:

Anyway.

During my initial use I got some permission issues that I was able to solve by doing this:

find /var/www/dolibarr -type d -exec chmod 755 {} \;
find /var/www/dolibarr -type f -exec chmod 644 {} \;

However I am not able to delete a order in suppliers
It is already canceled and with no related objects

I still get “There was a failure to delete the file.” in
fourn/commande/card.php?id=1&action=delete

Thanks for all the help.

Debian GNU/Linux 10
nginx/1.14.2
mysql Ver 15.1 Distrib 10.3.27-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
PHP 7.3.27-1~deb10u1
Dolibarr 13.0.2

I was able to delete the order in suppliers excluding the pdf file generated in
documents/fournisseur/commande but I would still like to know how to fix this permission problem.

Thanks.

Still looking for answers, I realized that I don’t have write permissions on test at admin/security_file.php and “ErrorDirNotWritable” appears. How can I fix this?

Users and groups are defined as follows:

user@host:/$ grep ^www /etc/group
www-data:x:33:git,user,www-data,www
www:x:1003:git,user,www-data,www

and all dolibarr files are within the www group chown -R www /var/www/dolibarr

Every help is welcome.
Thanks.

And how PHP is installed ?
What is the Apache user ?

is it owned correctly?
mine shows the owner and group as being ‘www-data’ not ‘www’