Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1939

Administration Joomla! 5.x • Error on PHP version

$
0
0
Hello,

On my Joomla 5.2.2 website, I have the following script:

<?php
echo 'Versão do PHP: ' . phpversion();
?>


It returns:
Versão do PHP: 7.3.33

On MultiPHP Manager, the site is configured to use PHP 8.1.

I've tried to add the following to .htaccess:

AddHandler application/x-httpd-php81 .php


But, by doing this, whenever any page of the site is open a file is downloaded with:

Code:

<?php/** * @package    Joomla.Site * * @copyright  (C) 2005 Open Source Matters, Inc. <https://www.joomla.org> * @license    GNU General Public License version 2 or later; see LICENSE.txt */// NOTE: This file should remain compatible with PHP 5.2 to allow us to run our PHP minimum check and show a friendly error message// Define the application's minimum supported PHP version as a constant so it can be referenced within the application.define('JOOMLA_MINIMUM_PHP', '8.1.0');if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) {    die(        str_replace(            '{{phpversion}}',            JOOMLA_MINIMUM_PHP,            file_get_contents(dirname(__FILE__) . '/includes/incompatible.html')        )    );}/** * Constant that is checked in included files to prevent direct access. * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php';
Can anyone help?

Statistics: Posted by tigger — Mon Dec 09, 2024 6:38 pm



Viewing all articles
Browse latest Browse all 1939

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>