Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/10/2012, 12:40
kevin_1801
 
Fecha de Ingreso: julio-2008
Mensajes: 18
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: Novato en php con problemas al instalar aplicación

Gracias por su pronta respuesta.
El archivo config.php se encuentra en la carpeta correcta.
Tal vez observando el archivo se entienda mejor el problema.

Warning: shell_exec() has been disabled for security reasons in /home/u212650371/public_html/instalador/install.php on line 3


Este es el archivo install.php

<?

$ejecuta = `pwd`;
$ruta_base = substr($ejecuta,0,strlen($ejecuta)-11);

/**************************************************
* VALIDAMOS LA EXISTENCIA DEL ARCHIVO config.php *
**************************************************/
$ruta_config = $ruta_base . "/config/config.php";
$existe_config = file_exists($ruta_config);

if ($existe_config)
{
require("../config/config.php");
require ("$funciones_php");
require ("$cabeceras_php");
require ("$errores_php");
pinta_head_install();
pinta_cabecera_install($menu_principal,$servicio,$ id_sesion);
?>
<form name="frm_install" action="" method="POST" enctype="multipart/form-data">
<center>
<br>
<table width="60%" cellpadding=15 cellspacing=5 border=10>
<tr>
<td width="100%" class="texto"><center><h3><b>Instalación del Sistema Agora</b></h3></center>
Verifique si los siguientes datos son correctos:<br><br>
<table width="100%" border="1">
<tr>
<td class="texto"><b><center>Nombre</center></b></td>
<td class="texto"><b><center>Variable</center></b></td>
<td class="texto"><b><center>Valor</center></b></td>
</tr>
<tr>
<td class="texto">Servidor</td>
<td class="texto">$host</td>
<td class="texto"><?echo $host?></td>
</tr>
<tr>
<td class="texto">Usuario de Base de datos</td>
<td class="texto">$usuario_bd</td>
<td class="texto"><?echo $usuario_bd?></td>
</tr>
<tr>
<td class="texto">Password usuario de BD</td>
<td class="texto">$pass_bd</td>
<td class="texto"><?echo $pass_bd?></td>
</tr>
<tr>
<td class="texto">Esquema de Bd</td>
<td class="texto">$database</td>
<td class="texto"><?echo $database?></td>
</tr>
<tr>
<td class="texto">Usuario administrador</td>
<td class="texto">$usu_admin</td>
<td class="texto"><?echo $usu_admin?></td>
</tr>
<tr>
<td class="texto">Password usuario administrador</td>
<td class="texto">$pass_admin</td>
<td class="texto"><?echo $pass_admin?></td>
</tr>
</table>
<br><br>
Ingrese la contraseña del usuario administrador del MySQL <b>(root)</b> para crear la instancia<br>
y las tablas del sistema:
<br><br><br>
Contraseña del root: <input type="password" name="pass">
<br><br>
<center>
<input type="button" value="Crear" Onclick="fSubmitIns(document.frm_install,'ejecuta. php')">
</center>
</td>
</tr>
</table>

</center>
</form>
<?
}else
{
?>
<br> <br>
<br> <br>
<input type="hidden" name="datos_ins" value="">
<center>
<br>
<table width="60%" cellpadding=15 cellspacing=5 border=10>
<tr>
<td width="100%" class="texto"><center><h3><b>Instalación del Sistema Agora</b></h3></center><br>
<br>
<center><B>SE PRODUJO UN ERROR</B><BR><BR> No se encuentra el archivo de configuración /config/config.php</center>
<br><br>
</td>
</tr>
</table>
</center>
<?
}
?>
</body>
</html>