New install, webapp just showing php code
-
I’ve just installed Kopano into ClearOS7 (like centos7) and when I go to the Webapp all I get is a php page like:
<?php /** * This is the entry point for every request that should return HTML * (one exception is that it also returns translated text for javascript) */ // Bootstrap the script require_once('server/includes/bootstrap.php'); // Added in 3.4.0, remove check in 3.5.0 if (!function_exists('gitversion')) { /** * Obtain the current Git working branch * @return string the current git working branch */ <snip>
If I upgrade from a working 3.5.2 it works. Just the fresh install is failing.
It must be something basic that I’m missing. Pointers would be appreciated.
-
Answering my own question, somewhere in the updates the requirement for php in Kopano and/or Webapp has been dropped. If I install php it all works. I am surprised.
Is this a bug or intentional?
-
And adding a bit more info, the requirement used to be in z-push-common but is no longer. Shouldn’t the requirement also be somewhere in the Kopano suite?
-
@nickh which versions are you currently using? And which repo did you configure for Z-Push?
-
I am using Kopano 8.7.20, webapp-3.5.14 and z-push-common 2.6.2 from the new kopano repo.
I am really surprised that the Kopano suite does not have a requires of php somewhere - and not in z-push as that is an extra.
[edit]
I got away with it before because z-push-common used to require php but it does not any more.
[/edit] -
@nickh said in New install, webapp just showing php code:
from the new kopano repo.
What do you mean with “new kopano repo”? Can you post the exact url you have configured?
@nickh said in New install, webapp just showing php code:
I got away with it before
Which has been the version that you have used before? Its been quite a while since the z-push packaging has changed -> https://github.com/Z-Hub/Z-Push/commits/master/build/rpm/z-push.spec
@nickh said in New install, webapp just showing php code:
webapp-3.5.14
That version is from december 2019, current final for customers is 5.1.0.
-
My bad. Webapp is 5.1.0.
The last version of z-push we used is 2.5.2. It looks like the last commit changed the requirement away from php. Perhaps el7 should also be included in the “%if 0%{?suse_version}” line.
[edit]
But having said that, z-push is not a requirement of Kopano so it can’t be relied on.
[/edit]