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, 21:55:36

Author Topic: php-fpm fails and reads php.ini from /opt/php54s/custom/php.ini  (Read 1711 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Instead of reading /etc/php.ini (PHP 5.6) it reads /opt/php54s/custom/php.ini (PHP 5.4) causing my php modules not to work properly.

How to correct this ?

You must be executing export PHPRC="/opt/php54s/custom" somehwere in the panel.

It started to happen after last updates...

Offline fossxplorer

  • Master
  • **
  • Posts: 635
  • Karma: +0/-0
    • View Profile
Did things change for PHP 5.6?
I'm still using PHP 5.4 and it reads config  from /opt/php54m/custom/php.ini.
Is that wrong ?
Kloxo-MR!

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Did things change for PHP 5.6?
I'm still using PHP 5.4 and it reads config  from /opt/php54m/custom/php.ini.
Is that wrong ?

I'm using PHP 5.6 from remi repo as main PHP. Restarting php-fpm fixes this issue but then it comes again and again...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
For using php other than 5.4 version, better using 'phpXYm' (like 'php56m') instead 'php branch' under 'php used' in 'webserver configure'.

Php branch is 'normal' php where install with using 'yum install' or 'yum replace'. It's different with 'phpXYm' ('multiple php') where install with special treatment.
..:: 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
So far fixed this with EXPORT PHPRC="/etc"

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
I've commented the line:

#export PHP_INI_SCAN_DIR=$php_scan

in /opt/php54s/custom/php-cgi.sh and it seems to be fix this issue as well.

Kloxo works without too ;)

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Still the same. Must be something else ;(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Nothing wrong with my new installed server (2 days ago).
..:: 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
Nothing wrong with my new installed server (2 days ago).

Are you using php-branch for main PHP ?

Today Apache freezed so hard that I had to restart it with:

Quote
ipcs -s | grep apache | awk ' { print $2 } ' | xargs -n 1 ipcrm -s

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
I am always using phpXYm in 'php used'.
..:: 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
I am always using phpXYm in 'php used'.

Which one ? PHP 5.6 ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
I am always using phpXYm in 'php used'.

Which one ? PHP 5.6 ?
Mostly php54m but no issue for php56m.
..:: 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
Got it ! It must be also disabled in php-cgi.sh, php-cli.sh, php-ls.sh and php-fpm.sh.

So far no problems with main PHP and PHP for panel.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.041 seconds with 18 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM