-
Notifications
You must be signed in to change notification settings - Fork 0
/
instalacao.html
228 lines (165 loc) · 12.4 KB
/
instalacao.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html lang="pt">
<head>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Instalação | FlatPress CMS - Documentação em Língua Portuguesa</title>
<meta name="description" content="Como instalar o FlatPress CMS">
<meta name="author" content="Fabiano Santos - @fabianosantosnet">
<meta property="og:locale" content="pt, pt_BR, pt_PT">
<meta property="og:type" content="website">
<meta property="og:title" content="Como instalar o FlatPress CMS">
<meta property="og:site_name" content="FlatPress CMS">
<meta property="og:description" content="Como instalar o FlatPress CMS">
<meta property="og:url" content="https://fabianosantosnet.github.io/FlatPressCMS/">
<meta property="og:image" content="https://fabianosantosnet.github.io/FlatPressCMS/assets/logo-flatpress-cms-fb.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://fabianosantosnet.github.io/HTMLyCMS/assets/logo-flatpress-cms-tw.png">
<link rel="shortcut icon" type="image/png" href="assets/favicon.png">
<link rel="canonical" href="https://fabianosantosnet.github.io/FlatPressCMS/">
<link rel="stylesheet" href="assets/style.css">
<script src="assets/script.js" defer></script>
</head>
<body>
<div id="container-base">
<header id="top">
<h1><a href="./index.html">Flat<span>Press</span> CMS</a></h1>
<img src="./assets/logo-small.gif" alt="logotipo do FlatPress CMS" />
<p>Seu ponto de partida sobre o FlatPress CMS no idioma português</p>
<p class="view"><a href="https://github.com/fabianosantosnet/FlatPressCMS/">GitHub deste site</a></p>
</header>
<nav>
<ul>
<li><a href="./index.html" title="Página inicial">Início</a></li>
<li class="active"><a href="./instalacao.html" title="Requisitos, como instalar, atualizar">Instalação</a></li>
<li><a href="./historico.html" title="Visão Geral, História e Linha do tempo">Histórico</a></li>
<li><a href="./estrutura.html" title="Organização das pastas, Tecnologia e banco de dados">Estrutura</a></li>
<li><a href="./temas.html" title="Informações sobre os temas">Temas</a></li>
<li><a href="./extensoes.html" title="Tudo sobre Plugins/Extensões">Extensões</a></li>
<li><a href="./informacoes-tecnicas.html" title="Informações técnicas e diversas">Diversos</a></li>
<li><a href="https://git.fabianosantos.net/doar" title="Doe para ajudar no projeto">Doar</a></li>
</ul>
</nav>
<main>
<section class="data">
<h2>Instalação e atualização do FlatPress CMS</h2>
<div class="sub sub2">
<h3>Requisitos Mínimos</h3>
<!-- https://www.php.net/supported-versions.php -->
<p>O FlatPress 1.2.1 funcionará em qualquer servidor web que suporte PHP de 5.6 a 8.0. Por questões de segurança, recomenda-se o PHP 7.4 ou 8.0. No momento, o PHP 8.1 ainda não é suportado.</p>
<p>O CMS utiliza muito pouco espaço, na versão 1.2.1 o arquivo compactado tem apenas 1.2 MB e descompactado 2.7 MB, portanto uma hospedagem compartilhada com 1 GB de espaço é mais que suficiente para um site/blog com quase 1000 páginas de 1 MB cada.</p>
<p>Para melhores resultados (mas não obrigatórios), o servidor web também deve ter um mecanismo de reescrita (como <a href="https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html">mod_rewrite</a>) habilitado;
isso é necessário pelo plugin PrettyURLs para criar URLs amigáveis. Além disso, o <a href="https://www.php.net/manual/en/book.image.php">GDlib</a> deve ser instalado para a criação de miniaturas de imagens.
Também é requerido a extensão CURL do PHP para verificar atualizações.</p>
<p>Para Windows, você pode utilizar pacotes prontos como o <a href="https://wnmp.x64architecture.com/">WNMP (com servidor NGINX)</a> ou <a href="https://www.vswamp.com/">VertrigoServ (com Apache)</a>.</p>
<p>No Ubuntu, a instalação seria algo como:
<code>
<pre>
sudo apt-get update
sudo apt-get install apache2 php libapache2-mod-php php-gd
</pre>
</code>
</p>
</div>
<div class="sub sub2">
<h3>Como Instalar</h3>
<p>Tem dois tipos de pacotes para download:</p>
<ul>
<li>Interface padrão: <a href="https://github.com/flatpressblog/flatpress/archive/1.2.1.zip">v1.2.1 "Legato"</a> (versão <a href="https://www.softaculous.com/demos/FlatPress">demo</a>)</li>
<li>Novo painel de administração (em teste): <a href="https://github.com/flatpressblog/flatpress/archive/refs/heads/responsiveadmin.zip">Response Admin</a></li>
</ul>
<p>Após baixar, vá no painel de controle de sua hospedagem, abra o gerenciador de arquivos, navegue até a pasta desejada (normalmente é a <em>public_html</em>), selecione a opção de upload, escolha o arquivo zip, após carregar descompacte-o.</p>
<p>Inicie a configuração do FlatPress navegando até o endereço de seu site <em>https://seusite.com.br</em> ou <em>https://seusite.com.br/blog</em>, caso tenha desempactado dentro da pasta blog.</p>
<p>Na página de instalação digite o nome de usuário, senha, URL e endereço de e-mail, depois conclua a instalação.</p>
<p>Por fim remova a pasta "Setup" e o arquivo "setup.php".</p>
<div class="sub3">
<h4>Links</h4>
<p>A instalação pode ser realizada pelo script do <a href="https://ideon.net.br/instalacao-flatpress-blog/">SoftAculous</a></p>
<p><a href="https://www.vultr.com/docs/install-flatpress-cms-on-ubuntu-20-04-lts/">Instale no Ubuntu LTS 20.04</a> <em>(inglês)</em> ou em outros sistemas <a href="https://www.linuxhelp.com/articles/flatpress">linux</a> (inglês)</p>
<h4>Resolução de problemas</h4>
<p>Pode ser que apresente falha na instalação e precise ser reiniciada. Nesse caso remova o arquivo <code>%%setup.lock</code> localizada dentro da <code>fp-content/</code>.</p>
</div>
</div><br>
<div class="sub sub2 link">
<h3>Atualização do FlatPress</h3>
<p class="note">Antes de alterar qualquer coisa em sua instância do FlatPress, sempre faça um <a href="informacoes-tecnicas.html#backup">backup</a> de toda a pasta, caso algo dê errado volte o backup.</p>
<p>Existem algumas maneiras de atualizar uma instalação do Flatpress. Mas você deve considerar que tipo de atualização deseja fazer e quantas entradas e anexos já existem em seu blog.</p>
<p>Opções de atualização:</p>
<details>
<summary>Atualização de arquivos únicos, por exemplo, atualizações de segurança</summary>
<p>Esta é a maneira mais fácil com o mínimo de esforço. Basta substituir os arquivos em questão pelos novos, após isso limpar o cache. Este método é adequado para atualizações de segurança ou pequenas correções de bugs da versão do desenvolvedor (do SVN) ou para alterações dos arquivos do tema. Uma atualização de arquivos únicos deve ser testada para cada caso individual e é recomendada apenas para webmasters experientes.
</p>
</details>
<details>
<summary>Atualização do blog completo para uma nova versão movendo o conteúdo</summary>
<p>Esta é uma opção muito interessante para atualizar um blog existente sem perda de conteúdo. O método requer acesso total ao espaço web e um bom software de FTP . Este método não é recomendado para instalações que residem no diretório raiz do seu webspace. O blog deve ser instalado em seu próprio subdiretório, por exemplo “/flatpress”.</p>
<ol>
<li>Crie um diretório chamado “novo”</li>
<li>transfira a nova versão do Flatpress para o diretório “novo”</li>
<li>Renomeie o diretório atual do Flatpress para “antigo”</li>
<li>Renomeie o diretório “novo” para o nome que o diretório “antigo” tinha antes</li>
<li>Ajuste as permissões para do diretório “fp-content” para 777</li>
<li>Execute a configuração da maneira usual (incluindo seleção de idioma, menus e plugins)</li>
<li>Copie os dados do Flatpress de “antigo/fp-content/” para sua nova instalação</li>
<li>No Painel de Administração, vá no link 'Manutenção' e selecione 'Reconstruir o índice'</li>
</ol>
<p><small>Nota Importante: Por motivos de segurança, é recomendado excluir tanto o diretório “Setup” quanto o arquivo “setup.php”</small></p>
<p>Caso algo dê errado, você pode reativar sua instalação anterior apenas renomeando os diretórios de acordo.</p>
</details>
<details>
<summary>Atualização do blog completo, incluindo um backup completo</summary>
<p>Este deve ser o método de atualização preferido e é adequado para qualquer instalação do Flatpress.
Não importa se o blog reside no diretório raiz de sua hospedagem ou em um subdiretório.
Além disso, você tem um backup completo de seu espaço na web.</p>
<p>Pode ser interessante colocar uma página index.html padrão com um texto informando que o site está em atualização.</p>
<ol>
<li>Baixe seu blog completo usando seu software FTP</li>
<li>Exclua o conteúdo de blog na hospedagem</li>
<li>Suba a versão atual do Flatpress</li>
<li>Altere as permissões do diretório “fp-content” para 777</li>
<li>Execute a configuração da maneira usual (incluindo seleção de idioma, menus e plugins)</li>
<li>Transfira os dados do Flatpress do seu backup para sua nova instalação</li>
<li>No Painel de Administração, vá no link 'Manutenção' e selecione 'Reconstruir o índice'</li>
</ol>
</details>
<details>
<summary>Atualização de um pacote de idiomas mais recente</summary>
<p>Caso você esteja usando o pacote de idioma alemão, você pode atualizar transferindo os arquivos para o sua hospedagem.
Os arquivos só precisam ter as permissões para sobrescrevê-los. Você pode atualizar o pacote de idiomas sem sair do serviço.</p>
<p>Atualmente o CMS v1.2.1 inclui os seguintes idiomas Inglês, Portugues do Brasil, Tcheco, Holandês, Francês, Alemão, Grego, Italiano, Japonês e Espanhol. Para gerar uma nova versão ou atualização saiba mais em <a href="informacoes-tecnicas.html#dir-idiomas">aqui</a>.</p>
</details>
<details>
<summary>Atualização de um tema</summary>
<p>Como primeiro passo, você deve alterar o tema Flatpress para o tema padrão Leggero. Dessa forma, o tema a ser atualizado não é acessado pelos visitantes do seu espaço na web e, portanto, pode ser alterado e sobrescrito. Depois de transferir com sucesso os arquivos de tema atualizados, você pode voltar para o novo tema.</p>
<p>Dentro da sua instalação do Flatpress, os temas podem ser encontrados no caminho: <code>/fp-interface/themes/…nome_tema…</code></p>
<ol>
<li>Altere o tema atual para outro (exemplo Leggero)</li>
<li>Faça o backup do tema que deseja atualizar</li>
<li>Envie o tema atualizado para a hospedagem</li>
<li>No Painel de Administração, vá no link 'Manutenção' e selecione "Limpe cache de tema e modelos"</li>
<li>Mude para o novo tema</li>
</ol>
</details>
<details>
<summary>Atualização de uma extensão</summary>
<p>Ao atualizar um plugin, você deve seguir basicamente o mesmo procedimento de atualizar um tema. Recomenda-se desativar o plugin a ser atualizado no painel de administração do plugin, antes de fazer a atualização.</p>
<ol>
<li>Desative a extensão (plugin)</li>
<li>Faça o backup da extensão que deseja atualizar</li>
<li>Envie a extensão atualizada para a hospedagem no diretório <code>/fp-plugins</code> e descompacte</li>
<li>No painel de administração, vá em 'Plugins', localize-o e clique em Ativar</li>
<li>Se ocorrer uma falha, desative o plugin e volte o backup anterior</li>
</ol>
</details>
</div>
</section>
</main>
<footer id="bottom-copy">
<p>Projeto mantido por <a href="https://github.com/fabianosantosnet">fabianosantosnet</a></p>
</footer>
</div>
</body>
</html>