debug_mode=ON

Buscar en

 
 

OpenSolaris.WebStack. Verificando instalación.

Escrito por rugi hace 1 años bajo Dominio Público
591 visitas. Etiquetas: webstack, php, opensolaris

En el post pasado logramos instalar el WebStack en OpenSolaris.

En esta ocasión, veremos como verificar que hicimos todo bien.
Para ello, debemos crear un archivo en la siguiente ruta:

/var/apache2/2.2/htdocs/

Veamos primero que contiene la carpeta:
Home apache home

hello.php

<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>My First Web App</title>
    </head>
<body>
<b>Hello, World!</b>
<p>The date and time are <?php echo date ("r"); ?> - isn't that nice? - isn't that nice?</p>
</body>
</html>

Grabamos el archivo con el nombre hello.php, verificamos que se existe en la carpeta indicada:
hello.php en httdocs

Abrimos un browser y vamos a:

 http://localhost/hello.php 

Y el resultado debe ser:

localhost hello.php

Y es todo!!!

 

¡Votalo! 1 votos
¡Compártelo!

        

&nbps;

&nbps;

rugi

Sobre rugi

Isaac Ruiz Guerra es un Consultor de Software radicado en la ciudad de México. Actualmente se dedica a la integración de software. Su lenguaje principal es java... y ahora intenta, simultáneamente, iniciarse con python, groovy y ruby. ¿Más info? http://weblogs.javahispano.org/jh/entry/nos_presentamos_iv

 
Regístrate o haz login para participar.
¿Todavía no conoces debugmodeon?
debugmodeon es la red social para profesionales de la informática
descubre debugmodeon
 

 

© Copyright 2008-2009 debug_mode=ON | Aviso legal | Contacto | FAQ | ¿Quiénes somos? |