Answer the question
In order to leave comments, you need to log in
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
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
Answer the question
In order to leave comments, you need to log in
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.
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
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).
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.
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.
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 questionAsk a Question
731 491 924 answers to any question