Joomla Pre-instalación
May 5, 2010 by admin
Dejo aqui el archivo joomlatest.php para quien quiera comprobar si su servidor cumple los requisitos de Joomla.
O os bajais el php direcamente o copiais el codigo que dejo aqui en un bloc de notas y le cambiais el nombre a joomlatest.php.
http://erikcrane.com/fotos/joomlatest.rar
<?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”, 0×0001 );
define( “_MOS_ALLOWHTML”, 0×0002 );
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 “”;
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>Joomla – Web Installer</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
</head>
<body>
<p><strong>Pre-installation check</strong></p>
<p>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.</p>
<table cellpadding=”5″ bordercolor=”#CCCCCC” bgcolor=”#FFFFCC”>
<tr>
<td>
PHP version >= 4.1.0
</td>
<td align=”left”>
<?php echo phpversion() < ’4.1′ ? ‘<b><font color=”red”>No</font></b>’ : ‘<b><font color=”green”>Yes</font></b>’;?>
</td>
</tr>
<tr>
<td>
– zlib compression support
</td>
<td align=”left”>
<?php echo extension_loaded(‘zlib’) ? ‘<b><font color=”green”>Available</font></b>’ : ‘<b><font color=”red”>Unavailable</font></b>’;?>
</td>
</tr>
<tr>
<td>
– XML support
</td>
<td align=”left”>
<?php echo extension_loaded(‘xml’) ? ‘<b><font color=”green”>Available</font></b>’ : ‘<b><font color=”red”>Unavailable</font></b>’;?>
</td>
</tr>
<tr>
<td>
– MySQL support
</td>
<td align=”left”>
<?php echo function_exists( ‘mysql_connect’ ) ? ‘<b><font color=”green”>Available</font></b>’ : ‘<b><font color=”red”>Unavailable</font></b>’;?>
</td>
</tr>
<tr>
<td>
Session save path
</td>
<td align=”left”>
<b><?php echo (($sp=ini_get(‘session.save_path’))?$sp:’Not set’); ?></b>,
<?php echo is_writable( $sp ) ? ‘<b><font color=”green”>Writeable</font></b>’ : ‘<b><font color=”red”>Unwriteable</font></b>’;?>
</td>
</tr>
</table>
<p><strong>Recommended settings:</strong></p>
<p>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 </p>
<table bgcolor=”#FFFFCC”>
<tr>
<td>
Directive
</td>
<td>
Recommended
</td>
<td>
Actual
</td>
</tr>
<?php
$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) {
?>
<tr>
<td><?php echo $phprec[0]; ?>:</td>
<td><?php echo $phprec[2]; ?>:</td><
<td>
<?php
if ( get_php_setting($phprec[1]) == $phprec[2] ) {
?>
<font color=”green”><b>
<?php
} else {
?>
<font color=”red”><b>
<?php
}
echo get_php_setting($phprec[1]);
?>
</b></font>
<td>
</tr>
<?php
}
?>
</table>
<p><a href=”http://www.joomla.org” target=”_blank”>Joomla</a> is Free Software released under the GNU/GPL License. </p>
</body>
</html>