Template:Set file permissions: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
==Definir Arquivo/Permissões das Pastas==
<includeonly>==Set File and Directory Permissions==
Depois que o arquivo de {{lc:{{{1|instalação}}}}} for upado e extraído, você precisa configurar as permissões dos arquivos . Isto é normalmente feito pelo uso do utilitário Unix <b>CHMOD</b>. O valor CHMOD correto para as pastas do SMF é 777, 775 ou 755, e normalmente para arquivos 666 ou 644, dependendo do seu serviço de hospedagem. Existem dois métodos para este passo, o método utilizado depende do serviço de hospedagem que você usa. <br />


===Definindo permissões de arquivos com o {{#switch: {{lc:{{{1|install}}}}}|install=Instalação|upgrade=Upgrad}}===
File and directory permissions control who can see your files and use your directories. They can control whether you will be able to install [[Modifications|mods]] to your forum. On Linux and other Unix-like servers the [[chmod|chmod command]] is used to designate permissions. On most servers, a setting of 755 for directories and 644 for files will work. If this does not work on your hosting service, you may need 777 or 775 for directories, and 666 or 664 for files. Some hosts do not allow using 777 for directories or 666 for files -- using such high values will cause Internal Server Errors, 500 erors, or other errors. If the permission on your files or directories does not make them writable, the SMF {{#switch: {{lc:{{{1|install}}}}}|install=install|upgrade=upgrad}}er will report the problem -- if it can detect it.
A {{#switch: {{lc:{{{1|install}}}}}|install=instalação|upgrade=upgrad}} SMF pode definir permissões de arquivo simples e fácil. Navegar até o diretório onde está localizado SMF deve redirecioná-lo para o arquivo {{lc:{{{1|install}}}}}.php e pedir a {{#switch: {{lc:{{{1|instalação}}}}}|install=instalação|upgrade=upgrad}}. Por Exemplo: www.yourdomain.com/forum/{{lc:{{{1|install}}}}}.php. Se a {{#switch: {{lc:{{{1|install}}}}}|install=instalação|upgrade=upgrad}} detectar arquivos que precisam de suas permissões ajustadas ele irá pedir detalhes FTP para que ele possa definir o <b>CHMOD</b> dos arquivos que ele necessita para a {{lc:{{{1|instalação}}}}}. Isso pode não funcionar em alguns servidores.


===Definindo permissões de arquivos com FTP===
'''Note:''' If a Windows server is being used rather than a Linux server, then you will need to contact your host to change the file/directory permissions.
Usando um painel de controle ou cliente FTP, as permissões de arquivo pode ser alterado rapidamente e facilmente. Geralmente, Programas de FTP irá permitir que as permissões sejam alteradas com botão direito do mouse em arquivos/pastas e selecionando "Propriedades", "Atributos" ou "Permissões".O valor numérico desejado pode ser inserido, ou se existir, caixas de verificação pode ser alterado.


Os seguintes arquivos e diretórios devem ser escritos. Dependendo de como o servidor está configurado, isso significa que eles devem ter <b>CHMOD</b> valores de 644, 664 ou 666 para arquivos, e 755, 775 ou 777 para pastas:
===Setting File Permissions with the {{#switch: {{lc:{{{1|install}}}}}|install=Install|upgrade=Upgrad}}er===
*/attachments
*/avatars
*/Packages
*/Packages/installed.list
*/Smileys
*/Themes
*/Themes/default/languages/Install.english.php
*agreement.txt
*Settings.php
*Settings_bak.php
*{{lc:{{{1|install}}}}}.php


Se a permissão de seus arquivos ou pastas não torná-los gravável, o instalador SMF irá relatar o problema. Nesse caso, use o seu cliente FTP ou painel de hospedagem para redefinir as permissões para os arquivos ou pastas, os relatórios de instalação.
In many cases, the SMF {{#switch: {{lc:{{{1|install}}}}}|install=install|upgrade=upgrad}}er can handle this for you. If you want to give this a try, skip this step for now, and wait until you come to the appropriate point in the {{#switch: {{lc:{{{1|install}}}}}|install=install|upgrade=upgrad}}er. The {{#switch: {{lc:{{{1|install}}}}}|install=install|upgrade=upgrad}}er might need to ask you for FTP login details to get the job done, so be sure to make a note of them. If you run into any problems setting file permissions with the {{#switch: {{lc:{{{1|install}}}}}|install=install|upgrade=upgrad}}er, you can use the instructions below for setting file permissions with FTP to handle it yourself.
 
===Setting File Permissions with FTP===
 
Using a control panel or [[FTP_-_How_do_I_use_FTP|FTP client]], file permissions can be changed quickly and easily. Usually, FTP programs will allow permissions to be changed by right-clicking files/directories and selecting "Properties", "Attributes" or "Permissions". The desired numerical value can be entered, or if provided, check boxes can be changed.
</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 19:45, 27 May 2015

[edit] [purge] Template documentation

This template is meant to be included in articles on installing and upgrading, to provide the information about CHMOD/file permissions. To see it in action, please look at the testcases, or at Special:WhatLinksHere/Template:Set_file_permissions

Examples:

{{Set file permissions|install}}
{{Set file permissions|upgrade}}
  • install the word "install" will be inserted at several key points
  • update the word "update" will be inserted at several key points


Advertisement: