I searched for this problem on the Internet, but none of them helped me. Also this one does not:
chgrp apache /path/to/mydir chmod g+w /path/to/mydir
My server is centos 7. Can you help me?
Try the following commands:
This will give you the apache username. In most cases, the user will be www data.ps -ef | grep apache | grep -v grep
ps -ef | grep apache | grep -v grep
Run this command after going to the / frontend / web: folder andsudo chgrp www-data ./assetssudo chmod g+w ./assets/
sudo chgrp www-data ./assets
sudo chmod g+w ./assets/
Your problem will be resolved.
( CentOS7). , . , selinux, .
selinux
setenforce 0
, /etc/selinux/config:
/etc/selinux/config
SELINUX=disabled
I have the same problem on an ubuto instance that I liked and solve the problem
sudo chmod 777 /home/nicjccom/public_html/asset
and also did it
sudo chgrp root /home/nicjccom/public_html/asset
Try the following command
I grant permissions for the html folder in the www.My html folder containing several projects.
chgrp -R user html/ chmod -R g+w html/ chmod -R g+w html/
You can try this:
chcon -R -t httpd_sys_content_rw_t 'YOUR_PATH_HERE'
Source: https://habr.com/ru/post/1621884/More articles:order by all columns - sqlIntroduce perfect background images in different directions - iosПоиск массива PHP в массиве - string-matchingConfirming my understanding of the Android concept (using multiple actions) - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1621883/empty-success-response-with-a-correct-access-token-from-instagram-api&usg=ALkJrhj4K8kOWWeOEsTDPsGFB5LcXMwLLQЗарегистрируйте сервис, объект и метод DBus "Hello World" с помощью Python - pythonUsing "with sexp" for a type generates "Warning 4: this pattern matching is fragile" - s-expressionHow to use existing services in DBus? - ipcAngular ui bootstrap $ uibModalInstance breaks unit tests - angularjsMainloops role, event loops in DBus service - pythonAll Articles