[RESOLVIDO] Erro Permissões do Diretório Locaweb

  • lucas.fernandes
  • Avatar de lucas.fernandes Autor do Tópico
  • Offline
  • JCB! Junior
  • JCB! Junior
Mais
11 anos 8 meses atrás #78690 por lucas.fernandes
lucas.fernandes created the topic: [RESOLVIDO] Erro Permissões do Diretório Locaweb
Galera, pra instalar o Joomla na minha hospedagem foi uma luta. Primeiro não queria remover a pasta de instalação (no final do processo), removi manualmente mas aconteceram vários erros.
Por fim upei o joomla novamente e coloquei permissões 777. Aí instalou, removeu os arquivos e beleza. Voltei as permissões da pasta joomla e subpastas e arquivos para 775. Agora não consigo instalar nenhum componente nem upar fotos.

Aparece escrito: Aviso: Falha ao mover o arquivo! Erro. Não foi possível enviar arquivo.

Pensei em voltar o chmod para 777, mas entendo pouco disso e creio que 777 abre brechas na segurança, não é?

Em Informações do Sistema > Permissões do Diretório: está tudo como "Protegido" exceto por 3 pastas.

O Joomla está hospedado no endereço http://servicos.correiodopapagaio.com.br/joomla/
Segue .htaccess
##
# @package		Joomla
# @copyright	Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license		GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)(&#91;^s&#93;*s)+cript.*(>|%3E) &#91;NC,OR&#93;
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\&#91;|\%&#91;0-9A-Z&#93;{0,2}) &#91;OR&#93;
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\&#91;|\%&#91;0-9A-Z&#93;{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php &#91;F&#93;
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the &#91;R=301,L&#93; flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - &#91;E=HTTP_AUTHORIZATION:%{HTTP:Authorization}&#93;
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/&#91;^.&#93;*|\.(php|html?|feed|pdf|vcf|raw))$ &#91;NC&#93;
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php &#91;L&#93;
#
## End - Joomla! core SEF Section.

[b:121cuzc1][color=#BF0000:121cuzc1]Lucas Muniz[/color:121cuzc1][/b:121cuzc1]
Designer
[url=http&#58;//www&#46;struturadesign&#46;com&#46;br/portfolio:121cuzc1]struturadesign.com.br/portfolio[/url:121cuzc1]

Please Entrar ou Registrar to join the conversation.


Mais
11 anos 8 meses atrás #78730 por Diego Lucca
Diego Lucca replied the topic: Re: Erro Permissões do Diretório
primeiramente a pasta tmp esta com permissão ? ja tentou desabilitar o ftp em configurações globais para ver se resolve?

Diego Lucca
DG Company - Companhia Digital
www.dgcompany.com.br

Please Entrar ou Registrar to join the conversation.

  • lucas.fernandes
  • Avatar de lucas.fernandes Autor do Tópico
  • Offline
  • JCB! Junior
  • JCB! Junior
Mais
11 anos 8 meses atrás #78764 por lucas.fernandes
lucas.fernandes replied the topic: Re: Erro Permissões do Diretório

dimineon escreveu: primeiramente a pasta tmp esta com permissão ? ja tentou desabilitar o ftp em configurações globais para ver se resolve?

Pelo ftp aparece que todas as pastas estão com permissão 755 e todos os arquivos com 644. No entando no menu do sistema do joomla aparece que quase todas as pastas estão protegidas. Olha as imagens.

FTP


Joomla

[b:121cuzc1][color=#BF0000:121cuzc1]Lucas Muniz[/color:121cuzc1][/b:121cuzc1]
Designer
[url=http&#58;//www&#46;struturadesign&#46;com&#46;br/portfolio:121cuzc1]struturadesign.com.br/portfolio[/url:121cuzc1]

Please Entrar ou Registrar to join the conversation.

Mais
11 anos 8 meses atrás #78765 por Diego Lucca
Diego Lucca replied the topic: Re: Erro Permissões do Diretório
tenta fazer o seguinte acessa o painel de controle da sua hospedagem e tenta mudar as permissões lá destas pastas, se não conseguir pede para que eles restaurem as permissões,

Diego Lucca
DG Company - Companhia Digital
www.dgcompany.com.br

Please Entrar ou Registrar to join the conversation.

  • lucas.fernandes
  • Avatar de lucas.fernandes Autor do Tópico
  • Offline
  • JCB! Junior
  • JCB! Junior
Mais
11 anos 8 meses atrás #78798 por lucas.fernandes
lucas.fernandes replied the topic: Re: Erro Permissões do Diretório

dimineon escreveu: tenta fazer o seguinte acessa o painel de controle da sua hospedagem e tenta mudar as permissões lá destas pastas, se não conseguir pede para que eles restaurem as permissões,


Entrei em contato com o serviço técnico da locaweb. Está tudo ok. As pastas estão com permissao 755, mas mesmo assim na informação de sistema do joomla aparece que as pastas estão protegidas. Setei as pastas para 775 e continuaram protegidas. Então setei para 777 e aí sim elas apareceram como "Editável".
Isso pode ser alguma configuração do Joomla que define que ele faça parte do grupo proprietário?

[b:121cuzc1][color=#BF0000:121cuzc1]Lucas Muniz[/color:121cuzc1][/b:121cuzc1]
Designer
[url=http&#58;//www&#46;struturadesign&#46;com&#46;br/portfolio:121cuzc1]struturadesign.com.br/portfolio[/url:121cuzc1]

Please Entrar ou Registrar to join the conversation.