Moved SuiteCRM to new VPS with PHP 8 - Pukes all over it. šŸ¤® [Version 7.12.8]

image

Pretty much as said in the subject headline. When we turned on PHP 8.0.0.26 it just instantly generates 500 internal server error.

But when we switch to PHP 7.4.77 SuiteCRM starts working fine again.

Any ideas about this and maybe how to fix it? :thinking:

Thanks in avance! :+1:

@PowerQuest
Make sure you have installed all modules for php 8.0 and follow all the recommendations (include configuration of opcache).

Iā€™ve checked and it seem that I have them enabled (The required PHP modules) so I donĀ“t sure know why SuiteCRM doesnā€™t like the (new) environment on this VPS.
The old VPS used C-panel which we used to partition the virtual server into different functions, but this new VPS have Plesk CP instead.

Here is the global admin PHP settings in Plesk for the whole VPS and everything is turned on:


Any ideas?

What about permission?

Thereā€™s another person here on the forums with the exact same problem, and itā€™s also on Plesk

Well it does work fine on php 7 but of course that isnā€™t optimal.

Iā€™m no super coder so Iā€™m having a hard time to figure this one out. Did you see anything in the server log that I shared through pastebin.com that might be some kind of clue / lead?

Thanks in advance.

There is error: ā€œCall to undefined function opcache_get_status()ā€ in log file.
Check opcache information: PHP: Installation - Manual

1 Like

Try adding a text file with these contents on your web server root:

<?php
   phpinfo();
?>

Save it as info.php, for example. Now fix ownerships and permissions to make it readable and executable by the web server, then you should be able to access it from a browser, something like:

https://www.yourdomain.com/info.php

In the results you get, you can examine which modules exactly are loaded and activated, and also the path of all php.iniā€™s involved in your configuration.

Focus on things related to opcache both in the modules and the settings. You can contrast with the results from PHP 7.4 to spot any difference that looks relevant.

1 Like

Hi, Plesk seems to explicitely disable the opcache_get_status method by default.

The following forum post on the plesk forum shows a solution for this. Can you try this out?

1 Like

Thanks guys. You all given me some leads of ideas that I can look into during xmas.

Oh and merry Christmas to your all! @p.konetskiy @jansiero @pgr :heart: :christmas_tree: :santa: :deer:

Kind regards

3 Likes
1 Like

Hi guys.

Thank you so much everyone for your help. :heart:
I can confirm that removing ā€œopcache_get_statusā€ in Plesk on domain level resolves the whole issue and after that SuiteCRM runs fine on PHP 8.

Kind regards

1 Like