Autor Tópico: Apache - abre todo errado...  (Lida 2421 vezes)

Offline sottam

  • Usuário Ubuntu
  • *
  • Mensagens: 317
    • Ver perfil
Apache - abre todo errado...
« Online: 05 de Junho de 2008, 08:39 »
bom dia pessoal.... to fazendo um trabalho em asp .... meu professor disse q o linux emula também o inetpub com o apache..... ai resolvi intalar o apache no meu micro ..... dei todas as permissões para escrita e leituta... ai vou no explore e dou o comando.....

http://127.0.0.1/index.asp

Olha como me retorna a Página....

Alguem pode me Ajudar???


Citar

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Loja de Conveniências Mattos</title>
<style type="text/css">
<!--
#Layer1 {
   position:absolute;
   left:835px;
   top:27px;
   width:150px;
   height:32px;
   z-index:1;
}
#Layer2 {
   position:absolute;
   left:441px;
   top:161px;
   width:37px;
   height:23px;
   z-index:2;
}
.style4 {
   font-size: 24px;
   font-weight: bold;
}
.style6 {color: #FFFF00; font-weight: bold; font-size: 24px; }
-->
</style>
</head>

<body>
<table width="100%" border="0">
  <tr>
    <td width="29%" height="229"><p><img src="img/logo.jpg" alt="logo" width="250" height="200" /></p>    </td>
    <td width="25%"><p align="center" class="style4"><a href="cadcli.asp"><img src="img/clientes.png" alt="clientes" width="200" height="150" border="0" /></a></p>    </td>
    <td width="24%"><p align="center" class="style4"><a href="faleconosco.asp"><img src="img/fale-conosco.jpg" alt="fale" width="200" height="150" border="0" /></a></p>    </td>
    <td width="22%"><p align="center" class="style4">Administrador<label></label>
    </p>
    <form id="form1" name="form1" method="post" action="login.asp">
      <label>Login
      <input name="f_usuario" type="text" id="f_usuario" size="20" maxlength="50" />
      </label>
        <p>
          <label>Senha
          <input name="f_senha" type="password" id="f_senha" size="20" maxlength="3" />
</label>
        </p>
        <p>
          <label>
          <input type="submit" value="ok" />
          </label>
          <label>
          <input type="reset" value="Limpar" />
          </label>
        </p>
    </form>
    <p>&nbsp;</p>    </td>
  </tr>
  <tr>
    <td height="28" bgcolor="#3333FF"><div align="center"><span class="style6">.::G&ecirc;neros::.</span></div></td>
    <td colspan="3"><p>&nbsp;</p>    </td>
  </tr>
  <tr>
    <td height="20"><div align="center">
      <!--#include file="CONEXAO.ASP"-->
      <%     
         T.Open "Select * From Tab_Generos Order By Gen_Nome", B, 1,3
         While Not T.EOF
            Response.Write ("<BR><A Href='lista.asp?genero=" & T("Gen_Codigo") & "'>" & T("Gen_nome") & "</a>")
            T.Movenext
         Wend
         T.Close
         B.Close
      %>
</div></td>
    <td colspan="3" rowspan="3"><div align="center">
   
   
   <!--#include file="CONEXAO.ASP"-->
<%
T.Open "Select * From Tab_produtos", B, 1,3
Randomize
T.Move Int(Rnd * T.Recordcount) - 1
If T.Eof Then
Response.Write ("Aproveite nossas promoções. Preços e facilidades ideais para você!")
Else
Response.Write ("<img src='img/" & T("pro_Codigo") & ".jpg' width='300' height='200'>")
Response.Write ("<br>" & T("pro_nome") & "<br>")
Response.Write ("<b>Preço: </b>" & FormatCurrency(T("pro_valor")))
Response.Write ("<BR><A Href='detalhes.asp?codproduto=" & T("pro_Codigo") & "'>Clique aqui para ver maiores detalhes</a>")
End if
T.Close
B.Close
%>
   
   
   
   
   </div></td>
  </tr>
  <tr>
    <td height="28" bgcolor="#3333FF"><div align="center"><span class="style6">.::Busca::.</span></div></td>
  </tr>
  <tr>
    <td height="26"><form id="" name="" method="post" action="lista.asp">
      <label>Produto
      <input name="f_produto" type="text" id="f_produto" />
      </label>
      <label>
      <input type="submit" name="Submit" value="Procurar" />
      </label>
    </form>    </td>
  </tr>
</table>
</body>
</html>



Offline felipeborges

  • Usuário Ubuntu
  • *
  • Mensagens: 651
    • Ver perfil
    • felipe@borges:~# Liberdade não tem Preço!
Re: Apache - abre todo errado...
« Resposta #1 Online: 05 de Junho de 2008, 11:09 »
Se o navegador lhe retorna com o código fonte do arquivo index.asp!?!?!? provavelmente o Apache não está rodando ou não está configurado para o asp.

Tente dar um start no apache para saber se ele está rodando....
Código: [Selecionar]
# apache start
Não sei o ASP, mais o PHP, é necessario "veicular" o PHP ao Apache.

No PHP, usamos:

Código: [Selecionar]
sudo apt-get install apache2 mysql-server php5 php5-mysql (exemplo PHP)

Neste caso php5-mysql, serve para vincular o PHP com o MySQL, o mesmo pode servir para o Apache com o ASP.
Meu blog sobre GNU/Linux
Debian Lenny e Gentoo.

Offline LkS

  • Usuário Ubuntu
  • *
  • Mensagens: 29
  • Visite www.brforum.com.br
    • Ver perfil
    • BR FÓRUM :: O FÓRUM DO BRASIL
Re: Apache - abre todo errado...
« Resposta #2 Online: 07 de Junho de 2008, 22:44 »
Para rodar scripts asp voce precisa ter um servidor windows, linux, ubuntu é para php.

Offline felipeborges

  • Usuário Ubuntu
  • *
  • Mensagens: 651
    • Ver perfil
    • felipe@borges:~# Liberdade não tem Preço!
Re: Apache - abre todo errado...
« Resposta #3 Online: 08 de Junho de 2008, 00:45 »
Tem um software para "rodar" ASP, ñ lembro o nome.
Meu blog sobre GNU/Linux
Debian Lenny e Gentoo.

Offline LkS

  • Usuário Ubuntu
  • *
  • Mensagens: 29
  • Visite www.brforum.com.br
    • Ver perfil
    • BR FÓRUM :: O FÓRUM DO BRASIL
Re: Apache - abre todo errado...
« Resposta #4 Online: 08 de Junho de 2008, 02:55 »
Tem um software para "rodar" ASP, ñ lembro o nome.
Vai rodar asp tão bem quando o wine roda os programas do windows kkkkkkk