Support ubuntu and php versions

Hello,
We are trying to stand up a ojs server and whenever we do we can get the index.php file to load but it doesn’t redirect to the install guide. We are using ubuntu 16.04 and it has php 7 install automatically. We have had issues with php 7 it will give us errors like this.

[Wed Jul 13 15:57:04.629455 2016] [:error] [pid 1115] [client 127.0.0.1:33164] PHP Deprecated: Non-static method PKPApplication::defineExposedConstant() should not be called statically in /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 545
[Wed Jul 13 15:57:04.629513 2016] [:error] [pid 1115] [client 127.0.0.1:33164] PHP Deprecated: Non-static method PKPApplication::getExposedConstants() should not be called statically in /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 513
[Wed Jul 13 15:57:04.631732 2016] [:error] [pid 1115] [client 127.0.0.1:33164] PHP Fatal error: Cannot use ‘String’ as class name as it is reserved in /var/www/html/ojs/lib/pkp/classes/core/String.inc.php on line 57

So we install php 5.6 the issue now is that we don’t get anymore errors but it still won’t redirect to the install guide. What are the official supported versions of php and ubuntu that ojs uses?

Hi @FlaminSeraphim,

OJS 2.4.x will currently not work with PHP7. (See this issue for details.)The 7.0 release introduced a String class, and OJS already includes its own, so the two collide. We’ll rename the String class in a future release, but for the moment PHP7 has very low adoption so it hasn’t been a high priority.

If you’ve moved to PHP 5.6 and don’t get the installation form, it’s likely a file permissions problem in your cache subdirectory. Review the installation instructions and ensure those are correct.

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you for your very quick reply. We decided to use ubuntu 15.10 and the reason why it wasn’t working for me was php wasn’t install by default.