Unable to run Omeka-S

On a RedHat 7.3 server, running PHP 5.4.16, and trying to get Omeka-S installed so we can test it out. I have been able to download the git version and after updating some files, successfully completed the installation (following the directions here: https://github.com/omeka/omeka-s) - well, at least I thought I did. However, when I try to launch the website to finish it up, I get a 500 http error. The error log shows this message:

[02-Oct-2017 17:07:30 UTC] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /apps/omeka-s/vendor/zendframework/zend-form/autoload/formElementManagerPolyfill.php on line 12

Line 12 is this:
$target = method_exists(ServiceManager::class, ‘configure’)
? FormElementManager\FormElementManagerV3Polyfill::class
: FormElementManager\FormElementManagerV2Polyfill::class;

I did go ahead and install libsodium and mcrypt since that was mentioned in the forum as a possible solution, but I am still not able to finish the installation. I did make sure the files directory is writable by the Apache user, but now am not sure where else to check. Anyone have any ideas and/or suggestions?

Jamen McGranahan

::class is introduced in PHP 5.5

You must use at least PHP 5.6

1 Like

I suspected that might be the issue. Well, at least it gave us a good reason to upgrade our PHP. Thanks for the confirmation!