Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 23:50:20

Author Topic: php-fpm failing after yum update  (Read 14854 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm failing after yum update
« Reply #15 on: 2014-03-14, 22:01:20 »
Also change:
Code: [Select]
if ($setphp52ver) {
$phpver = '5.2';
} else {
exec("php -r 'echo phpversion();'", $out, $ret);
$phpver = $out[0];
}
to:
Code: [Select]
if ($setphp52ver) {
$phpver = '5.2';
} else {
// exec("php -r 'echo phpversion();'", $out, $ret);
// $phpver = $out[0];
$phpver = phpversion();
}
inside /home/phpini/tpl/php.ini.tpl and /usr/local/lxlabs/kloxo/file/phpini/tpl/php.ini.tpl.

And then 'sh /script/fixphp; sh /script/restart-web'.

It's just make change 'register_long_arrays = on' to ';register_long_arrays = on' in /etc/php.ini.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php-fpm failing after yum update
« Reply #16 on: 2014-03-14, 22:57:37 »
Still php-fpm FAILS to start.  Only php53u will work.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: php-fpm failing after yum update
« Reply #17 on: 2014-03-14, 23:11:53 »
Not sure if it's the same root cause here, but i also have an issue with PHP-FPM, the /etc/php-fpm.conf file's content is XML :(

[root@kloxo ]#  service php-fpm restart
Stopping php-fpm:                                          [FAILED]
Starting php-fpm: [14-Mar-2014 23:08:25] ERROR: [/etc/php-fpm.conf:1] unknown entry '<?xml version'
[14-Mar-2014 23:08:25] ERROR: failed to load configuration file '/etc/php-fpm.conf'
[14-Mar-2014 23:08:25] ERROR: FPM initialization failed
                                                           [FAILED]

[root@kloxo ]# sh /script/sysinfo

A. Kloxo-MR: 6.5.1.b-2014031203

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql-5.5.34-1.el6.x86_64
   2. PHP: php55u-5.5.10-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.26-2.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.3.1-1.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1877       1041        835          0        195        518
   -/+ buffers/cache:        327       1549
   Swap:         3775          0       3775

[root@kloxo ]#




Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm failing after yum update
« Reply #18 on: 2014-03-14, 23:51:57 »
There are look wrong detect by php53s (special php for Kloxo-MR). This issue possible not appear when still using php52s.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php-fpm failing after yum update
« Reply #19 on: 2014-03-15, 00:06:40 »
php53s is a must, php52 is outdated.  Time to move forward.  This problem just started.

Please release the fixes to the repo, this is a critical bug, and needs your attention.

Thank you
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline insanity

  • Senior Member
  • *
  • Posts: 215
  • Karma: +0/-0
    • View Profile
Re: php-fpm failing after yum update
« Reply #20 on: 2014-03-15, 02:21:39 »
@chrisf,
Actually the solution that Mustafa give you work. I simulate your problem on one server.
When i change the getPhpVersion() with phpversion(); ( there is 3 getPhpVersion that need to be replaced )
Then i change in /usr/local/lxlabs/kloxo/file/phpini/tpl/phpini.tpl from:
Code: [Select]
if ($setphp52ver) {
$phpver = '5.2';
} else {
exec("php -r 'echo phpversion();'", $out, $ret);

$phpver = $out[0];
}
to:
Code: [Select]
if ($setphp52ver) {
$phpver = '5.2';
} else {
$phpver = phpversion();
}

then sh /script/fixphp, and fpm starts normal. If you still face problems this may help you in your situation: open /usr/local/lxlabs/kloxo/file/phpini/tpl/phpini.tpl and remove all lines with <?php echo $php53enable; ?> also replace <?php echo $php53disable; ?> with ; and run fixphp
« Last Edit: 2014-03-15, 02:23:22 by insanity »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php-fpm failing after yum update
« Reply #21 on: 2014-03-15, 03:31:03 »
I was able to get php-fpm to start, however, when going to a website, or simple phpinfo(( script it tried to download the php files instead of displaying them.

Seems some configuration with webserver and php-fpm is also effected?

I can not get it to display a site in anything but php53u, even when php-fpm started ok.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm failing after yum update
« Reply #22 on: 2014-03-15, 05:19:52 »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php-fpm failing after yum update
« Reply #23 on: 2014-03-15, 05:25:59 »
Yes, I was just successful as well.  But there is still some problem, and your phpinfo has same problem,  it is loading php53s.ini configuration, and wrong directory for included config.   All point to php53s.

Mine too.

I did old trick, changed webserver, then back to nginxproxy and it started using /etc/php.ini and php.d directory.

Something isn't quite right yet Mustafa.  But your changes so far did work,  please update the repo 6.5.1

Please investigate php.ini problem.  Look at your above phpinfo
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm failing after yum update
« Reply #24 on: 2014-03-15, 06:02:01 »
Yes, I was just successful as well.  But there is still some problem, and your phpinfo has same problem,  it is loading php53s.ini configuration, and wrong directory for included config.   All point to php53s.

Mine too.

I did old trick, changed webserver, then back to nginxproxy and it started using /etc/php.ini and php.d directory.

Something isn't quite right yet Mustafa.  But your changes so far did work,  please update the repo 6.5.1

Please investigate php.ini problem.  Look at your above phpinfo
Php.ini for 5.4+ is compatible with php.ini 5.3 after disable/inactivate 'register_long_arrays' (because only deprecated in 5.3 but removed in 5.4+).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php-fpm failing after yum update
« Reply #25 on: 2014-03-15, 07:36:55 »
Maybe, but it is still wrong.  I got it loading the correct configuration by changing webserver back and forth.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm failing after yum update
« Reply #26 on: 2014-03-15, 10:21:56 »
I found an issue when using php54 because wordpress tell no mysql extension. But, install in php55u successfully.

You can see http://next.potissima.com/ and http://next.potissima.com/phpinfo. It's using hiawatha-proxy (also no problem with apache).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php-fpm failing after yum update
« Reply #27 on: 2014-03-15, 15:36:27 »
The issue is not with php54, its with the configuration not loading from the correct place.  /etc/php.ini and /etc/php.d - when it does all works well.  Interesting that my phpinfo() changes.  Last night, /etc/php.ini,  now /opt/53s.

There is something still wrong.  Why is it changing where it gets it configuration?   How is that possible?  Child processes?

I see you have php54s?
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php-fpm failing after yum update
« Reply #28 on: 2014-03-15, 16:01:22 »
This is from same url.  Only difference is I /script/restart-all

How can configuration change?  After restart all is good.  /etc/php.ini. after some time, /opt/53s?

Is this a pool problem?
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm failing after yum update
« Reply #29 on: 2014-03-15, 16:09:10 »
If you found /opt/php5*, reboot will be resolve this issue. I found this issue for php54 but not found for php55.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.046 seconds with 18 queries.

web stats analysis