Change the ownership to the webserver user and add yourself to the webservers group if you need read and write as well
Hfally2019-09-01 18:51:31
zack68492019-09-01 18:51:01
If it’s 777 it sure will be
Well, thats true…
Hfally2019-09-01 18:51:53
zack68492019-09-01 18:51:23
Change the ownership to the webserver user and add yourself to the webservers group if you need read and write as well
👍👍 thanks..
zack68492019-09-01 18:52:39
chmod 774 the directory, then chown it www-data or nignx or Apache depending on your webservers configuration
StanleyMasinde2019-09-01 19:32:05
ErSoul2019-08-30 20:43:50
Hello guys, I’ve build an API with Laravel, and now I want to send push notifications to the clients (a webapp build with VueJS, and android mobile client). Which is the ideal package for this task? WebPush or Pusher?
Someone wants to hire Taylor Otwel as an intern 😂😂😂
StanleyMasinde2019-09-01 19:32:43
zack68492019-09-01 18:52:39
chmod 774 the directory, then chown it www-data or nignx or Apache depending on your webservers configuration
755 for directories. 644 for files
zack68492019-09-01 19:33:56
no, group should be able to write as well.
zack68492019-09-01 19:34:30
otherwise if you login as your personal user and try to run artisian commands they might fail
StanleyMasinde2019-09-01 19:35:15
zack68492019-09-01 19:33:56
no, group should be able to write as well.
Yes 755
zack68492019-09-01 19:35:43
no, now the group can only read and execute
StanleyMasinde2019-09-01 19:37:02
zack68492019-09-01 19:35:43
no, now the group can only read and execute
My server is 755 and 644. Everything works fine
alexanderdavii2019-09-01 19:37:11
Hfally2019-09-01 18:45:23
On linux:
sudo chmod -R 777 storage/logs
Make sure you already CD’d into your project
i have selinux
zack68492019-09-01 19:37:19
yeah, but do you as a non-webserver user try to run artisan commands?
zack68492019-09-01 19:37:31
the only reason group perms are even relevant is the above
alexanderdavii2019-09-01 19:37:33
alexanderdavii2019-09-01 19:37:11
i have selinux
that mean i have 2 layers of permisstion
StanleyMasinde2019-09-01 19:38:41
zack68492019-09-01 19:37:19
yeah, but do you as a non-webserver user try to run artisan commands?
Yes I do
zack68492019-09-01 19:38:43
for example, as your user, try touch storage/test
zack68492019-09-01 19:38:57
it should fail, because you don’t have write to that directory, just read and execute
StanleyMasinde2019-09-01 19:39:39
zack68492019-09-01 19:38:57
it should fail, because you don’t have write to that directory, just read and execute
I am in the www-data group. Trust me everything is fine stop complicating things
please don’t spread incorrect information unless you’re absolutley certain, especially with something as important as filesystem permissions for a webserver
StanleyMasinde2019-09-01 19:45:10
zack68492019-09-01 19:44:03
please don’t spread incorrect information unless you’re absolutley certain, especially with something as important as filesystem permissions for a webserver
Please don’t spread incorrect information too. Where did you get that?
zack68492019-09-01 19:45:30
where did i get what….?
StanleyMasinde2019-09-01 19:46:03
This is a normal user. I’m able to write
zack68492019-09-01 19:46:19
you’re writing to an EXISTING file
StanleyMasinde2019-09-01 19:46:34
zack68492019-09-01 19:46:19
you’re writing to an EXISTING file
You want a new file?
zack68492019-09-01 19:47:20
stat the directory it’s in and post your user groups
StanleyMasinde2019-09-01 19:48:04
There you go
zack68492019-09-01 19:48:25
yeah, now post perms of /v(ar?)/www
zack68492019-09-01 19:48:34
and again, post the groups stanley has.
ErSoul2019-09-01 19:49:40
StanleyMasinde2019-09-01 19:32:05
Someone wants to hire Taylor Otwel as an intern 😂😂😂
Wut?
zack68492019-09-01 19:50:12
laravel was initially posted in 2011, nobody really has 8 years of laravel, except taylor, basically.
StanleyMasinde2019-09-01 19:51:52
zack68492019-09-01 19:48:34
and again, post the groups stanley has.
Let me check
StanleyMasinde2019-09-01 19:55:18
zack68492019-09-01 19:55:40
now the permissions of var/www ……
gabrielmoraesp2019-09-01 20:21:35
Someone work proxy load balancer?
ransikoo2019-09-02 06:43:39
i want use cache in my pages and this view use query in controller. now i can or notcan use cache?
eAmirGH2019-09-02 06:57:20
ransikoo2019-09-02 06:43:39
i want use cache in my pages and this view use query in controller. now i can or notcan use cache?
you can use varnish
farshidrezaeii2019-09-02 09:14:29
ransikoo2019-09-02 06:43:39
i want use cache in my pages and this view use query in controller. now i can or notcan use cache?
$value = Cache::rememberForever(‘users’, function () {
return DB::table(‘users’)->get();
});
Nomiilk2019-09-02 11:14:34
Please how can see a conceptual model of my database using laravel?
Erfan1999_sh2019-09-02 11:48:13
hello is there a good wysiwyg editor and file manager that i can upload image and video?I used unisharp but i can’t upload any video files it not support mp4 or wmv or another
praneet812019-09-02 12:26:04
Erfan1999_sh2019-09-02 11:48:13
hello is there a good wysiwyg editor and file manager that i can upload image and video?I used unisharp but i can’t upload any video files it not support mp4 or wmv or another
editorjs
Singhm1232019-09-02 13:27:38
Anyone here How implement SSO using LDAP ?
loveycom2019-09-02 17:33:21
Hello, I need help please.
I want to ensure that whenever I call my static method Class::method() or Class::$proptery, the class is not re-instantiated? I have tried many things and it does not seem to be working.
loveycom2019-09-02 17:36:06
These are my logic:
if(empty(Class::$token)) {
Class::authenticate();
} else {
Class::verifyToken();
}
Here, I want to ensure that I do not need to authenticate every request. Since I will have token returned after the first authentication, hence store the token in static property called token.
zack68492019-09-03 01:55:31
loveycom2019-09-02 17:33:21
Hello, I need help please.
I want to ensure that whenever I call my static method Class::method() or Class::$proptery, the class is not re-instantiated? I have tried many things and it does not seem to be working.
Singletons are what you’re looking for
DesolatorMagno2019-09-03 02:15:59
loveycom2019-09-02 17:33:21
Hello, I need help please.
I want to ensure that whenever I call my static method Class::method() or Class::$proptery, the class is not re-instantiated? I have tried many things and it does not seem to be working.
See this, will help you.
Laravel 6 Advanced – e1 – Service Container – YouTube It would only be fitting that cover one of the most fundamental advanced concepts in Laravel as a first episode. The service container is primary building block of any Laravel Application
For the best experience, follow along in our interactive school at https://www.coderstape.com
Hit us up on Twitter with any questions or comments @codertape (https://twitter.com/CodersTape)
About This Course
Ready to level up your Laravel skills? This series is for you, follow along as we uncover the advanced Laravel features that actually make Laravel the most popular php framework. We’ll have lot of tips and tricks along the way. Are you ready?
794232019-09-03 04:08:53
how would you test a third party API? should i hit thier API when testing the integration?