So I tried uploading Xenforo to my VPS on my domain, but it kept handing me a file with this message included:
I have installed Apache, PHP, MySQL, NGINX. What's the problem?
I've got the newest version of PHP
PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )
Code:
<?php
$phpVersion = phpversion();
if (version_compare($phpVersion, '5.6.0', '<'))
{
die("PHP 5.6.0 or newer is required. $phpVersion does not meet this requirement. Please ask your host to upgrade PHP.");
}
$dir = __DIR__;
require($dir . '/src/XF.php');
XF::start($dir);
if (\XF::requestUrlMatchesApi())
{
\XF::runApp('XF\Api\App');
}
else
{
\XF::runApp('XF\Pub\App');
}
I have installed Apache, PHP, MySQL, NGINX. What's the problem?
I've got the newest version of PHP
PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )