Foros del Web » Programando para Internet » PHP »

PHP OO Paginas con .php en solo texto

Estas en el tema de Paginas con .php en solo texto en el foro de PHP en Foros del Web. Hola buenas, tengo un servidor web con RHEL 6.0 con apache 2.2 y php 5.3 y tengo un problema con las paginas que son .php, ...
  #1 (permalink)  
Antiguo 30/12/2010, 13:27
 
Fecha de Ingreso: julio-2008
Mensajes: 7
Antigüedad: 15 años, 8 meses
Puntos: 0
Exclamación Paginas con .php en solo texto

Hola buenas, tengo un servidor web con RHEL 6.0 con apache 2.2 y php 5.3 y tengo un problema con las paginas que son .php, me dejas visualizarlas solo en modo de texto. Ejemplo quiero instalar el phpmyadmin1 y cuando ingreso a www.misitio.com/phpmyadmin1 me muestra lo siguente:


<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* forms frameset
*
* @version $Id$
* @uses $GLOBALS['strNoFrames']
* @uses $GLOBALS['cfg']['QueryHistoryDB']
* @uses $GLOBALS['cfg']['Server']['user']
* @uses $GLOBALS['cfg']['DefaultTabServer'] as src for the mainframe
* @uses $GLOBALS['cfg']['DefaultTabDatabase'] as src for the mainframe
* @uses $GLOBALS['cfg']['NaviWidth'] for navi frame width
* @uses $GLOBALS['collation_connection'] from $_REQUEST (grab_globals.lib.php)
* or common.inc.php
* @uses $GLOBALS['available_languages'] from common.inc.php (select_lang.lib.php)
* @uses $GLOBALS['db']
* @uses $GLOBALS['charset']
* @uses $GLOBALS['lang']
* @uses $GLOBALS['text_dir']
* @uses $_ENV['HTTP_HOST']
* @uses PMA_getRelationsParam()
* @uses PMA_purgeHistory()
* @uses PMA_generate_common_url()
* @uses PMA_VERSION
* @uses session_write_close()
* @uses time()
* @uses PMA_getenv()
* @uses header() to send charset
* @package phpMyAdmin
*/

/**
* Gets core libraries and defines some variables
*/
require_once './libraries/common.inc.php';

/**
* Includes the ThemeManager if it hasn't been included yet
*/
require_once './libraries/relation.lib.php';

// free the session file, for the other frames to be loaded
session_write_close();

// Gets the host name
if (empty($HTTP_HOST)) {
if (PMA_getenv('HTTP_HOST')) {
$HTTP_HOST = PMA_getenv('HTTP_HOST');
} else {
$HTTP_HOST = '';
}
}


// purge querywindow history
$cfgRelation = PMA_getRelationsParam();
if ($GLOBALS['cfg']['QueryHistoryDB'] && $cfgRelation['historywork']) {
PMA_purgeHistory($GLOBALS['cfg']['Server']['user']);
}
unset($cfgRelation);


/**
* pass variables to child pages
*/
$drops = array('lang', 'server', 'convcharset', 'collation_connection',
'db', 'table');

foreach ($drops as $each_drop) {
if (array_key_exists($each_drop, $_GET)) {
unset($_GET[$each_drop]);
}
}
unset($drops, $each_drop);

if (! strlen($GLOBALS['db'])) {
$main_target = $GLOBALS['cfg']['DefaultTabServer'];
} elseif (! strlen($GLOBALS['table'])) {
$_GET['db'] = $GLOBALS['db'];

.................................................. .. etc etc etc.


Y eso mismo me pasa con todos los sitios que tengo en php.

Yo configure en el httpf.conf

DirectoryIndex index.php Index.html

Alguien me puede ayudar??


Gracias
Tender :)
  #2 (permalink)  
Antiguo 30/12/2010, 14:29
Avatar de Lord_Jose  
Fecha de Ingreso: abril-2010
Ubicación: El antiguo estado federal de Honduras
Mensajes: 20
Antigüedad: 14 años
Puntos: 1
Respuesta: Paginas con .php en solo texto

si es en solo modo de texto significa que hay un problema con la configuracion, o sea cuando el servidor no sabe con que tipo de paginas esta tratando, y en ese caso, no lo puede mandar al interprete de php

proba a ver si tenes esta linea en tu configuracion de apache:

AddType application/x-httpd-php .phtml .pwml .php5 .php4 .php3 .php2 .php .inc

Etiquetas: Ninguno
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:52.