// Copyright (c) 2002 - 2005 High5! // Licensed under GPL for more info check GPL-LICENSE.TXT // // File: index.php // // Template File: -none- // // Template Variables: // // -none- // // Form POST \ GET Variables: // // -none- // ?> Postfix Admin Setup Checker

Postfix Admin Setup Checker 1.0.0

Running software:

= 5) $phpversion = 5; print "- PHP version " . phpversion () . "
\n"; } else { print "

  • Unable to check for PHP version. (missing function: phpversion())
    \n"; } print "

    \n"; // // Check for Apache version // if ($f_apache_get_version == 1) { print "- " . apache_get_version() . "

    \n"; } else { print "

  • Unable to check for Apache version. (missing function: apache_get_version())
    \n"; } print "

    \n"; print "Checking for dependencies:
    \n"; print "

    \n"; // // Check for Magic Quotes // if ($f_get_magic_quotes_gpc == 1) { if (get_magic_quotes_gpc () == 1) { print "- Magic Quotes: ON

    \n"; } else { print "

  • Warning: Magic Quotes: OFF (using internal function!)

    \n"; } } else { print "

  • Unable to check for Magic Quotes. (missing function: get_magic_quotes_gpc())
    \n"; } print "

    \n"; // // Check for config.inc.php // if ($file_config == 1) { print "- Depends on: presence config.inc.php - OK
    \n"; } else { print "

  • Error: Depends on: presence config.inc.php - NOT FOUND
    \n"; print "Create the file.
    "; print "For example:
    \n"; print "
    % cp config.inc.php.sample config.inc.php
    \n"; $error =+ 1; } print "

    \n"; // // Check if there is support for at least 1 database // if (($f_mysql_connect == 0) and ($f_mysqli_connect == 0) and ($f_pg_connect == 0)) { print "

  • Error: There is no database support in your PHP setup
    \n"; print "To install MySQL 3.23 or 4.0 support on FreeBSD:
    \n"; print "
    % cd /usr/ports/databases/php$phpversion-mysql/\n";
       print "% make clean install\n";
       print " - or with portupgrade -\n";
       print "% portinstall php$phpversion-mysql
    \n"; if ($phpversion >= 5) { print "To install MySQL 4.1 support on FreeBSD:
    \n"; print "
    % cd /usr/ports/databases/php5-mysqli/\n";
          print "% make clean install\n";
          print " - or with portupgrade -\n";
          print "% portinstall php5-mysqli
    \n"; } print "To install PostgreSQL support on FreeBSD:
    \n"; print "
    % cd /usr/ports/databases/php$phpversion-pgsql/\n";
       print "% make clean install\n";
       print " - or with portupgrade -\n";
       print "% portinstall php$phpversion-pgsql
    \n"; $error =+ 1; } // // MySQL 3.23, 4.0 functions // if ($f_mysql_connect == 1) { print "- Depends on: MySQL 3.23, 4.0 - OK
    \n"; } print "

    \n"; // // MySQL 4.1 functions // if ($phpversion >= 5) { if ($f_mysqli_connect == 1) { print "- Depends on: MySQL 4.1 - OK (change the database_type in config.inc.php!!)
    \n"; } } print "

    \n"; // // PostgreSQL functions // if ($f_pg_connect == 1) { print "- Depends on: PostgreSQL - OK (change the database_type in config.inc.php!!)
    \n"; } print "

    \n"; // // Session functions // if ($f_session_start == 1) { print "- Depends on: session - OK
    \n"; } else { print "

  • Error: Depends on: session - NOT FOUND
    \n"; print "To install session support on FreeBSD:
    \n"; print "
    % cd /usr/ports/www/php$phpversion-session/\n";
       print "% make clean install\n";
       print " - or with portupgrade -\n";
       print "% portinstall php$phpversion-session
    \n"; $error =+ 1; } print "

    \n"; // // PCRE functions // if ($f_preg_match == 1) { print "- Depends on: pcre - OK
    \n"; } else { print "

  • Error: Depends on: pcre - NOT FOUND
    \n"; print "To install pcre support on FreeBSD:
    \n"; print "
    % cd /usr/ports/devel/php$phpversion-pcre/\n";
       print "% make clean install\n";
       print " - or with portupgrade -\n";
       print "% portinstall php$phpversion-pcre
    \n"; $error =+ 1; } print "

    \n"; if ($error == 0) { print "Everything seems fine... you are ready to rock & roll!
    \n"; print "Make sure you delete this setup.php file!
    \n"; print "Also check the config.inc.php file for any settings that you might need to change!
    \n"; print "Click here to go to the admin section (make sure that your .htaccess is setup properly)\n"; } ?>