Jump to content

Featured Replies

Posted

Why does my php version always revert to 8.1?

image.png

This line of code is added to .htaccess.

# php -- BEGIN cPanel-generated handler, do not edit

# Set the “ea-php81” package as the default “PHP” programming language.

<IfModule mime_module>

AddHandler application/x-httpd-ea-php81 .php .php8 .phtml

</IfModule>

# php -- END cPanel-generated handler, do not edit

In cPanel, the PHP version is set to 8.4.

If I delete the code today, then a few days later it is added again. Is this because I installed the beta version?

My current .htaccess

image.png

Edited by Paras

I don't think that Ipb is adding that code by the looks of it. You can contact your host to check their logs so they will be able to tell you more on the matter.

  • Author

I've contacted my hosting provider, they said it's been fixed, but this keeps happening. So, I think it has something to do with Invision, but I'm not too sure.

  • Author

image.png

This is something you need to take up with your hosting company. We would not do anything at all with your PHP configuration.

 

I've contacted my hosting provider, they said it's been fixed, but this keeps happening. So, I think it has something to do with Invision, but I'm not too sure.

You have 2 instances of php versions there. Can you try to remove the one for php 8.1. and see if the php version will still revert back? There is nothing in Ipb code to cause the revert of the php version. Did you host say how the revert happened in the first place and how did they fix it?

  • Author
 

You have 2 instances of php versions there. Can you try to remove the one for php 8.1. and see if the php version will still revert back? There is nothing in Ipb code to cause the revert of the php version. Did you host say how the revert happened in the first place and how did they fix it?

I have removed the php81 line of code.

He said apachephp, something like that.

Does your Cpanel have the MultiPHP Manager app?

You could try using MultiPHP Manager app to change the PHP version.

Screenshot 2025-03-20 at 12.19.02 pm.jpg

  • Author

@beats23 No, I don't have MultiPHP.

Is it possible that this is caused by a third party app? The only one installed is Quizzes by @Adriano Faria

 

@beats23 No, I don't have MultiPHP.

Is it possible that this is caused by a third party app? The only one installed is Quizzes by @Adriano Faria

It is very very very unlikely anything public facing is causing this, and if it is then your hosting would need to be looked at, as nothing should be able to switch a PHP version.

  • Author
 

It is very very very unlikely anything public facing is causing this, and if it is then your hosting would need to be looked at, as nothing should be able to switch a PHP version.

This morning I got an HTTP 500 error.

Oddly enough after I deleted the Quizzes app, the problem was solved. Is this a coincidence?

Edited by Paras

 

I got an HTTP 500 error.

For future reference, whenever you get this type of error , check the server error log page as it can contain details as to what caused it.

Recently Browsing 0

  • No registered users viewing this page.