Closed Fasse closed 6 years ago
we could add a .gitkeep
inside of the logs
folder so that the folder gets tracked by git
@Fasse ?
But this won`t fix the Problem with the missing rights to create the log file.
to create a file in a directory the dir needs the write and execute right. no more, no less. So if we change the dir rights to 775, all rights are available.
but if I create the adm_my_files with ftp it get 755, so as I understand our script could not create any other dir.
But if we could checkin the logs folder into git with the .gitkeep the users would also upload the log folder. so no new logfolder has to be created by the php script. Maybe we should talk about this on skype ;-)
ok, we should talk. In my opinion the uploaded log folder doesn't have the rights because ftp program will set these rights or the server himself will set the default rights for all folders.
With the new FileSystemUtils no exception is thrown, only a log entry that there are no rights, so everything is ok.
If you copy admidio at your webspace and open the browser and do not have set the permissions to adm_my_files than you got the following error:
We should add a handling that if the folder log doesn't exists and it's a fresh installation we should show the installation dialog. There the user will be informed about the permissions to that folder.