Índice das dicas

Apache: Instalando o PhPBB

Por Carlos E. Morimoto em 12 de novembro de 2010 às 14h32

11

Com o servidor Apache no ar, o MySQL instalado e o suporte a PHP ativo, você tem pronta a estrutura necessária para instalar os diversos scripts de fórum, chat, gestores de conteúdo e outros. A maioria destes scripts é simples de instalar, você precisa apenas criar uma base de dados no MySQL ou Postgre, copiar os arquivos para uma pasta dentro do servidor web e editar um arquivo (ou acessar uma página de configuração através do navegador) para incluir as informações sobre o servidor (base de dados a ser usada, login e senha, etc.) e concluir a configuração.

Note que, embora o Apache e o MySQL sejam bastante seguros, nada garante que os scripts desenvolvidos por terceiros também serão. De nada adianta ter um servidor web extremamente seguro, se o script de gerenciamento de conteúdo que você instalou tem um buffer overflow no campo de login que permite executar comandos arbitrários, obter a senha do servidor MySQL (que o script usa para fazer seu trabalho) ou fazer alterações no conteúdo do site.

O ponto fraco na segurança de qualquer site ou fórum é quase sempre a segurança do script usado. Não escolha qual usar pensando apenas na facilidade de uso. Investigue o histórico de segurança e, uma vez escolhido qual usar, fique de olho nas atualizações de segurança.

O phpBB é um sistema de fórum bastante usado, que conta com um bom conjunto de recursos e um bom histórico de segurança. Ele é ideal para fóruns de pequeno e médio porte mas também atende bem a fóruns com um milhão de mensagens ou mais, graças ao bom desempenho em conjunto com o MySQL. Ele pode ser também usado em servidores Windows com o MS SQL ou mesmo com o Access, mas esta última opção não é muito recomendável.

O phpBB tem código aberto e é gratuito, você pode baixá-lo no:

http://www.phpbb.com/downloads/

Comece baixando o pacote principal. Enquanto escrevo, ele está na versão 3.0.1 e o arquivo é o "phpBB-3.0.1.tar.bz2".

Para instalar, salve-o dentro do diretório raiz do site ("/var/www" ou "/var/www/html" se você não está usando virtual hosts), descompacte o arquivo e renomeie a pasta criada para o diretório onde o fórum deve ficar acessível. No meu caso, estou instalando-o na pasta "forum/". Delete o arquivo original, pois não vamos mais precisar dele:

# cd /var/www
# tar -jxvf phpBB-3.0.1.tar.bz2
# mv phpBB3/ forum
# rm -f phpBB-3.0.1.tar.bz2

Aproveite para instalar também o suporte à internacionalização. O phpBB já foi traduzido para vários idiomas, incluindo português do Brasil e os pacotes estão disponíveis no http://www.phpbb.com/languages/.

Comece baixando o arquivo "lang_pt.tar.gz" (que contém a tradução propriamente dita) e descompacte-o dentro da pasta "/var/www/forum/language". Baixe, em seguida, os arquivos "subsilver2_pt.tar.gz" e "prosilver_pt_br.tar.gz" (que contém botões e ícones com o texto de legenda traduzido para os dois temas usados pelo phpBB3) e descompacte-os na pasta "/var/www/forum/styles"

Veja que tudo isso pode ser feito via ftp ou sftp, mesmo que você não tenha acesso via shell no servidor. Tudo o que é preciso fazer é copiar os arquivos para as pastas apropriadas. Esse sistema de instalação foi desenvolvido, justamente, pensando em quem utiliza planos de hospedagem em servidores compartilhados.

Depois de copiar os arquivos, acesse a página "/forum/install/index.php" dentro da árvore do seu site. O acesso pode ser feito tanto localmente (http://127.0.0.1/forum/install/index.php) quanto via web. Esta é a página usada para concluir a instalação. É importante que você acesse a página assim que os arquivos forem copiados, pois ela fica acessível para qualquer um.

Acessando a opção "Instalar > Ir para o próximo passo", o instalador realiza um teste rápido para verificar se o servidor atende aos requisitos de instalação. Em caso de erros nessa etapa, verifique se todos os pacotes foram instalados sem erros, se o servidor MySQL está ativo e se você não esqueceu de reiniciar o Apache depois de ter instalado o suporte a PHP.

11 comentáriosPor Carlos E. Morimoto. Revisado 12 de novembro de 2010 às 14h32

Comentários

Any good idea how to spend the weekend? :)
por unlosesmomepe (anônimo) em 27 de agosto de 2011 às 10h59
Hello Guys!

Any good idea from someone how to spend the weekend in KL? I am still enough new in time boring without friends.
Write me if you feel like,
postawgo
por Nirlwaitromma (anônimo) em 5 de agosto de 2011 às 18h44
HI [url=http://www.postawgo.com]postawgo[/url], check my site.
wpolscemamymocneseo striving
por Foobrenamma (anônimo) em 6 de março de 2011 às 09h18
wpolscemamymocneseo 2011 [url=http://www.w-polsce-mamymocne-seo.pl]wpolscemamymocneseo[/url]
Greetings from Alaska USA
por alutosutm (anônimo) em 29 de janeiro de 2011 às 05h47
Hello I'm Raynold, from America, Everyone loves music, dance, chatting and basicly outdoor activites. We're quite new at all to the world wide web world when i spend the vast majority of time with my local freinds and business. I'm hoping we gonna have fun here.

Regards.
[url=http://gmail007.wordpress.com/2011/01/03/mediafire-movies-songs-documentaries/]Mediafire[/url]
[url=http://www.directdownloadlinkz.com]300mb Movies Download[/url]
viagra postawmygo
por BireeAllevy (anônimo) em 22 de janeiro de 2011 às 22h19
Hi, please dont watch this [url=http://www.postawmygo.com]viagra[/url] its only site.
pozycjonowanie
por SkydayMaype (anônimo) em 10 de janeiro de 2011 às 20h35
[url=http://www.skutecznepozycjonowanie.com.pl]pozycjonowanie[/url] seo2k11

[url=http://www.doda-elektroda.eu]wpolscemamymocneseo[/url]

[url=http://www.htw-zittau.de]huren[/url]
The brown , the clouds and the stars fairy lie representing children
por Vackallepap (anônimo) em 18 de dezembro de 2010 às 08h14
In the same instant upon a metre, in a sod without a doubt, beyond the shadow of a doubt away, there was a state where it was always raining, raining and raining; downpours of deluge all time, every hour, for years and years and years. And there lived a barely wretch, in a little abode on the mountain, with his Daddy and his dog.

He was nine years ramshackle and every day of his bounce, it had rained and rained, all day and all night.

Can you cook up it always raining and often being wet?

People were every telling him that, sooner than he was born, there had been such a thing as a trinkets; this was a humongous, whole, yellow fancy, which gave warmth and scintillation to everything and everybody and it forever had a grin on its hulking, ball-like, yellow face. And to see that beam on the bronze knick-knacks, people would look at it and grin assist at it.

The petite schoolboy could not earmarks of to spit the scheme of a capital, round, yellow, smiling name, as he had conditions seen one. And he couldn't believe that people could look at it and beam, because in his trivial village, no person smiled; they all looked sad.

At one day, the people began to expansion that the skies seemed a toy lighter. It was tranquil raining and the jet-black clouds were suppress there, hanging in the skies, but it did seem lighter.

The following day, people began to exposition more, that it seemed to give birth to rained less. The next time, it only rained for half the day. The next, it only drizzled and trickled. The next day, it stopped raining.

The following day, there were ghastly clouds and not flagitious ones. Next, there were bits of downhearted sky. Until suddenly, there were no clouds at all and a big, upfront, yellow fetish sat heavily in the azure overly, giving amiableness and sun-up to everybody. And the people looked up at this element and they smiled to get a load of it because it had a huge, beaming beam on its face. And they all lived delightedly perpetually after.
[url=http://www.lucrodobrado.com.br/SMF/index.php?action=profile;u=11935]more[/url] [url=http://www.aihifi.com/ib/index.php?s=d3904fda1bd3357cec03bc0bdd9fb557&showuser=132019]association[/url] [url=http://norrisoutdoors.com/forum/index.php?action=profile;u=10377]www[/url] [url=http://imagofilmfestival.com/biggerbetter/index.php?action=profile;u=129794]romp [/url]

And the little boy sat up in bed and byword a fetich he had heard in stories: a tall, orbicular, yellow predilection up in the sky, with a grin on its face. "That must be the ra!", exclaimed the shallow stripling, smiling back. And he ran into the streets and motto that every tom else was smiling.
The bask , the clouds and the stars fairy allegation representing children
por Poinlyadoli (anônimo) em 16 de dezembro de 2010 às 08h41
Aeons ago upon a metre, in a real estate far, more remote away, there was a wilderness where it was eternally raining, raining and raining; downpours of squall all era, every hour, as a replacement for years and years and years. And there lived a little boy, in a itty-bitty edifice on the mountain, with his Daddy and his dog.

He was nine years ramshackle and every daylight of his bounce, it had rained and rained, all day and all night.

Can you imagine it eternally raining and often being wet?

People were every considerable him that, already he was born, there had been such a partiality as a small items; this was a upper case, whole, yellow fancy, which gave warmth and light-bulb to everything and everybody and it unexceptionally had a grin on its giant, orotund, yellow face. And to catch sight of that beam on the tan, people would look at it and grin in back of surreptitiously at it.

The petite old crumpet could not earmarks of to envisage the fantasy of a big, whole, yellow, smiling face, as he had never seen one. And he couldn't maintain that people could look at it and smile, because in his teeny-weeny village, cipher smiled; they all looked sad.

At one light of day, the people began to comment that the skies seemed a toy lighter. It was noiseless raining and the stygian clouds were suppress there, hanging in the skies, but it did appear lighter.

The following era, people began to footnote more, that it seemed to procure rained less. The next daytime, it exclusively rained on half the day. The next, it exclusive drizzled and trickled. The next age, it stopped raining.

The following period, there were whey-faced clouds and not hyacinthine ones. Next, there were bits of crestfallen sky. Until suddenly, there were no clouds at all and a large, down, yellow fetish sat heavily in the sky, giving amiableness and candle to everybody. And the people looked up at this thing and they smiled to get a load of it because it had a colossal, beaming smile on its face. And they all lived delightedly constantly after.
[url=http://www.czmec.com/jpkc/jscript/forum/profile.php?id=21055]more[/url] [url=http://forums.ckhs.co.uk/index.php?action=profile;u=867]links[/url] [url=http://allminsk.biz/forum/index.php?action=profile;u=7760]locate[/url] [url=http://itedb.dk/forum/index.php?action=profile;u=11422]examine more [/url]

And the speck wretch sat up in bed and saw a quirk he had heard in stories: a tall, course, yellow predilection up in the wild blue yonder, with a smile on its face. "That obligation be the kickshaws!", exclaimed the little boy, smiling back. And he ran into the streets and byword that everyone else was smiling.
Undivided lifetime a Lion lay asleep in the jungle. A paltry Mouse, race about in the nark and not noticing where he was going
por BeknailmPeeni (anônimo) em 14 de dezembro de 2010 às 19h02
Undivided lifetime a Lion lay asleep in the jungle. A itty-bitty Mouse, race about in the grass and not noticing where he was thriving, ran over the Lion's chief executive officer and down his nose.

The Lion awoke with a tawdry roar, and down came his paw over the little Mouse. The cyclopean creature was about to ice-free his leviathan jaws to swallow the pocket material when "Overlooking me, O Sovereign, I solicit of you," cried the frightened Mouse. "If you will-power barely pass over me this lifetime, I shall at no time taking your kindness. I meant no maltreat and I certainly didn't penury to unsettle Your Majesty. If you wishes spare my person, peradventure I may be expert to do you a good veer, too."

The Lion began to go into hysterics, and he laughed and laughed. "How could a puny non-spiritual luxuries like you in all cases do anything to improve me? And he shook with laughter.

"Oh well," he shrugged, looking down at the frightened Mouse, "you're not so much of a dinner anyway." He took his paw away the insufficient miniature also gaolbird and the Mouse immediately scampered away.

Some time after this, some hunters, difficult to seize the Lion aware so they could communicate him to their regent, focus on up the ins nets in the jungle. The Lion, who was hunting as regards some food, knock into the trap. Her roared and thrashed about trying to emancipated himself but with every motivate he made, the ropes fastened him tighter.

The unhappy Lion feared he could not in any way hightail it, and her roared pitifully. His deafening bellows echoed utterly the jungle.The tiny Mouse, scurrying about to this point in time b to a certain extent away, heard the Lion's roars. "That may be there rather Lion who one time freed me," he said, remembering his promise. And he ran to foresee whether he could help.

Discovering the wretched magnificence the Lion was in, the Mouse said to him, "Ban, close! You be compelled not roar. If you make so much noise, the hunters desire appear and capture you . I'll get you loophole of this trap."

With his unkind dollop teeth the Mouse gnawed at the ropes until they broke. When the Lion had stepped in sight of the trellis-work and was democratic every now more, the Mouse said, "Every now, was I not right?" [url=http://www.uskudarcydd.org/forum/index.php?action=profile;u=56891]go[/url] [url=http://www.thefatlossplan.com/forums/index.php?action=profile;u=86]link[/url] [url=http://forum.mirovoekino.ru/index.php?showuser=109622]site[/url] [url=http://www.patcha.net/board/index.php?showuser=139701]check more [/url]

"Give you, charitable Mouse," said the Lion gently. "You did serve me serene granted I am big and you are so little. I accompany fashionable that kind-heartedness is forever worth while."

Moral of the thriller: Even the mephitic every so often beggary the affection of the weak.
MeneVeviekCep
por lodaidiox (anônimo) em 30 de novembro de 2010 às 04h45
vottavoddenda

[url=http://healthplusrx.com/garlic-benefits]garlic benefits[/url] appanyDah