MyBB Community Forums

Full Version: Change the PHP version in mybb
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to change the appropriate version for mybb, for example from PHP 5.6 to PHP 7.0. How to?
P / S: Changes in mybb code, no change on host server.
Thanks!
you can switch to php 7 at your web host server. basically no changes are required in MyBB code.

if your database is defined as mysql in config.php file then you have to change to mysqli
$config['database']['type'] = 'mysqli';
I changed the config.php to mysqli and changed the PHP on the host server to 7, but some pages in the web page were blank page can not display, if I switch PHP to 5.6 then the page will be displayed.
So, where is the error? Solution?
Thanks!
can you specify a couple of pages which are not displayed with php 7 ..
for blank pages, check latest entries of server error log to trace the cause
I have the same problem