Verifique com o comando semanage.
semanage fcontext -a -t httpd_sys_script_rw_t "/usr/share/nginx/html/MYAPP(/.*)?"
restorecon -R -v MYAPP
Primeiro, verifique com alguma pasta de demonstração.
Eu tento alterar a permissão sobre MYAPP
dir porque ele tem 777 permissões porque o SEliux bloqueou
Então eu digito este comando
su -c "chcon -R -h -t httpd_sys_script_rw_t /usr/share/nginx/html/MYAPP/
mas eu estou recebendo este erro
chcon: can't apply partial context to unlabeled file HtmlPhpSpecExceptionPresenter.php
chcon: can't apply partial context to unlabeled file Exception
chcon: can't apply partial context to unlabeled file StringPresenter.php
chcon: can't apply partial context to unlabeled file TaggingPresenter.php
chcon: can't apply partial context to unlabeled file Presenter.php
chcon: can't apply partial context to unlabeled file SimplePresenter.php
chcon: can't apply partial context to unlabeled file PresenterInterface.php
chcon: can't apply partial context to unlabeled file Presenter
chcon: can't apply partial context to unlabeled file FatalPresenter.php
chcon: can't apply partial context to unlabeled file HtmlFormatter.php
chcon: can't apply partial context to unlabeled file ReportFailedItem.php
chcon: can't apply partial context to unlabeled file ReportSkipped.html
chcon: can't apply partial context to unlabeled file ReportFooter.html
chcon: can't apply partial context to unlabeled file ReportPending.html
Observação: isso acontece em remote server
, mas no meu local machine
funcionou bem
Verifique com o comando semanage.
semanage fcontext -a -t httpd_sys_script_rw_t "/usr/share/nginx/html/MYAPP(/.*)?"
restorecon -R -v MYAPP
Primeiro, verifique com alguma pasta de demonstração.
Tags permissions fedora linux