-điѳgѳ૮ѳ૨ท© 23 Posted May 12, 2013 Boas hoje venho fazer este tutorial : Como activar apache no freebsd :)Este método aprendi no site da FreeBSD , por isso deverá estar certo . [*]Vamos activar o apache :) 2-Vamos ao diréctorio /etc/ 3- Abrimos o ficheiro "rc.conf" 4- Procuramos pela seguinte linha : # echo ‘apache22_enable=”NO”‘ >> /etc/rc.conf 5- Agora Alterem essa Alinha, de modo aonde diz "NO" metem "YES", ora Assim: # echo ‘apache22_enable=”YES”‘ >> /etc/rc.conf Agora Ele está activado (Caso não tenham a linha referida acima, na ultima linha do ficheiro deiam enter, Metam la a linha, e dá outro enter, fecha e guarda o ficheiro). 6- Agora, para configurarmos o ficheiro "Apache" Vamos ao directorio: /usr/local/etc/apache22/ e abrem o ficheiro "httpd.conf" 7- Agora onde diz: "ServerName www.example.com:80 " Mudem para "ServerName localhost:80 ". 8-Verifique o arquivo /etc/rc.conf, a variável "hostname"(esse nome é referente ao nome da nossa máquina) Exemplo: "hostname=KentosMt2" 9- Agora vamos a /etc/hosts e la tem que ter esta linha: 127.0.0.1 localhost KentosMt2 10 - Após isto tudo verificado Iniciamos o Apache: "# /usr/local/etc/rc.d/apache22 start " 11-Caso de algum dos erros Referidos abaixo a Resolução é facil: [Wed Mar 10 14:29:47 2010] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "KentosMt2.com.pt" OU : [Thu Mar 11 11:44:59 2010] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "KentosMt2" Teremos que editar o ficheiro localizado em /etc/hosts: Abrimos, E no fim do ficheiro, na linha abaixo das ultimas palavras escritas escrevemos: 127.0.0.1 localhost 127.0.0.1 KentosMt2.com.pt KentosMt2 Fechar e Guardar. (Onde diz kentosmt2.com.pt é o vosso "site", onde diz KentosMt2 é o nome da vossa maquina). Essa configuração é referente ao erro exibido no arquivo /var/log/httpd-error.log Agora depois de resolvido é so por isto on novamente: Digitamos: # /usr/local/etc/rc.d/apache22 start Para testar: # lynx localhost #Créditos : NeKo http://cyber-gamers.org/public/style_emoticons/default/451960.gif http://cyber-gamers.org/public/style_emoticons/default/bfuf.gif 1 3 Karbust, luizgmencucini, 保羅·蓋伊 and 1 other reacted to this Share this post Link to post Share on other sites
Desmarcado 5 Posted May 12, 2013 Vai Ajudar muita gente !Obrigado por partilhares com a Comunidade !Cumprimentos. http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
-điѳgѳ૮ѳ૨ท© 23 Posted May 12, 2013 Vai Ajudar muita gente ! Obrigado por partilhares com a Comunidade ! Cumprimentos. http://cyber-gamers.org/public/style_emoticons/default/451960.gif Obg , sorry por não ter posto cor nas letras . Share this post Link to post Share on other sites
保羅·蓋伊 55 Posted May 12, 2013 Obrigado levas + 1 1 -điѳgѳ૮ѳ૨ท© reacted to this Share this post Link to post Share on other sites