XF 2.1 Xenforo 1.5 to 2.1 upgrade saying my PHP Version is too old

lksdiego

Member
ERROR message from install directory:

PHP 5.6.0 or newer is required. 5.4.45 does not meet this requirement. Please ask your host to upgrade PHP.

My PHP Admin pages:


Web server
  • cpsrvd 11.78.0.39
  • Database client version: libmysql - 5.1.73
  • PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
  • PHP version: 7.2.7


How do I get around this one? :)
 
You may have an entry in the .htaccess file which is setting an explicit PHP version.
I've been fooled this way before. cPanel has an annoying habit of inserting lines like this into .htaccess:

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
On many/most servers, it's not even necessary and if you later change the PHP version it seems that this line in .htaccess will override server settings.
 
Top Bottom