V
V
Vlad Avtomat2019-06-29 07:24:35
linux
Vlad Avtomat, 2019-06-29 07:24:35

Laravel logs, how to make http server always write from www-data group?

I can’t understand at all, but for some reason the server sometimes writes normally www-data, otherwise it somehow takes it into its head and starts writing from the root group.
What should be done about it?
Does not help

sudo chgrp -R www-data storage 
sudo chmod -R ug+rwx storage

It helped well, but again, it works for a week, and then even starts from the root for some reason to write this way
sudo chown -R www-data:www-data /path/to/your/laravel/root/directory
  sudo usermod -a -G www-data ubuntu
sudo find /path/to/your/laravel/root/directory -type f -exec chmod 644 {} \;   
sudo find /path/to/your/laravel/root/directory -type d -exec chmod 755 {} \;
sudo chown -R my-user:www-data /path/to/your/laravel/root/directory
sudo find /path/to/your/laravel/root/directory -type f -exec chmod 664 {} \;    
sudo find /path/to/your/laravel/root/directory -type d -exec chmod 775 {} \;
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

How to tame this http-server dragon?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
V
Vlad Avtomat, 2019-06-29
@VladSavelev

The answer, apparently, is that sometimes, on a new day, the first error is thrown from a cron that was launched as root or from a supervisor that had workers, which in turn was also launched from root, and not from www-data.

O
oh, 2017-09-04
@rempash

indeed
, but if you're in your position, it makes sense to think about taking serious steps towards immigration if you want to work in other countries, instead of wasting time on tourist visas and the risk of being caught working illegally

S
Shamsudin Serderov, 2017-09-04
@Steein

It will depend on the company where you want to work.
Some approve remote work, some torment people and force them to work from 9-18 (it’s generally better to leave from there).

P
Philip Grr, 2017-09-05
@Moon_Lobster

In addition to the above, I advise you not to discard your Linkedin profile. Upgrade your profile, make contacts (stupidly contacting those who you liked). It might also be a viable option.

A
Andrei Smirnov, 2017-09-04
@pinebit

Toptal
We have clients in Toptal who directly ask the contractor to work on-site.
Work in quotation marks, because on a tourist visa (or even a business one), the period of stay is limited to 1-2 months, but this is often enough to solve the task. At the border or at the consulate, of course, you can’t say that you are going to “work”.
But it’s much easier to just work remotely all the time, so you can earn money for a ticket anyway, but in fact you can work from any motel and eat at McDonald’s if you need to save a lot.

V
Vladimir Druzhaev, 2017-09-04
@OtshelnikFm

You can also get a job in an office - Grid Dynamics, Netcracker - employees live abroad for six months. Business trips for 2 months for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question