###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###
###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###
    ,o888b,`?88888--*-#####**************#####-*--88888P',d888o,
  ,8888 888   ?888          Eliel Vieira          888P   888 8888,
  8888888P'    888     Niteroi - RJ - 05/2005     888    `?8888888
  888P'        888      elielvieira@gmail.com     888        `?888
  `88   O     d888    http://elielvieira.go.to    888b     O  88/'
    `?._  _.o88888--*-#####**************#####-*--88888o._  _.P'
###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###
###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###


         Preparando e Configurando um Servidor de Web

# comandos no LINUX CONECTIVA 8

# pacotes que devem estar instalados:
- apache
- linuxconf-apache
- php4
- mod_php4
- openssl-progs

rpm -hiv nome_do_pacote
ou 
rpm -hiv iniciais_do_nome_do_pacote*

# a melhor forma de instala-los:
- instale o linux com 'todos os pacotess''

# configurando e ativando funcoes PHP

vi /etc/httpd/conf/httpd.conf 

# descomente ou acrescente as linhas:

 LoadModule php4_module modules/libphp4.so         linha 274

 AddModule mod_php4.c                              linha 326

 AddType application/x-httpd-php .php              linha 800
 AddType application/x-httpd-php-source .phps      linha 801

# acrescente a esta linha a ref a index.php:
# DirectoryIndex index.html ...                    linha 489

 DirectoryIndex index.php index.html index.wml index.html.var     linha 495

ESC:wq

# reiniciando o servico do apache 

/etc/rc.d/init.d/inet stop
/etc/rc.d/init.d/inet start

/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start

ou

cds
./inet start
./httpd start

ou

service httpd start
service inet start

# edit este arquivo no diretorio padrao para testar o PHP

vi /var/www/default/data.php

<html>
<body>
Hoje  <? print(strftime ("%A, %d de %B de %Y"));?>
<p>
Implementado por elielvieira...
Sua intranet esta funcionando...
Acesse: <a href='http://www.geocities.com/computerlife'><b>Computerlife Informatica</b></a>
<p>
</body>
</html>

ESC:wq

# acesse o modo grafico abra o browser (konqueror)

http://192.168.1.2:80/data.php
ou
http://192.168.1.2/data.php
ou 
http://localhost/data.php


# dica:

- instale o conectiva 8 com a opcao de 'toddos os pacotes'.



# comandos no LINUX CONECTIVA 10

# iniciando servico - somente este comando ja funciona tudo

service apache start

# diretorio padrao

/srv/www/default/html 

# dicas:

vi /etc/apache/httpd.conf 
service apache status
service apache stop
service apache start
service apache restart 

###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###
###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###
    ,o888b,`?88888--*-#####**************#####-*--88888P',d888o,
  ,8888 888   ?888          Eliel Vieira          888P   888 8888,
  8888888P'    888     Niteroi - RJ - 05/2005     888    `?8888888
  888P'        888      elielvieira@gmail.com     888        `?888
  `88   O     d888    http://elielvieira.go.to    888b     O  88/'
    `?._  _.o88888--*-#####**************#####-*--88888o._  _.P'
###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###
###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###mnq###
