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-03-29, 07:28:11

Author Topic: php53s confilitcs with php55 from remi !  (Read 8910 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
php53s confilitcs with php55 from remi !
« on: 2014-03-28, 11:37:32 »
Why is this happening !

Quote
PHP Version 5.5.10

Quote
Configuration File (php.ini) Path    /etc
Loaded Configuration File    /opt/php53s/custom/php.ini
Scan this dir for additional .ini files    /opt/php53s/etc/php.d
Additional .ini files parsed    /opt/php53s/etc/php.d/bcmath.ini, /opt/php53s/etc/php.d/curl.ini, /opt/php53s/etc/php.d/dom.ini, /opt/php53s/etc/php.d/enchant.ini, /opt/php53s/etc/php.d/fileinfo.ini, /opt/php53s/etc/php.d/gd.ini, /opt/php53s/etc/php.d/geoip.ini, /opt/php53s/etc/php.d/imap.ini, /opt/php53s/etc/php.d/intl.ini, /opt/php53s/etc/php.d/json.ini, /opt/php53s/etc/php.d/ldap.ini, /opt/php53s/etc/php.d/lzf.ini, /opt/php53s/etc/php.d/mbstring.ini, /opt/php53s/etc/php.d/mcrypt.ini, /opt/php53s/etc/php.d/mysql.ini, /opt/php53s/etc/php.d/mysqli.ini, /opt/php53s/etc/php.d/pdo.ini, /opt/php53s/etc/php.d/pdo_mysql.ini, /opt/php53s/etc/php.d/pdo_sqlite.ini, /opt/php53s/etc/php.d/phar.ini, /opt/php53s/etc/php.d/posix.ini, /opt/php53s/etc/php.d/pspell.ini, /opt/php53s/etc/php.d/recode.ini, /opt/php53s/etc/php.d/redis.ini, /opt/php53s/etc/php.d/snmp.ini, /opt/php53s/etc/php.d/soap.ini, /opt/php53s/etc/php.d/sysvmsg.ini, /opt/php53s/etc/php.d/sysvsem.ini, /opt/php53s/etc/php.d/sysvshm.ini, /opt/php53s/etc/php.d/tidy.ini, /opt/php53s/etc/php.d/wddx.ini, /opt/php53s/etc/php.d/xmlreader.ini, /opt/php53s/etc/php.d/xmlrpc.ini, /opt/php53s/etc/php.d/xmlwriter.ini, /opt/php53s/etc/php.d/xsl.ini, /opt/php53s/etc/php.d/zip.ini

It should read /etc/php.d not /opt/php53s/etc/php.d/ !!!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php53s confilitcs with php55 from remi !
« Reply #1 on: 2014-03-28, 13:26:18 »
In '/opt/php53s/custom/php-cli.sh', try change:
Code: [Select]
export PHPRC="/opt/php53s/custom"
export PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d"
php_ini="/opt/php53s/custom/php.ini"

exec /opt/php53s/usr/bin/php -c $php_ini $*

to
Code: [Select]
#export PHPRC="/opt/php53s/custom"
#export PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d"
php_ini="/opt/php53s/custom/php.ini"

exec /opt/php53s/usr/bin/php -c $php_ini $*

also in '/usr/local/lxlabs/kloxo/init/php53s/php-cli.sh'.

And then better reboot.

If it's work, that mean 'export' act as 'global' in php-cli.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php53s confilitcs with php55 from remi !
« Reply #2 on: 2014-03-28, 13:30:51 »
In '/opt/php53s/custom/php-cli.sh', try change:
Code: [Select]
export PHPRC="/opt/php53s/custom"
export PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d"
php_ini="/opt/php53s/custom/php.ini"

exec /opt/php53s/usr/bin/php -c $php_ini $*

to
Code: [Select]
#export PHPRC="/opt/php53s/custom"
#export PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d"
php_ini="/opt/php53s/custom/php.ini"

exec /opt/php53s/usr/bin/php -c $php_ini $*

also in '/usr/local/lxlabs/kloxo/init/php53s/php-cli.sh'.

And then better reboot.

If it's work, that mean 'export' act as 'global' in php-cli.

It works ;) No need to reboot;

export PHP_INI_SCAN_DIR="etc/php.d"

And /etc/init.d/httpd restart

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php53s confilitcs with php55 from remi !
« Reply #3 on: 2014-03-28, 14:12:15 »
Try:

Code: [Select]
#!/bin/sh

#export PHPRC="/opt/php53s/custom"
#export PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d"
php_ini="/opt/php52m/custom/php.ini"

exec env -i PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d" /opt/php53s/usr/bin/php -c $php_ini $*
« Last Edit: 2014-03-29, 02:07:21 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php53s confilitcs with php55 from remi !
« Reply #4 on: 2014-03-28, 17:10:03 »
Try:

Code: [Select]
#!/bin/sh

#export PHPRC="/opt/php53s/custom"
#export PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d"
php_ini="/opt/php52m/custom/php.ini"

exec env -i PHP_INI_SCAN_DIR="/opt/php53s/etc/php.d" /opt/php53s/usr/bin/php -c $php_ini $*

I've changed it to php53 which is faster. Now it seems to be ok.

I have php53s modifed for Kloxo, php52m, php53m, php54m, php55m for alternative PHP versions and php 5.5.10 from remi as default PHP.

Now just how to properly make this on production server ;)

I have just old php53s for Kloxo, php52s as alternative and php 5.4.26 from remi as default PHP.

How to fix this:

Quote
-> Running transaction check
---> Package php-common.x86_64 0:5.5.10-1.el6.remi.1 will be reinstalled
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
---> Package php-pecl-zip.x86_64 0:1.12.4-1.el6.remi.5.5 will be obsoleted
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
---> Package php52-common.x86_64 0:5.2.17-101.mr.el6 will be obsoleting
---> Package php53s-fpm.x86_64 0:5.3.28-2.mr.el6 will be updated
---> Package php53s-fpm.x86_64 0:5.3.28-4.mr.el6 will be an update
--> Processing Dependency: php53s = 5.3.28-4.mr.el6 for package: php53s-fpm-5.3.28-4.mr.el6.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.5.10-1.el6.remi.1 will be reinstalled
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
---> Package php-pecl-zip.x86_64 0:1.12.4-1.el6.remi.5.5 will be obsoleted
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
---> Package php53s.x86_64 0:5.3.28-4.mr.el6 will be installed
--> Processing Dependency: php53s-cli = 5.3.28-4.mr.el6 for package: php53s-5.3.28-4.mr.el6.x86_64
--> Processing Dependency: php53s-common = 5.3.28-4.mr.el6 for package: php53s-5.3.28-4.mr.el6.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.5.10-1.el6.remi.1 will be reinstalled
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
---> Package php-pecl-zip.x86_64 0:1.12.4-1.el6.remi.5.5 will be obsoleted
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.10-1.el6.remi.1.x86_64
---> Package php53s-cli.x86_64 0:5.3.28-4.mr.el6 will be installed
---> Package php53s-common.x86_64 0:5.3.28-4.mr.el6 will be installed
--> Finished Dependency Resolution
Error: Package: php-common-5.5.10-1.el6.remi.1.x86_64 (@remi-php55)
           Requires: php-pecl-zip(x86-64)
           Removing: php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64 (@remi-php55)
               php-pecl-zip(x86-64) = 1.12.4-1.el6.remi.5.5
           Obsoleted By: php-common-5.5.10-1.el6.remi.1.x86_64 (remi-php55)
               Not found
           Available: php-common-5.3.27-3.el6.x86_64 (kloxo-mr-centalt)
               php-pecl-zip(x86-64) = 1.11.0
           Available: php-common-5.4.25-2.el6.remi.x86_64 (remi)
               php-pecl-zip(x86-64) = 1.11.0
           Available: php-common-5.4.26-1.el6.remi.x86_64 (remi)
               php-pecl-zip(x86-64) = 1.11.0
           Available: php-pecl-zip-1.12.3-1.el6.remi.5.5.x86_64 (remi-php55)
               php-pecl-zip(x86-64) = 1.12.3-1.el6.remi.5.5
           Available: php-common-5.3.3-26.el6.x86_64 (base)
               Not found
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
               Not found
           Available: php-common-5.5.10-1.el6.remi.x86_64 (remi-php55)
               Not found
Error: Package: php-common-5.5.10-1.el6.remi.1.x86_64 (remi-php55)
           Requires: php-pecl-zip(x86-64)
           Removing: php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64 (@remi-php55)
               php-pecl-zip(x86-64) = 1.12.4-1.el6.remi.5.5
           Obsoleted By: php-common-5.5.10-1.el6.remi.1.x86_64 (remi-php55)
               Not found
           Available: php-common-5.3.27-3.el6.x86_64 (kloxo-mr-centalt)
               php-pecl-zip(x86-64) = 1.11.0
           Available: php-common-5.4.25-2.el6.remi.x86_64 (remi)
               php-pecl-zip(x86-64) = 1.11.0
           Available: php-common-5.4.26-1.el6.remi.x86_64 (remi)
               php-pecl-zip(x86-64) = 1.11.0
           Available: php-pecl-zip-1.12.3-1.el6.remi.5.5.x86_64 (remi-php55)
               php-pecl-zip(x86-64) = 1.12.3-1.el6.remi.5.5
           Available: php-common-5.3.3-26.el6.x86_64 (base)
               Not found
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
               Not found
           Available: php-common-5.5.10-1.el6.remi.x86_64 (remi-php55)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
« Last Edit: 2014-03-29, 02:06:47 by MRatWork »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php53s confilitcs with php55 from remi !
« Reply #5 on: 2014-03-28, 17:42:05 »
It seems only all modules for PHP 5.5 are working. All other versions have conflicts because they share the same directory.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php53s confilitcs with php55 from remi !
« Reply #6 on: 2014-03-29, 02:25:33 »
It's because conflict between php-* (version 5.3) from centalt and php-* (version 5.5) from remi.

In /etc/yum.repos.d/mratwork.repo yum will see under '[mratwork-centalt]' include 'exclude=openssh* perl* mariadb* php* postfix* exim* ssmtp*'. It's mean kloxo-mr not using 'php*' from centalt. Php branch (version 5.3) in centalt will be update to php55 branch (version 5.5). So, Centalt still not the same branch implementing like IUS do.
..:: 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: php53s confilitcs with php55 from remi !
« Reply #7 on: 2014-03-29, 02:42:42 »
It's because you haven't thought out multiple php configuration.  Each version must have its own modules!
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: php53s confilitcs with php55 from remi !
« Reply #8 on: 2014-03-29, 03:31:17 »
It's because you haven't thought out multiple php configuration.  Each version must have its own modules!
Othewise php for 'multiple php' running well. Default php (install with 'yum install' or 'yum replace') have a trouble with php53s.

You can test php for 'multiple php' with:

1. run 'sh /script/php55m-installer' --> truly it's will be process the php55u from IUS
2. run 'service php-fpm stop'
3. run 'mv -rf /etc/rc.d/init.d/php-fpm /etc/rc.d/init.d/php-fpm.old' and then 'cp -f /opt/php55m/custom/php-fpm.init /etc/rc.d/init.d/php-fpm; chmod 0755 /etc/rc.d/init.d/php-fpm'
4. run 'service php-fpm start'
« Last Edit: 2014-03-29, 05:39:46 by MRatWork »
..:: 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: php53s confilitcs with php55 from remi !
« Reply #9 on: 2014-03-29, 03:56:59 »
[root@cc-server script]# sh php55m-installer
*** BEGIN php55m ***
Error: No matching Packages to list
Error: No matching Packages to list
- No PHP packages exists. Only detecting 'php55u' and 'php55'. Exit
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: php53s confilitcs with php55 from remi !
« Reply #10 on: 2014-03-29, 03:59:39 »
Same for all phpXXm-installer
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: php53s confilitcs with php55 from remi !
« Reply #11 on: 2014-03-29, 05:40:50 »
Php55u only exists in Centos 6. I hope you are already have latest version of 6.5.1.b.
..:: 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: php53s confilitcs with php55 from remi !
« Reply #12 on: 2014-03-29, 05:57:56 »
yes, I have latest 6.5.1b

I an using centos 6.5 final 64 bit.  The installers do not work
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: php53s confilitcs with php55 from remi !
« Reply #13 on: 2014-03-29, 06:05:28 »
I got it, how to install extensions?
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: php53s confilitcs with php55 from remi !
« Reply #14 on: 2014-03-29, 06:10:34 »
Now this error:
[root@cc-server ~]# service php-fpm restart
Stopping php55m-fpm:                                       [FAILED]
Starting php55m-fpm: [29-Mar-2014 01:07:30] ERROR: An another FPM instance seems to already listen on /home/php-fpm/sock/apache.sock
[29-Mar-2014 01:07:30] ERROR: FPM initialization failed
                                                           [FAILED]
[root@cc-server ~]#

I rebooted, still this error.  How to disable first php-fpm?
Christopher

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

 


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

Page created in 0.053 seconds with 21 queries.

web stats analysis