PHP version

13 replies [Last post]
Joined: 11/29/2010
Points: 153

I've updated php on our server to be 5.4.8, and it seems to have broken the KMC - to have a 5.4-compliant system, would I have to upgrade to CE v5? What's the highest version number of PHP that will work with CEv4? I was using 5.3.3 before the upgrade, and would rather not roll back much lower than 5.4 if I can avoid it (so at least be on 5.3.18, the most recent 5.3 build).

Joined: 11/29/2010
Points: 153

Update - I've removed 5.4.8 and put 5.3.19 on - and it's still stuffed. Other web apps running on that server (phpMyAdmin and moodle v2.3.1) are working fine on the new PHP version.
yum decided to update mysql with one of the php- option installations too (I forget which), but this seems to have gone smoothly and PMA is still showing all our data as being there and the root password preserved.

Joined: 01/05/2009
Points: 1697

Getting any interesting errors on your kaltura or apache logs?

Joined: 11/29/2010
Points: 153

The only error I've found in the PHP error log is to do with mysql being unavailable:
[22-Nov-2012 15:43:32] PHP Fatal error: Uncaught exception 'PropelException' with message ' [wrapped: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away]' in /opt/kaltura/app/vendor/propel/util/BasePeer.php:467

Which randomly happens on a regular basis anyway so I doubt that's it (PHP logging is set to E_ALL to the file btw).

Which kaltura-specific logs should I be checking?

Joined: 11/29/2010
Points: 153

Here is what happens when you try to access the KMC:
http://kaltura.hull-college.ac.uk/index.php/kmc

This is the same behaviour as when you login to the admin console then choose to 'manage' the KMC account

Joined: 01/05/2009
Points: 1697

Looks like mysql-php connection issue.. Is simply running a php script that connects to your DB works?
Also - do you have enough disk space available?

Joined: 11/29/2010
Points: 153

There is 32% space on /.
A simple PHP script which does as you suggested also works fine.

Joined: 11/29/2010
Points: 153

If necessary I have a 2 day window at the start of January to rebuild the installation (my emergency plan is to clone the kaltura/ folder, snapshot the database, reinstall it then put everything back).

Has anybody tested a new install of CE v4 onto CentOS 6 with PHP 5.4.x? If not, I'm sticking with 5.3.19 which the other webapps running on that server are fine with.

Joined: 11/29/2010
Points: 153

I didn't make explicitly clear earlier, the Kaltura Admin Console area works fine - until you try and Manage a user. It has a strange screen artefact in some places though (notice the kaltura circular lines logo appearing in the table, in the attached image - I tried embedding the image into this post but to no avail)

AttachmentSize
kaltura screen artefacts in adminconsole.jpg14.67 KB
Joined: 01/05/2009
Points: 1697

If you can spare the time next week, I would highly recommend installing version 6 from github.
https://github.com/kaltura/ce-packager

Joined: 11/29/2010
Points: 153

OK, can I just import my old v4 database (via PHPmyAdmin) after installing v6 and copy the files into the right place? It'll be a pain in the backside if I have to re-import everything as different video IDs.

Joined: 01/05/2009
Points: 1697

An upgrade is more complicated than just running over the database, as there are many changes from one major version to another.
See this thread for upgrade instructions (should be the same from 5 to 6): http://www.kaltura.org/kaltura-ce-40-50-migration-thread

Joined: 11/29/2010
Points: 153

Should I be upgrading to 5 first then 6?

Joined: 01/05/2009
Points: 1697

yes.