|
Página 3 de 4
Chequeando la configuración del server
He creado un script (a partir de los archivos de instalación de Joomla) para
que puedas testear el servidor donde correrá el sistema. Solo copia y pega el
siguiente código en un archivo de texto plano y lo guardas como joomlatest.php
(te recomiendo que lo hagas en el block de notas), luego lo subes al
servidor colocándolo en el directorio raiz de los documentos accesibles desde
Internet (generalmente /public_html/ o /www/
o /httpdocs/ en servidores web comerciales), y a continuación
lo ejecutas llamando al script desde un navegador así: http://www.dominio.com/joomlatest.php
/** * @version $Id: common.php 85 2005-09-15 23:12:03Z eddieajau $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ error_reporting( E_ALL ); header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 /** * Utility function to return a value from a named array or a specified default */ define( "_MOS_NOTRIM", 0x0001 ); define( "_MOS_ALLOWHTML", 0x0002 ); function mosGetParam( &$arr, $name, $def=null, $mask=0 ) { $return = null; if (isset( $arr[$name] )) { if (is_string( $arr[$name] )) { if (!($mask&_MOS_NOTRIM)) { $arr[$name] = trim( $arr[$name] ); } if (!($mask&_MOS_ALLOWHTML)) { $arr[$name] = strip_tags( $arr[$name] ); } if (!get_magic_quotes_gpc()) { $arr[$name] = addslashes( $arr[$name] ); } } return $arr[$name]; } else { return $def; } } function get_php_setting($val) { $r = (ini_get($val) == '1' ? 1 : 0); return $r ? 'ON' : 'OFF'; } echo ""; ?>
Joomla - Web Installer
Pre-installation check
If any of these items are highlighted in red then please take actions to correct them. Failure to do so could lead to your Joomla installation not functioning correctly.
PHP version >= 4.1.0
|
No' : 'Yes';?>
|
- zlib compression support
|
Available' : 'Unavailable';?>
|
- XML support
|
Available' : 'Unavailable';?>
|
- MySQL support
|
Available' : 'Unavailable';?>
|
Session save path
|
, Writeable' : 'Unwriteable';?>
|
Recommended settings:
These settings are recommended for PHP in order to ensure full compatibility with Joomla.
However, Joomla will still operate if your settings do not quite match the recommended
Directive
|
Recommended
|
Actual
|
$php_recommended_settings = array(array ('Safe Mode','safe_mode','OFF'), array ('Display Errors','display_errors','ON'), array ('File Uploads','file_uploads','ON'), array ('Magic Quotes GPC','magic_quotes_gpc','ON'), array ('Magic Quotes Runtime','magic_quotes_runtime','OFF'), array ('Register Globals','register_globals','OFF'), array ('Output Buffering','output_buffering','OFF'), array ('Session auto start','session.auto_start','OFF'), );foreach ($php_recommended_settings as $phprec) { ?>
: |
: |
if ( get_php_setting($phprec[1]) == $phprec[2] ) { ?>
} else { ?>
} echo get_php_setting($phprec[1]); ?>
|
| } ?>
Joomla is Free Software released under the GNU/GPL License.
|
La ejecución del script te mostrará en el navegador algo así: | PHP version >= 4.1.0 | Yes | Esto indica que la versión de PHP es la adecuada | | - zlib compression support | Available | Soporte de compresión zlib (funciones de compresión y descompresión de archivos de php) | | - XML support | Available | Soporte para XML | | - MySQL support | Available | Soporte para base de datos Mysql | | Session save path | C:/apache/tmp/, Writeable | Directorio de sesiones escribible y accesible por el usuario de PHP |
Las anteriores indicaciones deben estar en "verde". Si ves alguna advertencia en rojo no podrás instalar Joomla correctamente. Por otra parte, algunas configuraciones de php.ini recomendadas para el funcionamiento de Joomla. Si ves advertencias en rojo aquí, el sistema funcionará igual pero no habrá plena compatibilidad con Joomla | Directive | Recommended | Actual | | Safe Mode: | OFF: | OFF | | | Display Errors: | ON: | ON | | | File Uploads: | ON: | ON | | | Magic Quotes GPC: | ON: | OFF | | | Magic Quotes Runtime: | OFF: | OFF | | | Register Globals: | OFF: | OFF | | | Output Buffering: | OFF: | OFF | | | Session auto start: | OFF: | OFF | |
Voy a aclarar aquí que existen funciones de php para forzar la configuración de php.ini con los valores que deseamos utilizar. No profundizaré en este tema porque escapa al objetivo de este tutorial, pero brevemente afirmo que hay tres formas de cambiar la configuración por defecto que posee php.ini, sin necesidad de acudir al soporte técnico de nuestro hosting: Si PHP está instalado como módulo de Apache sino como CGI. Tenemos la posibilidad de crear nuestro propio archivo php.ini y subirlo en el directorio public_html (donde queremos que surja efecto dicha configuración) - Mediante funciones de PHP llamadas "ini_set", podemos forzar la configuración de PHP con otros valores alternativos a los predeterminados
- Mediante directivas en el archivo .htaccess del servidor Apache. Por ejemplo "php_value magic_quotes_gpc on"
Bueno, esto es muy interesante pero no es el tema que estamos tratando, por eso les recomendaría que si desean profundizar en el tema de configuración de Apache y/o PHP, en Internet hay muchísima documentación donde se analiza a fondo.
|