MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: suplover on 2013-06-01, 16:46:06

Title: Problems after update
Post by: suplover on 2013-06-01, 16:46:06
Hi Guys i know there is some issues related with last update i'm a also having a problem after update when i open any website on any browser they just shown content of index.php file. But actually i was very happy with new kloxo-mr before that so is there anyway to just reverse last update or how to fix this problem and i must tell that none of this problem could stop me to loving Kloxo or Kloxo-MR!
Title: Re: Problems after update
Post by: MRatWork on 2013-06-01, 17:15:56
Have you run 'sh /script/fixweb' after update?
Title: Re: Problems after update
Post by: suplover on 2013-06-01, 17:22:38
Quote from: "MRatWork"
Have you run 'sh /script/fixweb' after update?
i tried sh /script/cleanup but now trying this too
Title: Re: Problems after update
Post by: MRatWork on 2013-06-01, 17:23:38
Don't forget 'sh /script/restart-services' because your update also update php.
Title: Re: Problems after update
Post by: suplover on 2013-06-01, 17:30:42
Quote from: "MRatWork"
Don't forget 'sh /script/restart-services' because your update also update php.

i done all also rebooted to be sure but still same maybe i should have a right combination on "Webserver Config" i'm also playing with to see if there is any chance
Title: Re: Problems after update
Post by: MRatWork on 2013-06-01, 17:37:44
Try click update for 'php-type' and or change to another php-type and then change back.
Title: Re: Problems after update
Post by: suplover on 2013-06-01, 18:02:00
Quote from: "MRatWork"
Try click update for 'php-type' and or change to another php-type and then change back.

I did but it was same also i keep played with php-type and on fcgid_event i get "HTTP Error 500 (Internal Server Error)" on anotherone i get "Database Error: Unable to connect to the database:The MySQL adapter "mysql" is not available"

Maybe it's best to re install Kloxo-MR? I still have my old VPS running with Kloxo i was just moving clients one by one i can do it again, no problem with it nothing to lose.
Title: Re: Problems after update
Post by: MRatWork on 2013-06-01, 18:06:10
Quote from: "suplover"
Quote from: "MRatWork"
Try click update for 'php-type' and or change to another php-type and then change back.

I did but it was same also i keep played with php-type and on fcgid_event i get "HTTP Error 500 (Internal Server Error)" on anotherone i get "Database Error: Unable to connect to the database:The MySQL adapter "mysql" is not available"

Maybe it's best to re install Kloxo-MR? I still have my old VPS running with Kloxo i was just moving clients one by one i can do it again, no problem with it nothing to lose.
Give me your ssh and kloxo password (send to pm or talk to YM/GTalk). I want to check.
Title: Re: Problems after update
Post by: Viking on 2013-06-01, 18:47:30
Reinstall php:
Code: [Select]
yum replace phpxx --replace-with=php54 -y
yum replace php54 --replace-with=phpxx -y
phpxx - You use your php which
I always help such activity as letters php content.

Also today I had a problem with the installation of MySQL but helped:
Code: [Select]
sh /script/restart-services
Title: Re: Problems after update
Post by: MRatWork on 2013-06-01, 18:53:06
It's just missing 'php53u-mysql'. Just install again.
Title: Re: Problems after update
Post by: Viking on 2013-06-01, 19:06:00
Quote from: "MRatWork"
It's just missing 'php53u-mysql'. Just install again.
Mustafa 'php53u-mysql' is installed and is showing the contents of php I checked and I had the same problem.
Title: Re: Problems after update
Post by: MRatWork on 2013-06-01, 19:29:37
Quote from: "Viking"
Quote from: "MRatWork"
It's just missing 'php53u-mysql'. Just install again.
Mustafa 'php53u-mysql' is installed and is showing the contents of php I checked and I had the same problem.
Maybe also missing php53u-fpm if you choose php-type as php-fpm_event. Try click 'update' again for 'php-type' in 'webserver configs'.
Title: Re: Problems after update
Post by: Spacedust on 2013-06-01, 23:47:06
Confirmed I got this too !

php54 does not work in this release !

Code: [Select]
[root@kelope home]# php -v
[root@kelope home]#

Quote
[root@kelope home]# rpm -qi php54-fpm
Name        : php54-fpm                    Relocations: (not relocatable)
Version     : 5.4.15                            Vendor: (none)
Release     : 1.ius.el5                     Build Date: Thu 09 May 2013 02:40:20 PM EDT
Install Date: Sat 01 Jun 2013 07:44:52 AM EDT      Build Host: 339181-build02.rpmdev.rackspace.com
Group       : Development/Languages         Source RPM: php54-5.4.15-1.ius.el5.src.rpm
Size        : 3981818                          License: PHP
Signature   : DSA/SHA1, Wed 29 May 2013 01:10:24 AM EDT, Key ID da221cdf9cd4953f
URL         : http://www.php.net/ (http://www.php.net/)
Summary     : PHP FastCGI Process Manager
Description :
PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI
implementation with some additional features useful for sites of
any size, especially busier sites.

Quote
[root@kelope home]# rpm -qi php54
Name        : php54                        Relocations: (not relocatable)
Version     : 5.4.15                            Vendor: (none)
Release     : 1.ius.el5                     Build Date: Thu 09 May 2013 02:40:20 PM EDT
Install Date: Sat 01 Jun 2013 07:43:17 AM EDT      Build Host: 339181-build02.rpmdev.rackspace.com
Group       : Development/Languages         Source RPM: php54-5.4.15-1.ius.el5.src.rpm
Size        : 9316917                          License: PHP
Signature   : DSA/SHA1, Wed 29 May 2013 01:10:06 AM EDT, Key ID da221cdf9cd4953f
URL         : http://www.php.net/ (http://www.php.net/)
Summary     : PHP scripting language for creating dynamic web sites
Description :
PHP is an HTML-embedded scripting language. PHP attempts to make it
easy for developers to write dynamically generated web pages. PHP also
offers built-in database integration for several commercial and
non-commercial database management systems, so writing a
database-enabled webpage with PHP is fairly simple. The most common
use of PHP coding is probably as a replacement for CGI scripts.

The php package contains the module which adds support for the PHP
language to Apache HTTP Server.
[root@kelope home]#

Quote
[root@kelope home]# /etc/init.d/php-fpm restart
Stopping php-fpm:                                          [FAILED]
Starting php-fpm:                                          [FAILED]
Title: Re: Problems after update
Post by: Spacedust on 2013-06-01, 23:54:52
After I copy my own /etc/php.ini file:

Code: [Select]
[root@kelope /]# /etc/init.d/php-fpm restart
Stopping php-fpm:                                          [FAILED]
Starting php-fpm:
[01-Jun-2013 07:54:10] ERROR: [/etc/php-fpm.conf:1] unknown entry '<?xml version'
[01-Jun-2013 07:54:10] ERROR: failed to load configuration file '/etc/php-fpm.conf'
[01-Jun-2013 07:54:10] ERROR: FPM initialization failed
                                                           [FAILED]
Title: Re: Problems after update
Post by: Spacedust on 2013-06-01, 23:57:50
Copying /etc/php-fpm.conf.rpmnew to /etc/php-fpm.conf allows me to start php-fpm but I got Internal Server Error on all php pages ;)
Title: Re: Problems after update
Post by: MRatWork on 2013-06-02, 00:05:01
Copy /home/php-fpm/etc/php53-fpm.conf to /etc/php-fpm.conf.

Error because wrong detect php version.
Title: Re: Problems after update
Post by: Spacedust on 2013-06-02, 00:30:46
Quote from: "MRatWork"
Copy /home/php-fpm/etc/php53-fpm.conf to /etc/php-fpm.conf.

Error because wrong detect php version.

So please fix this !
Title: Re: Problems after update
Post by: MRatWork on 2013-06-02, 00:36:27
Quote from: "Spacedust"
Quote from: "MRatWork"
Copy /home/php-fpm/etc/php53-fpm.conf to /etc/php-fpm.conf.

Error because wrong detect php version.

So please fix this !
No change code for detect php version. So, how to fix this code where nothing wrong with previous version?.

No problem when update for Kloxo-MR together with update php.
Title: Re: Problems after update
Post by: Spacedust on 2013-06-02, 00:43:37
Good - all working but I've switched to php53u and now I'm unable to switch to php54 via panel.
Title: Re: Problems after update
Post by: Spacedust on 2013-06-02, 00:47:05
Quote from: "MRatWork"
Quote from: "Spacedust"
Quote from: "MRatWork"
Copy /home/php-fpm/etc/php53-fpm.conf to /etc/php-fpm.conf.

Error because wrong detect php version.

So please fix this !
No change code for detect php version. So, how to fix this code where nothing wrong with previous version?.

No problem when update for Kloxo-MR together with update php.

Yep, but switching php version can be now only done manually which seems to be good idea anyway.
Title: Re: Problems after update
Post by: MRatWork on 2013-06-02, 00:48:30
Quote from: "Spacedust"
Good - all working but I've switched to php53u and now I'm unable to switch to php54 via panel.

Try 'yum replace php53u --replace-with=php54'. And inform here 'php -r 'echo phpversion();' after switch to php54.
Title: Re: Problems after update
Post by: Spacedust on 2013-06-02, 00:57:51
Quote from: "MRatWork"
Quote from: "Spacedust"
Good - all working but I've switched to php53u and now I'm unable to switch to php54 via panel.

Try 'yum replace php53u --replace-with=php54'. And inform here 'php -r 'echo phpversion();' after switch to php54.

This works well:

Code: [Select]
php -r 'echo phpversion();'
5.4.15