S
S
sawa42016-10-04 07:02:57
PHP
sawa4, 2016-10-04 07:02:57

How and where to configure and set permissions on Debian ZipArchive?

Hello!
Guys someone faced such a problem on a Debian server?

Backup failed because ZipArchive::close(): Can't open file: Permission denied.

Everything works under root, but the command on cron weighs from another user.
How can I solve this problem, who will tell you what?
I use laravel backup spatie https://github.com/spatie/laravel-backup
respectively command php artisan backup:run
Until recently, everything worked, but suddenly broke, I think because of this error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-10-04
@Denormalization

You just need to configure cron on behalf of the same user who has the right to write to the desired directory.
That is, simply:

$ su user
$ crontab -e

And write a launch rule for it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question