Thanks for your help and comments.
We did the last comment, but it still shows error, I attach the following images.
In this first image you can see where the "documente root" is located.
In the second image you can see that "document root" has the permissions
But in this third image you can see the specific new path for the folders, and as you can see, all have the permissions and ownership.
If the folders were created, the directories were placed inside "document root", why does it say it has no permissions when you can see that it does?
Also I attach one image of the error in the reports and the last log
2021-08-24 13:09:34.988 ***** ERROR ***** [V9.1.2] on file '/var/www/html/external/pChart2/class/pImage.class.php' at line (164)
2021-08-24 13:09:34.988 ***** ERROR ***** [V9.1.2] cause = imagepng(/var/www/html/files/report/user1_globalCostPlanning_20210824_130934_1.png): failed to open stream: Permission denied