Forum

Incorrect value for...
 
Notifications
Retirer tout

Incorrect value for 'Log file name', cannot write to such a file : check access

5 Posts
3 Utilisateurs
0 Reactions
3,352 Vu
(@juliolep)
Posts: 5
Active Member
Début du sujet
 
[#6226]

Hello guys,
I'm trying to install on a VM (CentOS7 + PHP 7.1) the application but I always have this error message: incorrect value for 'Log file name', cannot write to such a file : check access rights.
I tried to:
> Give the full access rights (777) to apache user but it's not working.
Your help would be really aprreciated
Thanks


 
Posté : 02/09/2019 6:20 pm
(@babynus)
Posts: 14952
Membre Admin
 

If access rights are correct on folder, then possibly a security application locks access
In most cases, it is Selinux.


 
Posté : 04/09/2019 10:18 pm
(@syncmasta)
Posts: 6
Active Member
 

Hej,

what are "the correct rights" on that folder? Which user want to write?


 
Posté : 26/09/2019 5:09 pm
(@babynus)
Posts: 14952
Membre Admin
 

You must give write access rights to PHP user.
On linux Debian based (Ubuntu, Fedora)

chown -R www-data: /var/wwww/html/projeqtor/files
chmod -R 755 /var/wwww/html/projeqtor/files

On linux RedHat based (CentOs)

chown -R apache: /var/wwww/html/projeqtor/files
chmod -R 755 /var/wwww/html/projeqtor/files

 
Posté : 26/09/2019 7:56 pm
(@juliolep)
Posts: 5
Active Member
Début du sujet
 

Hello guys,
Found the problem thanks for your help:
> Made apache user the owner of the folders
> Gave the proper right to the folder
> Allowed in SELinux
Subject can be closed


 
Posté : 26/09/2019 8:39 pm
Share:
Retour en haut