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. 2017-11-07, 18:24:41

Author Topic: php54m-fpm looking for modules in wrong path  (Read 3425 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 635
  • Karma: +0/-0
    • View Profile
php54m-fpm looking for modules in wrong path
« on: 2014-04-27, 20:26:42 »
This happens after recent updates:
[root@kloxo ~]# sh /script/restart-web
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Stopping nginx:.                                           [  OK  ]
Starting nginx:                                            [  OK  ]
Stopping php54m-fpm:                                       [  OK  ]
Starting php54m-fpm: Failed loading /usr/lib64/php/modules/opcache.so:  /usr/lib64/php/modules/opcache.so: cannot open shared object file: No such file or directory
                                                           [  OK  ]
[root@kloxo ~]#

phpinfo() shows that the config is correctly loaded from /opt/php54m/custom/php54m.ini.
Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php54m-fpm looking for modules in wrong path
« Reply #1 on: 2014-04-28, 01:53:12 »
Don't choose php55u as 'php branch'. Better choose php53u to minimize problem.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 635
  • Karma: +0/-0
    • View Profile
Re: php54m-fpm looking for modules in wrong path
« Reply #2 on: 2014-04-28, 08:22:37 »
Actually php55u works fine, but since WHMCS doesn't support it, i'd need to use PHP 5.4. PHP 5.3 is outdated :(
Now i get:
Stopping php54m-fpm:                                       [  OK  ]
Starting php54m-fpm: Zend OPcache requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.

My research shows . 220090626 is the Zend API version for PHP 5.3. Could PHP 5.4.27 in Kloxo-MR have been compiled with wrong Zend API?
Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php54m-fpm looking for modules in wrong path
« Reply #3 on: 2014-04-28, 08:40:17 »
Because php55 have different modules or setting, better change php-branch to php53u. If you still stay in php55u for php-branch, you will show above error.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 635
  • Karma: +0/-0
    • View Profile
Re: php54m-fpm looking for modules in wrong path
« Reply #4 on: 2014-04-28, 12:34:41 »
I don't use branch php55, but php54m. See the pic.
 Php 5.4.27 works fine, expect for loading any  modules i rename in /opt/php54m/etc/php.d _mymodule.ini.

Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php54m-fpm looking for modules in wrong path
« Reply #5 on: 2014-04-28, 12:44:41 »
As I know php54 doesn't have opcache module. Taken from different version will be make a trouble (because different API version 220090626).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 635
  • Karma: +0/-0
    • View Profile
Re: php54m-fpm looking for modules in wrong path
« Reply #6 on: 2014-04-28, 17:26:09 »
You are right.  It's a mess with different PHP versions on Kloxo-MR.
I can use PHP 5.4 + Zend Opcache + Apcu just fine on my other servers using Remi's repo!

Until now i was using Remi's Repo to be able to have PHP 5.4 or 5.5 on my CentOS systems and i really appreciate the hard work put down by Remi in maintaining his repos.
But recently Redhat have  released SCL which is available on CentOS as well. Using SCL we might be able have parallell installations of PHP 5.3, 5.4 and 5.5 as well as Apache 2.4.

Mustafa: can you consider moving to such a solution for Kloxo-MR?
Here are some links which are useful:
http://blog.famillecollet.com/post/2013/11/07/Various-PHP-versions-on-an-Apache-server
https://www.softwarecollections.org/en/scls/?search=php&policy=&repo=&order_by=-download_count&per_page=10
http://developerblog.redhat.com/2014/04/08/apache-with-various-php-versions-using-scl/

What do you think?
 
Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php54m-fpm looking for modules in wrong path
« Reply #7 on: 2014-04-28, 18:53:35 »
What's I am doing more simple rather than REMI because just using plain php (without using 'special' compile for each version).

But, thanks for your infos.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: php54m-fpm looking for modules in wrong path
« Reply #8 on: 2014-04-28, 21:50:58 »
+1 from me for remi repos - I'm using his repos since 2009 !!!

Offline fossxplorer

  • Master
  • **
  • Posts: 635
  • Karma: +0/-0
    • View Profile
Re: php54m-fpm looking for modules in wrong path
« Reply #9 on: 2014-04-29, 10:00:45 »
Yes, but as mentioned above Remi's repos are superceded by offcial Redhat SCL :) Would be a great feature of Kloxo-MR to have Apache 2.4 too.
I was hinting Mustafa to use SCL instead of all the other repos(IUS,CentAlt, etc) that Kloxo-MR relies on. Of course do we still need to keep whatevever repos that's necessary. 

+1 from me for remi repos - I'm using his repos since 2009 !!!
Kloxo-MR!

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.04 seconds with 16 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM