Page 1 of 1

Can't install 3.2 - PHP Error?

Posted: Sun Dec 17, 2017 5:30 pm
by Nordikota
I'm trying to install a fresh version of 3.2, but when I try to run the install I get a message saying "PHP5.4+ Required". My host is running PHP 5.6.
Any ideas what I need to do?

Re: Can't install 3.2 - PHP Error?

Posted: Sun Dec 17, 2017 11:23 pm
by straightlight
Upgrade issues with Apache. Contact your host to resolve this problem and provide the error message that you are noticing from the Opencart installation.

Re: Can't install 3.2 - PHP Error?

Posted: Tue Dec 19, 2017 8:59 am
by swguy
An issue with Apache seems *really* unlikely. I would guess that for some reason, in the subdir you are running opencart in (or at least the installer in), you are running an older version of php. If you can just run a small script like this:

Code: Select all

<?php
echo   phpversion(); 
you can figure out what version you are actually running. Remember php.ini and .htaccess files can wind up changing your php version in a single directory.

Re: Can't install 3.2 - PHP Error?

Posted: Tue Dec 19, 2017 9:03 am
by straightlight
Even though the phpversion() can be ran, it does not cure against the fact that two different versions are running on the same environment. The first post is about using a higher version already while Opencart claims to detect a lower version of PHP which Opencart requires a minimum PHP version of 5.4.

Re: Can't install 3.2 - PHP Error?

Posted: Wed Dec 20, 2017 2:02 am
by Nordikota
I'm definitely running PHP v5.6. I don't get an error message, just a white screen that says "PHP5.4+ Required" in the top left hand corner, when I try to go to the install. I am on a sub domain though - is that the problem?

Re: Can't install 3.2 - PHP Error?

Posted: Wed Dec 20, 2017 2:04 am
by straightlight
Nordikota wrote:
Wed Dec 20, 2017 2:02 am
I'm definitely running PHP v5.6. I don't get an error message, just a white screen that says "PHP5.4+ Required" in the top left hand corner, when I try to go to the install. I am on a sub domain though - is that the problem?
What does the access logs indicates on this recent event from your host console - > error logs?

Re: Can't install 3.2 - PHP Error?

Posted: Wed Dec 20, 2017 4:39 am
by Nordikota
I think I've fixed it. the sub domain needed a .htaccess file that stated PHP version. Not sure if this is Host related or OC related. But it fixed the issue.