Congratulations! You have completed the upgrade process. MachForm version 2 is now installed."; }else{ $install_message = "An error has occured during upgrade."; } $state = 'install_report'; }else{ //do a pre installation check $state = 'show_preinstall_check'; //check for PHP version if(version_compare(PHP_VERSION,"4.3.0",">=")){ $is_php_version_passed = true; }else{ $is_php_version_passed = false; $pre_install_has_error = true; } //check for MySQL version if(version_compare(mysql_get_server_info(),"4.1.0",">=")){ $is_mysql_version_passed = true; }else{ $is_mysql_version_passed = false; $pre_install_has_error = true; } //check for MySQL user,password and database existance if(empty($mysql_connect_error)){ $is_mysql_connect_passed = true; }else{ $is_mysql_connect_passed = false; $pre_install_has_error = true; } if(empty($mysql_select_db_error)){ $is_mysql_select_db_passed = true; }else{ $is_mysql_select_db_passed = false; $pre_install_has_error = true; } //check for data folder permission if(is_writable(DATA_DIR)){ $is_data_dir_writable = true; }else { $is_data_dir_writable = false; $pre_install_has_error = true; $data_dir_writable_error = "MachForm require read and write access to this folder. Please set the correct permission."; } //check for current tables, make sure that version 2 is not installed already $query = "select form_review from ap_forms limit 1"; mysql_query($query); $error_msg = mysql_error(); if(empty($error_msg)){ $is_version2_already_installed = true; $pre_install_has_error = true; $version2_already_installed_error = "Your installation already has the most recent version (Version 2)."; }else{ $is_version2_already_installed = false; } if($pre_install_has_error){ $pre_install_message = "Your system does not match the minimum requirements necessary. Please take the appropriate actions to correct the errors."; }else{ $pre_install_message = "Your system passed the minimum requirements necessary. You can now start the upgrade process."; } } } } $hide_nav = true; ?>

MachForm Installer Error

Please fix the following error before you can continue the installation process:


  • There doesn't seem to be a config.php file. We need this before we can get started.



    In the base directory of your installation you'll find a file called config-empty.php. Open this file and fill in the required database information.



    After the details are filled in you must rename the file config.php before continuing.



MachForm 2.0 Pre-Upgrade Check


No Previous Version of MachForm Found

Please follow the step below to be able to continue:


  • In order to upgrade to version 2.0, you need to have version 1.2 installed.


    Make sure to double check your config.php file for any error or typo.


    If this is the first time you use MachForm, then go to the installer page instead.



MachForm Upgrade Report

  • Important: Please delete this installer file (upgrade.php) now.

    After deleting this file, you can login to MachForm admin panel