MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Joe on 2014-04-08, 21:39:30

Title: Can't Login to Control Panel After Last Update
Post by: Joe on 2014-04-08, 21:39:30
Control panel login shows these errors:

    
Warning: include_once(htmllib/lib/displayinclude.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/lxlabs/kloxo/httpdocs/login/inc.php on line 4

Warning: include_once() [function.include]: Failed opening 'htmllib/lib/displayinclude.php' for inclusion (include_path='.:/usr/share/pear/') in /usr/local/lxlabs/kloxo/httpdocs/login/inc.php on line 4

Notice: Undefined variable: sgbl in /usr/local/lxlabs/kloxo/httpdocs/login/inc.php on line 6

Notice: Trying to get property of non-object in /usr/local/lxlabs/kloxo/httpdocs/login/inc.php on line 6

Fatal error: Call to undefined function init_language() in /usr/local/lxlabs/kloxo/httpdocs/login/inc.php on line 8
Title: Re: Can't Login to Control Panel After Last Update
Post by: Joe on 2014-04-08, 21:41:11
I followed this thread and still not resolved:

http://forum.mratwork.com/kloxo-mr-releases-and-announcements/%28update%29-kloxo-6-5-1-b-to-2014040405/

Kloxo MR version:

kloxomr-6.5.1.b-2014040801.mr
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-09, 03:45:58
Run 'sh /script/php53s-installer; sh /script/fixlxphpexe; sh /script/cleanup'.
Title: Re: Can't Login to Control Panel After Last Update
Post by: Joe on 2014-04-09, 04:03:14
That allowed me to access the control panel but my website now shows an Internal Server Error. It's a drupal site and when deleting the .htaccess file. I can access the main page but all other pages are not redirecting so it seems like the Apache configuration changed or a php problem?
Title: Re: Can't Login to Control Panel After Last Update
Post by: Joe on 2014-04-09, 04:20:15
I used an alternative htaccess file with different settings and now it works.
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-09, 05:24:50
No. Just enough 'sh /script/cleanup' and to make sure 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web'. Also better re-update web, dns, php-branch, php-type from panel.
Title: Re: Can't Login to Control Panel After Last Update
Post by: Joe on 2014-04-09, 05:37:31
Whenever sh /script/cleanup is run, it changes back the htaccess file and again causes an Internal Server Error.
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-09, 07:26:07
Look like Kloxo-MR version need update. Run 'yum clean all; yum update' first.

After that, run 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web' to resolve previous issue related to php and or web.
Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-09, 23:47:21
All the options posted don't work, and new installs are also broken. Tons of missing lxphp errors everywhere and the login page displays the same error as the OP...

/usr/bin/lxphp.exe: line 10: /opt/php53s/usr/bin/php: No such file or directory
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-10, 04:37:32
Error '/usr/bin/lxphp.exe: line 10: /opt/php53s/usr/bin/php: No such file or directory' mean no exist php53s. So, need install 'new' php53s (different approach compare to 'old' php53s).
Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-10, 21:10:22
Error '/usr/bin/lxphp.exe: line 10: /opt/php53s/usr/bin/php: No such file or directory' mean no exist php53s. So, need install 'new' php53s (different approach compare to 'old' php53s).

I've tried /script/fixlxphpexe and nothing...
Title: Re: Can't Login to Control Panel After Last Update
Post by: Joe on 2014-04-10, 23:19:53
Error '/usr/bin/lxphp.exe: line 10: /opt/php53s/usr/bin/php: No such file or directory' mean no exist php53s. So, need install 'new' php53s (different approach compare to 'old' php53s).

I've tried /script/fixlxphpexe and nothing...

Did you follow his advice and run this below? sh /script/php53s-installer is needed for Kloxomr 6.5.1 and after I ran it with a reboot I had access to kloxo-mr.

yum clean all
## will be include Kloxo-MR 6.5.1.b-2014040405
yum update
## need convert to 'new' php53s
sh /script/php53s-installer
## must run cleanup where cleanup-simple may not work
sh /script/cleanup
Title: Re: Can't Login to Control Panel After Last Update
Post by: Joe on 2014-04-10, 23:23:04
Read here too:

http://forum.mratwork.com/kloxo-mr-releases-and-announcements/%28update%29-php-issues/ (http://forum.mratwork.com/kloxo-mr-releases-and-announcements/%28update%29-php-issues/)
Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-11, 00:08:14
Error '/usr/bin/lxphp.exe: line 10: /opt/php53s/usr/bin/php: No such file or directory' mean no exist php53s. So, need install 'new' php53s (different approach compare to 'old' php53s).

I've tried /script/fixlxphpexe and nothing...

Did you follow his advice and run this below? sh /script/php53s-installer is needed for Kloxomr 6.5.1 and after I ran it with a reboot I had access to kloxo-mr.

yum clean all
## will be include Kloxo-MR 6.5.1.b-2014040405
yum update
## need convert to 'new' php53s
sh /script/php53s-installer
## must run cleanup where cleanup-simple may not work
sh /script/cleanup

The script gets stuck at "-- Check installed dependencies rpms", I've left it overnight and nothing...
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-11, 03:14:15
Need running 'sh /script/cleanup' to re-create 'new' login page.
Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-11, 08:42:52
Need running 'sh /script/cleanup' to re-create 'new' login page.

It's turned into "Kloxo-MR: error 503 found!" on the login page now! Kloxo-cgi process also seems to fail to start.

(http://p.linuxthefish.net/tlw5)

Here is my /etc/yum.repos.d/mratwork.repo file as I'm not sure what it should be anymore!

Code: [Select]
[mratwork-release-neutral-noarch]
name=MRatWork - release-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/release/neutral/noarch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-release-neutral-noarch-mirrors.txt
enabled=1
gpgcheck=0

[mratwork-release-neutral-arch]
name=MRatWork - release-neutral-arch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/release/neutral/$basearch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-release-neutral-$basearch-mirrors.txt
enabled=0
gpgcheck=0

[mratwork-release-version-noarch]
name=MRatWork - release-version-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/release/centos$releasever/noarch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-release-centos$releasever-noarch-mirrors.txt
enabled=0
gpgcheck=0

[mratwork-release-version-arch]
name=MRatWork - release-version-arch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/release/centos$releasever/$basearch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-release-centos$releasever-$basearch-mirrors.txt
enabled=1
gpgcheck=0

[mratwork-testing-neutral-noarch]
name=MRatWork - testing-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/noarch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-testing-neutral-noarch-mirrors.txt
enabled=0
gpgcheck=0

[mratwork-testing-neutral-arch]
name=MRatWork - testing-neutral-arch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/$basearch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-testing-neutral-$basearch-mirrors.txt
enabled=0
gpgcheck=0

[mratwork-testing-version-noarch]
name=MRatWork - testing-version-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/centos$releasever/noarch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-testing-centos$releasever-noarch-mirrors.txt
enabled=0
gpgcheck=0

[mratwork-testing-version-arch]
name=MRatWork - testing-version-arch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/centos$releasever/$basearch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-testing-centos$releasever-$basearch-mirrors.txt
enabled=0
gpgcheck=0

[mratwork-srpms]
name=MRatWork - srpms
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/SRPMS/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/mratwork-SRPMS-mirrors.txt
enabled=0
gpgcheck=0

# ==================================

[mratwork-centalt]
name=MRatWork - centalt - arch
baseurl=http://centos.alt.ru/repository/centos/$releasever/$basearch/
#mirrorlist=http://rpms.mratwork.com/repo/mirrors/centalt-centos-$releasever-$basearch-mirrors.txt
enabled=1
gpgcheck=0
exclude=openssh* perl* mariadb* php* postfix* exim* ssmtp*

# ==================================

[mratwork-ius]
name=MRatWork - IUS Community Packages for EL $releasever - arch
baseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/$releasever/$basearch
mirrorlist=http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el$releasever&arch=$basearch
enabled=1
gpgcheck=0
exclude=php52* mysql51*

# ==================================

[mratwork-epel]
name=MRatWork - Extra Packages for EL $releasever - arch
baseurl=http://download.fedoraproject.org/pub/epel/$releasever/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-$releasever&arch=$basearch
enabled=1
gpgcheck=0
exclude=postfix* exim* ssmtp*

# ==================================

# for varnish
[mratwork-varnish-3.0]
name=MRatWork - Varnish 3.0 for EL $releasever - arch
baseurl=http://repo.varnish-cache.org/redhat/varnish-3.0/el$releasever/$basearch
enabled=1
gpgcheck=0

# ==================================

# for hiawatha
[mratwork-centosec]
name=MRatWork - CentOS $releasever Packages from CentOS.EC
baseurl=http://centos$releasever.ecualinux.com/$basearch
enabled=0
gpgcheck=0
exclude=cairo*

# ==================================

# for nginx-stable
[mratwork-nginx]
name=Kloxo-MR - nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=0

# ==================================

# for mariadb
[mratwork-mariadb]
name=Kloxo-MR - mariadb repo
baseurl=http://yum.mariadb.org/5.5/centos$releasever-x86
enabled=0
gpgcheck=0

# ==================================

# for atrpms
[mratwork-atrpms]
name=Kloxo-MR - Fedora Core $releasever -  - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgcheck=0
enabled=0

# ==================================

# for litespeed
[mratwork-litespeed]
name=MRatWork - LiteSpeed Tech Repository for CentOS $releasever - $basearch
baseurl=http://rpms.litespeedtech.com/centos/$releasever/$basearch/
#failovermethod=priority
enabled=1
gpgcheck=0

[mratwork-litespeed-update]
name=MRatWork - LiteSpeed Tech Repository for CentOS $releasever - $basearch
baseurl=http://rpms.litespeedtech.com/centos/$releasever/update/$basearch/
#failovermethod=priority
enabled=1
gpgcheck=0

# ==================================

# for mod-pagespeed
[mratwork-google-mod-pagespeed]
name=MRatWork - google-mod-pagespeed
baseurl=http://dl.google.com/linux/mod-pagespeed/rpm/stable/$basearch
enabled=1
gpgcheck=0
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-11, 09:32:57
If using 6.5.1.b, run 'yum replace mratwork-release --replace-with=mratwork-testing' and then 'cd /; yum clean all; yum update' before running 'sh /script/cleanup'.
Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-11, 09:40:29
If using 6.5.1.b, run 'yum replace mratwork-release --replace-with=mratwork-testing' and then 'cd /; yum clean all; yum update' before running 'sh /script/cleanup'.

Thanks, although with this I'm getting the following errors below. This is an i686 server, should I try to make backups and reinstall the server with 64bit?

Code: [Select]
https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/centos6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
mratwork-testing-version-arch/primary                                                                                                                                         | 4.0 kB     00:00
https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/centos6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from mratwork-testing-version-arch: [Errno 256] No more mirrors to try.
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-11, 10:01:45
Nothing wrong with repo but I found something wrong with yum in Centos 6.

Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-11, 10:29:42
Nothing wrong with repo but I found something wrong with yum in Centos 6.

"echo "http_caching=packages" >> /etc/yum.conf" then your above instructions fixed that error and kloxo-phpcgi starts fine now, but it's saying "Fatal error: Class 'mysqli' not found in /usr/local/lxlabs/kloxo/httpdocs/lib/php/sqlitelib.php on line 59". Grr!
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-11, 10:44:36
inform here 'lxphp.exe -v; lxphp.exe -m; yum list installed php*'.
Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-11, 10:49:23
inform here 'lxphp.exe -v; lxphp.exe -m; yum list installed php*'.

Code: [Select]
PHP 5.3.28 (cli) (built: Mar  5 2014 17:36:57)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
[PHP Modules]
bz2
calendar
Core
ctype
date
ereg
exif
filter
ftp
gettext
gmp
hash
iconv
libxml
openssl
pcntl
pcre
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
xml
zlib

[Zend Modules]

Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror.symnds.com
 * extras: mirror.kentdigital.net
 * mratwork-epel: mirror.symnds.com
 * mratwork-ius: mirror.symnds.com
 * updates: mirror.lug.udel.edu
0 packages excluded due to repository protections
Installed Packages
php53u.i686                                                                                                       5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-cli.i686                                                                                                   5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-common.i686                                                                                                5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-embedded.i686                                                                                              5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-imap.i686                                                                                                  5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-intl.i686                                                                                                  5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-ldap.i686                                                                                                  5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-litespeed.i686                                                                                             5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-mbstring.i686                                                                                              5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-mcrypt.i686                                                                                                5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-mysql.i686                                                                                                 5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-pdo.i686                                                                                                   5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-pear.noarch                                                                                                1:1.9.4-3.ius.el6                                                                                             @mratwork-ius
php53u-pecl-geoip.i686                                                                                            1.0.8-1.ius.el6                                                                                               @mratwork-ius
php53u-process.i686                                                                                               5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-pspell.i686                                                                                                5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-recode.i686                                                                                                5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-snmp.i686                                                                                                  5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-soap.i686                                                                                                  5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-tidy.i686                                                                                                  5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-xml.i686                                                                                                   5.3.28-2.ius.el6                                                                                              @mratwork-ius
php53u-xmlrpc.i686                                                                                                5.3.28-2.ius.el6                                                                                              @mratwork-ius
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-11, 10:53:46
Run 'yum install php53u-mysqli'.
Title: Re: Can't Login to Control Panel After Last Update
Post by: linuxthefish on 2014-04-11, 10:59:53
Run 'yum install php53u-mysqli'.

It's saying it's already installed, even with yum reinstall! Is there any way to make the backup script run manually so I can just reinstall Kloxo-mr?
Title: Re: Can't Login to Control Panel After Last Update
Post by: MRatWork on 2014-04-11, 11:02:37
You can try 'sh /script/upcp -y' for re-install (without worry your data will be destroy).

Better execute with latest version.