chdir('../');
$error = false;
$warn = false;
echo('This script will test your configurations and try to tell you a solution.
All configurations are located in /inc folder and appears as config.*.php
');
echo('
- Testing inc/config.php
(if the script stops here, there are a parse problem with your file, eg you have misstyped some " ou ;, try getting a fresh copy and re-editing it)
...');
@include('inc/config.php');
if($ALL_OK) echo('PASSED
');
else die('FAILED
There are problems with your config.php, try getting a fresh copy and re-editing it
');
echo('
- Testing your $temporary_directory variable... ');
$localpath = realpath('./');
$temppath = realpath($temporary_directory);
if(!is_writable($temporary_directory)) {
echo('FAILED
The path given in $temporary_directory points to a folder that is no writable
The user wich your webserver runs on (apache in *nix or IUSR_name in windows) MUST have rights to create folder and files
on this directory. try chmod or Properties dialog');
$error = true;
} elseif(substr($temppath, 0, strlen($localpath)) == $localpath) {
echo('WARNING
The path given in $temporary_directory points to a folder inside the main folder
Eg. main folder is /var/html/uebimiau and temp folder is /var/html/uebimiau/tmp
There are security issues using this configuration, please choose a non-shared folder to store temporary files
/var/uebimiau is a good choice
');
$warn = true;
} else {
echo('PASSED
');
}
$phpver = phpversion();
$phpver = doubleval($phpver[0].".".$phpver[2]);
echo('
- Testing your PHP version... ');
if($phpver >= 4.1) echo('PASSED
');
else {
echo('FAILED
You are using PHP version '.$phpver.',
there are SERIOUS security risks using versions below 4.1. UebiMiau will not work properly with your version, please update now.
');
$error = true;
}
$tempSize =
str_replace('K', '*1024',
str_replace('M', '*1024*1024',
str_replace('G', '*1024*1024*1024',
ini_get('memory_limit'))));
$memoryLimit = 8*1024*1024; //default is 8Mb
if($tempSize) eval("\$memoryLimit = $tempSize;");
echo('
- Testing your memory limits... ');
if($memoryLimit < 8) {
echo('FAILED
PHP.ini\'s memory_limit must be at least 8M (We recommend 64M (64 MegaBytes)
');
$error = true;
} elseif($memoryLimit >= 8 && $memoryLimit < 64) {
echo('WARNING
PHP.ini\'s memory_limit should be at least 64M (64 MegaBytes)
');
$warn = true;
} else {
echo('PASSED
');
}
echo('
- Testing server installation... ');
if(ini_get('safe_mode')) {
echo('WARNING
PHP.ini\'s safe_mode is on. You may have problems with this configuration
');
$warn = true;
} else {
echo('PASSED
');
}
echo('
');
if($error) {
?>
Your system is not ready to run UebiMiau.
Please fix all FAILED topics and run this page again
} else {
?>
Your system appears to be ready to run UebiMiau.
if($warn) {
?>
There are some WARNINGS that should be fixed before you deploy your webmail.
}
?>
Before you start using, make sure you've correctly configured your $smtp_server
variable. If you will use an external SMTP server, please make sure you will not need a SMTP Authentication.
In positive case , use the $use_password_for_smtp variable, otherwise you will
receive a "Verify your relay rules" error message while sending mails
To start using your webmail, please delete the /install folder AND CLICK HERE TO CONTINUE
}
?>