Forum

Path to store docum...
 
Notifications
Retirer tout

Path to store documents

12 Posts
2 Utilisateurs
0 Reactions
3,592 Vu
(@kishorevenki)
Posts: 41
Trusted Member
Début du sujet
 
[#8024]

At the initial configuration, error message is received when absolute path is given for storing the attachments ,documents, logs, config parameters. The value that I gave is /opt/projeqtor/files/attach/
Error message is "incorrect value for 'Directory to store Attachments', this is not a valid directory name". 

Please help to fix this issue. 


 
Posté : 13/01/2022 2:42 pm
(@babynus)
Posts: 14952
Membre Admin
 

Directory /opt/projeqtor/files/attach/ does not exist or php user (www-data) has not write right to this folder.


 
Posté : 13/01/2022 3:14 pm
(@kishorevenki)
Posts: 41
Trusted Member
Début du sujet
 

 

The folders are existing and www-data has access rights as well.


 
Posté : 13/01/2022 4:31 pm
(@babynus)
Posts: 14952
Membre Admin
 

Check security tool such as Selinux that may block acces to directory.


 
Posté : 13/01/2022 9:51 pm
(@kishorevenki)
Posts: 41
Trusted Member
Début du sujet
 

SELinux is not installed in my ubuntu system. 


 
Posté : 14/01/2022 7:36 pm
(@babynus)
Posts: 14952
Membre Admin
 

Can you try without the ending "/"


 
Posté : 17/01/2022 1:44 pm
(@kishorevenki)
Posts: 41
Trusted Member
Début du sujet
 

Hi,

Sorry for the delayed response. 
I tried and noticed that even then I am not successful. But I noticede that I did not get wrong message for documents folder. Incorrect messages are showing for attachments, logs and parameter file configuration. 

Thanks & Regards,
Kishore 


 
Posté : 29/01/2022 1:58 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

I'm sure it is some security on server level that blocks.

Did you try :

su - www-data
cd /opt/projeqtor/files/config
echo "TEST" > test.log


 
Posté : 29/01/2022 2:12 pm
(@kishorevenki)
Posts: 41
Trusted Member
Début du sujet
 

Based on my understnding we can't switch to the user to "www-data" using 'su" command, the reason being there shall not be password set for "www-data" at default. But if I forcefully set, I doubt any web application would work smoothly. Please clarify. 

Thanks,
Kishore


 
Posté : 29/01/2022 3:27 pm
(@babynus)
Posts: 14952
Membre Admin
 

Idea is to really connect as www-data to verify it thie user can really write on that directories


 
Posté : 29/01/2022 4:30 pm
(@kishorevenki)
Posts: 41
Trusted Member
Début du sujet
 

Ok, Whilst I am figuring out the access permissions, I would like to know is there any limitation set for the length of the characters, or  number of folder limations for these paths? 

Regards,
Kishore 


 
Posté : 29/01/2022 4:55 pm
(@babynus)
Posts: 14952
Membre Admin
 

No, no limitation.
Just take care to avoid special characters that would not be supported by the system . Keep it simple (use only ASCII characters to be sure)


 
Posté : 29/01/2022 5:00 pm
Share:
Retour en haut