0

Al ingresar al sitio web me descarga el index.php en vez de mostrarme el contenido del sitio. Estoy utilizando joomla y este es el contenido del index.

<?php

define('JOOMLA_MINIMUM_PHP', '5.3.10');

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
{
die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run 
this version of Joomla!');
}

// Saves the start time and memory usage.
$startTime = microtime(1);
$startMem  = memory_get_usage();


define('_JEXEC', 1);

if (file_exists(__DIR__ . '/defines.php'))
{
include_once __DIR__ . '/defines.php';
}

if (!defined('_JDEFINES'))
{
define('JPATH_BASE', __DIR__);
require_once JPATH_BASE . '/includes/defines.php';
}

require_once JPATH_BASE . '/includes/framework.php';

// Set profiler start time and memory usage and mark afterLoad in the 
profiler.
JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, 
$startMem)->mark('afterLoad') : null;

// Instantiate the application.
$app = JFactory::getApplication('site');

// Execute the application.
$app->execute();

?>
2
  • Soy nuevo en este foro, lo inserté completo pero no se porque aparece reducido. el 9 dic. 2017 a las 23:40
  • Acabo de editar la pregunta, creo que ya puedes visualizar con mas detalle el error que me muestra el index.php que descarga mi equipo cuando decido acceder al sitio desde su direccion de dominio para visualizar el contenido. el 9 dic. 2017 a las 23:48

2 respuestas 2

1

tiene pinta de que no esta funcionando php, yo empezaría mirando si te carga algo como...

archivoDePrueba.php

<?php echo "hola";?>

1
  • Así es, no está funcionando php unicamente con ese sitio en el servidor. el 12 dic. 2017 a las 19:20
0

El problema es que no has configurado correctamente Apache para poder usar PHP.

Si usas Linux y Apache2 deberías tener en el directorio /etc/apache2/mods-enabled/ los siguientes ficheros

/etc/apache2/mods-enabled/php5.conf

/etc/apache2/mods-enabled/php5.load

3
  • No existe ese directorio en el servidor que estoy trabajando el 11 dic. 2017 a las 16:17
  • Empecemos por lo inicial... ¿Que Sistema Operativo tienen el servidor? ¿Tienes instalado Apache y PHP? ¿Tienes instalado LAMP/WAMP/XAMP?
    – luisgulo
    el 11 dic. 2017 a las 17:26
  • CENTOS 6.9 xen, se tiene instalado Apache/2.4.29 (cPanel) OpenSSL/1.0.2m, versiones de php ea-php54, 55, 56, 70 el 11 dic. 2017 a las 22:28

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge you have read our privacy policy.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.