MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Actual on 2014-04-13, 00:24:44

Title: Fatal error when upgrading
Post by: Actual on 2014-04-13, 00:24:44
I get Fatal error: Class 'mysqli' not found in /usr/local/lxlabs/kloxo/httpdocs/lib/php/sqlitelib.php on line 59

when I try to load http://mydomain.net:7778 or https://www.mydomain.net:7777/

have tried various yum cleanup, yum upgrade, yum update, upcp, etc. to no avail

help!
Title: Re: Fatal error when upgrading
Post by: MRatWork on 2014-04-13, 03:36:29
If using 6.5.0.f, run 'yum replace mysql --replace-with=mysql55' (for Centos 6) and then run 'sh /script/cleanup'.

Better read http://forum.mratwork.com/kloxo-mr-releases-and-announcements/(update)-php-issues/
Title: Re: Fatal error when upgrading
Post by: Actual on 2014-04-13, 13:20:23
I'm already on 6.5.1 and that command gives

"Error: Package 'mysql' is not installed."
Title: Re: Fatal error when upgrading
Post by: MRatWork on 2014-04-13, 13:32:14
Try 'yum clean all; yum update; sh /script/php53s-installer; sh /script/fixlxphpexe php53s; sh /script/cleanup'.
Title: Re: Fatal error when upgrading
Post by: Actual on 2014-04-13, 13:42:30
No joy. Still same error message after running that which is

'Fatal error: Class 'mysqli' not found in /usr/local/lxlabs/kloxo/httpdocs/lib/php/sqlitelib.php on line 59'

Title: Re: Fatal error when upgrading
Post by: Actual on 2014-04-13, 13:43:26
Also, restart-all now gives:


Starting Djbdns for:
  - axfrdns    [FAILED]
  - tinydns    [FAILED]

maybe why? this worked before upgrade
Title: Re: Fatal error when upgrading
Post by: MRatWork on 2014-04-14, 11:32:54
The problem is Kloxo-MR using mysql 5.5 from CentAlt but at their latest upload their mysql already removed. The impact to php52s where still need mysql 5.5. After php52s make change needed to mysql55 (from IUS) instead mysql 5.5 (from Centalt).

To fix this issue:
Code: [Select]
yum replace mysql --replace-with=mysql55
yum update php52s
Title: Re: Fatal error when upgrading
Post by: Actual on 2014-04-16, 22:14:36
command: yum replace mysql --replace-with=mysql55

gives error message:

Error: Package 'mysql' is not installed.

command: yum update php52s

gives error message:

No package php52s available.
Title: Re: Fatal error when upgrading
Post by: Spacedust on 2014-04-16, 23:54:25
Run:

/script/php52s-installer
Title: Re: Fatal error when upgrading
Post by: MRatWork on 2014-04-17, 05:51:31
Update 6.5.1.b to latest version (2014041602) and then run 'sh /script/upcp' (need running upcp if update from 6.5.0).
Title: Re: Fatal error when upgrading
Post by: Actual on 2014-04-18, 15:22:48
All above suggestions did not work. Only solution was to wipe Kloxo-MR and re-install from scratch and then restore backup. This is not an ideal upgrade solution. A bug-free upgrade path would be great and limit downtime.
Title: Re: Fatal error when upgrading
Post by: MRatWork on 2014-04-18, 15:52:50
If using latest version (6.5.0 or 6.5.1), most problem already fixed.

Doesn't need fresh install if we have a problem. Enough running 'sh /script/upcp -y' (like fresh install but with '-y'). With '-y', Kloxo-MR will be reinstall without worry data will be destroy/deleted.

Reinstall (via 'sh /script/upcp -y'), Kloxo-MR will be remove all components (like php/httpd/qmail/mysql) and then install again. Reinstall as the same as fresh install but without touch kloxo database (that mean all setting still no changed).

But, for reinstall, we need re-configure setting like select web/dns/spam server also php-branch and php-type.
Title: Re: Fatal error when upgrading
Post by: Actual on 2014-04-19, 15:28:48
Sounds great. If that would've worked for me, I would have been very happy. I tried all that but no good. Re-install from scratch was the only solution that worked. Thanks anyway, still a good panel even with it's current problems.