Documents directory doesn´t exist

I´m executing the first installation of dolibar on web hosting.
I copied the all files by ftp as per instructions.
I type on browser following address : https://admin.jpghana.cu.cc/install and I was going to chck.php page.
I checked the all requirement are ok.
I clicked the button to move forward and I was going to fileconf.php page.
Here automatically some field are filled like:
Directory for Web Pages: /home/xxxxx/xxxxxxxxx/b11_18957543/admin.jpghana.cu.cc/htdocs
URL Root
But Directory where create documents is filled in this way …/…/documents.
I´m going to create the directory outside of web pages directory as instructions with following path: /home/xxxxx/xxxxxxxxx/b11_18957543/admin.jpghana.cu.cc/documents
I checkd that documents directory has write and read permission.
I fill the Database fields as per instructions and i mouve forward but I retrieve following error:
“The directory /home/xxxxx/xxxxxxxxx/b11_18957543/admin.jpghana.cu.cc/documents doesnt exists. It is mandatory create this directory enabling the write web permission”.
So I don´t understand because directory exist on server on that path.

Some body have some tips to help ?

Thanking in advance

Piercarlo

Hi to everibody,

I discovered from myself the mistake I needed to write not the full path but only the domain path in this way “…/admin.jpghana.cu.cc/documents”.

Thanks in any case.

Piercarlo

I have exactly the same issue with Dolibarr 13.0.2 and 14.0.5 on Manjaro Linux.

My Directory where web pages are stored: /usr/share/webapps/dolibarr/htdocs

My Directory to store uploaded and generated documents: /usr/share/webapps/dolibarr/documents

I tried ownership root:http and http:http with 775, 775 and even 777. Non of them worked. Dolibarr keeps saying the directory doesn’t exist.

I tried to systemctl edit php-fpm.service and added the path to ReadWritePath. Did not help either. SElinux is not part of Manjaro, so it is also not the problem.

Does anyone have an idea, how to possibly fix this issue?

Hello!

I am new to Dolibarr after using Odoo the last couple of years. I decided to check Dolibarr mainly because of simpler installation requirements and great features.
While installing version 19.0.3 I’ve had the same problem with the documents folder. In the end I managed to create the documents-folder but only within the htdocs-directory.
After installation I tried a long time while searching the web for a solution to store the documents outside the main directory. But no luck yet. I played with the conf.php a lot. All I managed is that the documents-directory was created and filled with files within the htdocs-directory.
Current setting:

$dolibarr_main_document_root=‘/var/www/vhosts/httpdocs/dolibarr/htdocs’;
$dolibarr_main_url_root_alt=‘/custom’;
$dolibarr_main_document_root_alt=‘/var/www/vhosts/httpdocs/dolibarr/htdocs/custom’;
$dolibarr_main_data_root=‘/var/www/vhosts/httpdocs/dolibarr/htdocs/documents’;

I want this
$dolibarr_main_data_root=‘/var/www/vhosts/httpdocs/dolibarr/documents’;
but it does not work (but shown in “About Dolibarr” in the settings section of Dolibarr).

I think the problem is that Dolibarr is not allowed to access a directory outside / below the mainpath.
For the moment I am using the documents-directory within htdocs. I’ve already checked that it is not possible to access the files with the browser even knowing the exact path to the file. But I’d rather store it outside so I am looking for a solution the manage this. Hoping for further help. Thanks!