Upgrade server php to version 7

I have the latest version of OJS and OMP running very nicely on my server. However for running the latest version of woocommerce they recommend using php version 7 which means that I should upgrade my server to php version 7 by contacting my web hosting service.

What will I need to do with OJS and OMP to be able to keep these installations working correctly with my databases? Does anything need to be reconfigured?

Well actually I just read that it is possible using .htaccess to use php 7.1 on a single directory so no need to upgrade system wide. However, my question is now, what is the best version for OJS 3.0.2 in terms of php?

After switching to php 7.1 my installations are broken only see blank pages now :frowning:

Hi @dave4math,

OJS 3.0.2 and OMP 3.1.0 are PHP7 compatible. Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Or a better reply would be to change
driver = mysql
to
driver = mysqli
in the config.inc.php file.
Now it works again, with php 7.1

:slight_smile:

1 Like

Hi @Adriano_Jose,

I see you’ve already posted your question on another thread. Please don’t double-post – it clutters the forum.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like