Jump to content
Sign in to follow this  
vinnyfm

Permissão apache / nginx / wordpress pedindo usuário ftp para atualizar

Recommended Posts

Olá pessoal novamente eu tirando mais uma dúvida com essa galera fera.

Migrei cerca de 20 contas WP para um novo VPS, porém quando vou atualizar plugin ou até mesmo o wp ele fica me solicitando usuário e senha ftp.

Dando uma pesquisada encontrei isto.

permissão dos arquivos está como root, tem que mudar para apache:apache / nginx:nginx / www-data:www-data

Não entendi muito bem isto, será que alguém já passou por isto e sabe como arrumar?

 

Valeu!

Share this post


Link to post
Share on other sites
10 minutos atrás, vinnyfm disse:

Olá pessoal novamente eu tirando mais uma dúvida com essa galera fera.

Migrei cerca de 20 contas WP para um novo VPS, porém quando vou atualizar plugin ou até mesmo o wp ele fica me solicitando usuário e senha ftp.

Dando uma pesquisada encontrei isto.

permissão dos arquivos está como root, tem que mudar para apache:apache / nginx:nginx / www-data:www-data

Não entendi muito bem isto, será que alguém já passou por isto e sabe como arrumar?

 

Valeu!

Sem informação nenhuma sobre o que usa, se é apache, nginx, ou ambos, se usa cpanel... fica difícil ajudar!

Sobre permissão, use:
chown -R usuario:usuario /home/conta/public_html/

Share this post


Link to post
Share on other sites

Uso apache com plugin Enginitron, cPanel e EA4

Print erro wordpress - 245wkx1.png

Edited by vinnyfm
Mostrar imagem

Share this post


Link to post
Share on other sites
44 minutos atrás, RobertSP disse:

Sem informação nenhuma sobre o que usa, se é apache, nginx, ou ambos, se usa cpanel... fica difícil ajudar!

Sobre permissão, use:
chown -R usuario:usuario /home/conta/public_html/

Posso fazer da seguinte maneira?

chown -R usuario:usuario /home/

Share this post


Link to post
Share on other sites

Após rodar o comando chown -R usuario:usuario /home/ estou com o seguinte erro.

 

Failed to save cache file “/home/etjconsultoria/.cpanel/nvdata.cache” because of an error: (XID rxc3m5) The system failed to create the file “/home/etjconsultoria/.cpanel/nvdata.cache.tmp.43957043” with permissions “0640” (as EUID: 516, EGID: 516) because of the following error: Permission denied at /usr/local/cpanel/Cpanel/NVData.pm line 119.
 at /usr/local/cpanel/Cpanel/NVData.pm line 119.
    Cpanel::NVData::catch {...} (Cpanel::Exception::IO::FileCreateError=HASH(0x6a35588)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Try/Tiny.pm line 103
    Try::Tiny::try(CODE(0x6a1e3c0), Try::Tiny::Catch=REF(0x6a095d0)) called at /usr/local/cpanel/Cpanel/NVData.pm line 121
    Cpanel::NVData::_savecache() called at /usr/local/cpanel/Cpanel/NVData.pm line 235
    Cpanel::NVData::_loadcache(1) called at /usr/local/cpanel/Cpanel/NVData.pm line 259
    Cpanel::NVData::_get("xmaingroupsorder") called at /usr/local/cpanel/Cpanel/API/NVData.pm line 21
    Cpanel::API::NVData::get(Cpanel::Args=HASH(0x6a1e408), Cpanel::Result=HASH(0x6a1e1b0)) called at /usr/local/cpanel/Cpanel/API.pm line 285
    Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 357
    eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 357
    Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x6a1e1b0), CODE(0x6a35030)) called at /usr/local/cpanel/Cpanel/API.pm line 285
    Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x6a1e408), Cpanel::Result=HASH(0x6a1e1b0), "NVData", "get") called at /usr/local/cpanel/Cpanel/API.pm line 142
    Cpanel::API::execute("NVData", "get", HASH(0x6a1dfd0)) called at /usr/local/cpanel/Cpanel/Template/Plugin/CPDefault.pm line 58
    Cpanel::Template::Plugin::CPDefault::_execute_or_die("NVData", "get", HASH(0x6a1dfd0)) called at /usr/local/cpanel/base/frontend/paper_lantern/_assets/get_application_from_available_applications_macro.html.tt line 2
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/_assets/get_application_from_available_applications_macro.html.tt line 2
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/_assets/get_application_from_available_applications_macro.html.tt line 5
    Template::Provider::__ANON__(Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x6a1de08), Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x69292b0), "_assets/get_application_from_available_applications_macro.htm"...) called at /usr/local/cpanel/base/frontend/paper_lantern/home/index.tt line 18
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/home/index.tt line 16
    Template::Provider::__ANON__(Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x69f3c98), Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x69292b0), "home/index.tt", undef, "localize me!") called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 409
    Template::Context::include(Template::Context=HASH(0x69292b0), "home/index.tt") called at /usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl line 8
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl line 12
    Template::Provider::__ANON__(Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x692b838), Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x69292b0), Template::Document=HASH(0x692b838)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
    Template::Service::process(Template::Service=HASH(0x6928eb0), "/usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl", HASH(0x5c18250)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
    Template::process(Template=HASH(0x690b248), "/usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl", HASH(0x5c18250), SCALAR(0x1e731b8)) called at /usr/local/cpanel/Cpanel/Template.pm line 428
    Cpanel::Template::process_template("cpanel", HASH(0x5c18250), HASH(0x5e9f948)) called at cpanel.pl line 1183
    cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl", 1) called at cpanel.pl line 5175
    cpanel::cpanel::run_standard_mode() called at cpanel.pl line 839
    cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/index.html") called at cpanel.pl line 295
 

Share this post


Link to post
Share on other sites
7 horas atrás, vinnyfm disse:

Após rodar o comando chown -R usuario:usuario /home/ estou com o seguinte erro.

 

Failed to save cache file “/home/etjconsultoria/.cpanel/nvdata.cache” because of an error: (XID rxc3m5) The system failed to create the file “/home/etjconsultoria/.cpanel/nvdata.cache.tmp.43957043” with permissions “0640” (as EUID: 516, EGID: 516) because of the following error: Permission denied at /usr/local/cpanel/Cpanel/NVData.pm line 119.
 at /usr/local/cpanel/Cpanel/NVData.pm line 119.
    Cpanel::NVData::catch {...} (Cpanel::Exception::IO::FileCreateError=HASH(0x6a35588)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Try/Tiny.pm line 103
    Try::Tiny::try(CODE(0x6a1e3c0), Try::Tiny::Catch=REF(0x6a095d0)) called at /usr/local/cpanel/Cpanel/NVData.pm line 121
    Cpanel::NVData::_savecache() called at /usr/local/cpanel/Cpanel/NVData.pm line 235
    Cpanel::NVData::_loadcache(1) called at /usr/local/cpanel/Cpanel/NVData.pm line 259
    Cpanel::NVData::_get("xmaingroupsorder") called at /usr/local/cpanel/Cpanel/API/NVData.pm line 21
    Cpanel::API::NVData::get(Cpanel::Args=HASH(0x6a1e408), Cpanel::Result=HASH(0x6a1e1b0)) called at /usr/local/cpanel/Cpanel/API.pm line 285
    Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 357
    eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 357
    Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x6a1e1b0), CODE(0x6a35030)) called at /usr/local/cpanel/Cpanel/API.pm line 285
    Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x6a1e408), Cpanel::Result=HASH(0x6a1e1b0), "NVData", "get") called at /usr/local/cpanel/Cpanel/API.pm line 142
    Cpanel::API::execute("NVData", "get", HASH(0x6a1dfd0)) called at /usr/local/cpanel/Cpanel/Template/Plugin/CPDefault.pm line 58
    Cpanel::Template::Plugin::CPDefault::_execute_or_die("NVData", "get", HASH(0x6a1dfd0)) called at /usr/local/cpanel/base/frontend/paper_lantern/_assets/get_application_from_available_applications_macro.html.tt line 2
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/_assets/get_application_from_available_applications_macro.html.tt line 2
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/_assets/get_application_from_available_applications_macro.html.tt line 5
    Template::Provider::__ANON__(Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x6a1de08), Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x69292b0), "_assets/get_application_from_available_applications_macro.htm"...) called at /usr/local/cpanel/base/frontend/paper_lantern/home/index.tt line 18
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/home/index.tt line 16
    Template::Provider::__ANON__(Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x69f3c98), Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x69292b0), "home/index.tt", undef, "localize me!") called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 409
    Template::Context::include(Template::Context=HASH(0x69292b0), "home/index.tt") called at /usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl line 8
    eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl line 12
    Template::Provider::__ANON__(Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
    Template::Document::process(Template::Document=HASH(0x692b838), Template::Context=HASH(0x69292b0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
    Template::Context::process(Template::Context=HASH(0x69292b0), Template::Document=HASH(0x692b838)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
    eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
    Template::Service::process(Template::Service=HASH(0x6928eb0), "/usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl", HASH(0x5c18250)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
    Template::process(Template=HASH(0x690b248), "/usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl", HASH(0x5c18250), SCALAR(0x1e731b8)) called at /usr/local/cpanel/Cpanel/Template.pm line 428
    Cpanel::Template::process_template("cpanel", HASH(0x5c18250), HASH(0x5e9f948)) called at cpanel.pl line 1183
    cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/index.auto.tmpl", 1) called at cpanel.pl line 5175
    cpanel::cpanel::run_standard_mode() called at cpanel.pl line 839
    cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/index.html") called at cpanel.pl line 295
 

O comando chown muda o "dono" da pasta, vc alterou a propriedade de todas as pastas dentro da pasta home para o usuário chamado "usuario",

para reverter vc precisa rodar o mesmo comando para cada pasta na home com seu respectivo nome de usuário, ex:

sudo chown -R usuario:usuario /home/usuario/

sudo chown -R usuario2:usuario2 /home/usuario2/.

Se isso ainda não resolver seu problema com a atualização, vc precisa verificar as permissões de escrita das pastas e arquivos do seu wp, tente estar 0775 para toda a instalação.

opcionalmente vc tb pode definir um nome de usuário e senha FTP no seu arquivo wp-config.php, que dispensa a preocupação com permissões do usuário www-data.


Soluções avançadas para WordPress e WHMCS | https://gofas.net/

Share this post


Link to post
Share on other sites
Em 05/09/2016 at 14:43, vinnyfm disse:

Após rodar o comando chown -R usuario:usuario /home/ estou com o seguinte erro.
 

Deu erro por isso, você tem de setar permissão específica pra cada user e sua conta, não no /home inteiro.

Share this post


Link to post
Share on other sites

@RobertSP

Aproveitando o assunto e seu conhecimento.

Ao utilizar uma plataforma com nginx+php-fpm+varnish

Quando for repassado as requisições em https, como o varnish não responde tal e mandara para o nginx, o cache do varnish ainda vai estar em vigor? Ou ele pegara toda a requisição e jogava direto pro backend?

Share this post


Link to post
Share on other sites
7 horas atrás, LucasOliveira disse:

@RobertSP

Aproveitando o assunto e seu conhecimento.

Ao utilizar uma plataforma com nginx+php-fpm+varnish

Quando for repassado as requisições em https, como o varnish não responde tal e mandara para o nginx, o cache do varnish ainda vai estar em vigor? Ou ele pegara toda a requisição e jogava direto pro backend?

Sinceramente nunca usei nginx+varnish, nem via plugin cPanel com apache (aquele da unixy), nem no LEMP.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.




×
×
  • Create New...