impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
501 stars 175 forks source link

ImpressPages fails with Ubuntu 16.04 PHP version #806

Open andrewmeyer opened 8 years ago

andrewmeyer commented 8 years ago

Ubuntu 16.04 has removed php5 support in favor of php7. When loading the page after cloning the repository a message is shown that it cannot find PHP 5.3.3 (or similar). Can this be adapted to accept newer versions of PHP such as PHP7.0 packages provided in the new LTS release of Ubuntu?

jankus commented 8 years ago

Trace exact message and the place where it comes from. From you comment it sounds that message is from initial index.php check:

if ((PHP_MAJOR_VERSION < 5) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 3)) {
    echo 'Your PHP version is: ' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '. To run ImpressPages you need PHP >= 5.3.*';
    exit;
}

If you definitely run PHP7 this shouldn't throw exception.