Kumbia Php en Servidor Windows (IIS)

125 views
Skip to first unread message

EberOrtiz

unread,
Jul 9, 2015, 12:59:52 PM7/9/15
to kum...@googlegroups.com
Hola Kumbieros php tengo un problema con kumbia en servidor IIS, trabaje con Kumbia para linux con .htaccess y anda de maravilla,  pero hoy quise correr en servidor windows y me doy con el problema que no funciona, no se si alguen tiene la correcta configuracion para el web.config estaria muy agradesido que pudea compartir. yo estoy usando esta configuracion.

<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
    <system.webServer>
        <rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
 <match url="^$" ignoreCase="false" />
 <action type="Rewrite" url="default/public/" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
 <match url="(.*)" ignoreCase="false" />
 <action type="Rewrite" url="default/public/{R:1}" />
</rule>
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^$" ignoreCase="false" />
<action type="Rewrite" url="public/" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<action type="Rewrite" url="public/{R:1}" />
</rule>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?_url=/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
    </system.webServer>
 </configuration>

Con lo cual al iniciar el sistema todo bien, pero cuando quero loguearme ya no coge los estilos y no envia los parametros, estare agradecido sy alguien tiene alguna solucion

Noemi Barahona

unread,
Aug 7, 2015, 5:24:02 PM8/7/15
to KumbiaPHP Framework
Hola yo tambien estoy intentando mudar mi sitio igual a IIS y tengo el mimo problema con las urls, ya lograste avanzar con algo? y podrias ayudarme??
Saludos

Eber Ortiz Mas

unread,
Aug 7, 2015, 10:37:00 PM8/7/15
to kum...@googlegroups.com
Yo solucione de esta forma, la estructura de las carpetas de esta forma..
Imagem inline 1

el web.config 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions>
                        <!--# Si esta mod_rewrite habilitado-->
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php?_url=/{R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

en el index.php principal

<?php
/**
 * KumbiaPHP web & app Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to lic...@kumbiaphp.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2005-2010 Kumbia Team (http://www.kumbiaphp.com)
 * @license    http://wiki.kumbiaphp.com/Licencia     New BSD License
 */

// Carga el index.php de public
//include 'default/public/index_sin_mod_rewrite.php';
include 'default/public/index.php';

en el default/public/index.php  modifique de esta forma es la unica forma como me funciono, porque no encontre otra solucion, y nadie respondio con una ayuda espero te pude ayudar de esta manera.

<?php
/**
 * KumbiaPHP web & app Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to lic...@kumbiaphp.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2005-2015 Kumbia Team (http://www.kumbiaphp.com)
 * @license    http://wiki.kumbiaphp.com/Licencia     New BSD License
 */

/**
 * Indicar si la aplicacion se encuentra en produccion
 * directamente desde el index.php
 */
//define('PRODUCTION', TRUE);

/**
 * Establece polí­tica de informe de errores
 */
//error_reporting(0); // Usar este en producción, no envia errores
error_reporting(E_ALL ^ E_STRICT); // Comentar en producción
//comentar la siguiente linea en producción
ini_set('display_errors', 'On');

/**
 * Define marca de tiempo en que inicio el Request
 */
define('START_TIME', microtime(1));

/**
 * Define el APP_PATH
 *
 * APP_PATH:
 * - Ruta al directorio de la aplicación (por defecto la ruta al directorio app)
 * - Esta ruta se utiliza para cargar los archivos de la aplicacion
 */
define('APP_PATH', dirname(dirname(__FILE__)) . '/app/');

/**
 * Define el CORE_PATH
 *
 * CORE_PATH:
 * - Ruta al directorio que contiene el núcleo de Kumbia (por defecto la ruta al directorio core)
 */
define('CORE_PATH', dirname(dirname(APP_PATH)) . '/core/');

/**
 * Define el PUBLIC_PATH
 *
 * PUBLIC_PATH:
 * - Path para genera la Url en los links a acciones y controladores
 * - Esta ruta la utiliza Kumbia como base para generar las Urls para acceder de lado de
 *   cliente (con el navegador web) y es relativa al DOCUMENT_ROOT del servidor web
 */
if ($_SERVER['QUERY_STRING']) {
    //define('PUBLIC_PATH', substr(urldecode($_SERVER['REQUEST_URI']), 0, - strlen(urldecode($_SERVER['QUERY_STRING'])) + 6));
    //define('PUBLIC_PATH', 'http://localhost/kumbiaphp/');
} else {
    //define('PUBLIC_PATH', 'http://localhost/kumbiaphp/index.php');
    //define('PUBLIC_PATH', $_SERVER['REQUEST_URI']);
}
define('PUBLIC_PATH', 'http://www.kumbiaphp.bs/');

/**
 * Obtiene la url
 */
$url = isset($_GET['_url']) ? $_GET['_url'] : '/';

/**
 * Carga el gestor de arranque
 * Por defecto el bootstrap del core
 *
 * @see Bootstrap
 */
require APP_PATH . 'libs/bootstrap.php'; //bootstrap de app
//require CORE_PATH . 'kumbia/bootstrap.php'; //bootstrap del core



--
Viva KumbiaPHP Framework!
http://www.kumbiaphp.com/
Ha recibido este mensaje porque está suscrito a Grupo "KumbiaPHP Framework" de Grupos de Google.
Para obtener más opciones, visita este grupo en http://groups.google.com/group/kumbia?hl=es.
---
Has recibido este mensaje porque estás suscrito al grupo "KumbiaPHP Framework" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a kumbia+un...@googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.

Ivan Lombardi

unread,
Jul 29, 2022, 5:29:38 PM7/29/22
to KumbiaPHP Framework
Buenas  Vicod, espero que te encuentres bien, te escribo para ver si me orientas en una tarea que se me ha asignado es migrar un sitio o aplicativo desarrollado en Kumbia v 0.5, actualmente esta en servidor linux con Wamserver pero me asignaron la tarea de migrarlos a IIS en windows server, la verdad llevo tres días tratando de enterder este framework pues soy nuevo en el. La version 1.1.5 lei su documentacion y puede leantarla el kumbia en iis pero esta version v 0.5 es muy diferente agradezco me colabores con cualquier ayuda gracias de ante mano

Ivan Lombardi

unread,
Jul 29, 2022, 5:29:38 PM7/29/22
to KumbiaPHP Framework
Buenas  EberOrtiz, espero que te encuentres bien, te escribo para ver si me orientas en una tarea que se me ha asignado es migrar un sitio o aplicativo desarrollado en Kumbia v 0.5, actualmente esta en servidor linux con Wamserver pero me asignaron la tarea de migrarlos a IIS en windows server, la verdad llevo tres días tratando de enterder este framework pues soy nuevo en el. La version 1.1.5 lei su documentacion y puede leantarla el kumbia en iis pero esta version v 0.5 es muy diferente agradezco me colabores con cualquier ayuda gracias de ante mano
Reply all
Reply to author
Forward
0 new messages