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-27, 20:04:33

Author Topic: php53s does not really work  (Read 8131 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: php53s does not really work
« Reply #15 on: 2014-02-15, 08:17:37 »
With this trick:

1. replace php54 to php53s with 'yum replace php54 --replace-with=php53u'
2. run ORIGINAL php53s-install
3. replace php53u to php54 with 'yum replace php53s --replace-with=php54 --skip-broken'

only php54 packages not installed. It's unnecessary if not using mod_php like ruid2.
..:: 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 does not really work
« Reply #16 on: 2014-02-15, 08:22:26 »
no you misunderstand.  MAIN php54 package is skipped due to conflict.

php -v shows 5.3
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 does not really work
« Reply #17 on: 2014-02-15, 08:31:52 »
Yes, 'php54' package (aka php54.rpm) will not installed. It's not importance if not using mod_php like ruid2. Other packages (like 'php54-fpm', 'php54-gd') still installed.

If using php-fpm_worker/_event in php-type, we don't need php54 packages (content of 'mod_php'). That it.

So, conflict because php53s also 'Provides' for mod_php. I will remove this 'provides' in next release of php53s.
..:: 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 does not really work
« Reply #18 on: 2014-02-15, 08:36:44 »
As I stated, php54 is not installed.

From command line php -v states 5.3 not 5.4.  So scripts ran from cron or command line will not be interpreted by php54, even if php54 is used through web server.  I am testing this theory.

Same goes for php53s.  If you remove command line package, will KloxoMR function?  Why no conflict with php52s?

I really want KloxoMR running php53s so I can use latest phpmyadmin.  But at this time I am running upcp -y and setting back up php54 to function properly.  There is a problem here.
« Last Edit: 2014-02-15, 08:44:30 by chrisf »
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 does not really work
« Reply #19 on: 2014-02-15, 08:40:12 »
Change php53s-install with:
Code: [Select]
#!/bin/sh

### don't install php53s because conflict with other php version; install php-cli instead
yum -y install php53s-cli php53s-bcmath php53s-enchant php53s-fpm php53s-gd php53s-imap \
php53s-intl php53s-ldap php53s-litespeed php53s-mbstring php53s-mcrypt \
php53s-mysql php53s-pdo php53s-process php53s-pspell php53s-recode php53s-snmp \
php53s-soap php53s-tidy php53s-xml php53s-xmlrpc

if [ "$(uname -m)" == "x86_64" ] ; then
ln -sf /opt/php53s/usr/lib64 /opt/php53s/usr/lib
fi

chmod 755 /usr/local/lxlabs/kloxo/init/php53s-cgi.sh
chmod 755 /usr/local/lxlabs/kloxo/init/php53s-cli.sh

ln -sf /usr/local/lxlabs/kloxo/init/php53s-cli.sh /usr/bin/lphp.exe
ln -sf /usr/local/lxlabs/kloxo/init/php53s-cli.sh /usr/bin/lxphp.exe

So, we don't need install php53s but php53s-cli.
..:: 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 does not really work
« Reply #20 on: 2014-02-15, 08:55:04 »
THAT WORKED!

[root@Server1 ~]# lxphp.exe -v
PHP 5.3.28 (cli) (built: Feb 13 2014 13:46:45)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

[root@server1 ~]# php -v
PHP 5.4.24 (cli) (built: Jan 10 2014 17:51:19)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo
[root@server1~]#

No conflicts, both installed.  Add it to the repo :)

Thank you Mustafa.
« Last Edit: 2014-02-15, 09:02:59 by chrisf »
Christopher

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

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php53s does not really work
« Reply #21 on: 2014-02-16, 23:26:53 »
It works well on my test server:

Quote
ps aux | grep kloxo
root      1415  0.0  0.0 108164  1380 ?        S    23:14   0:00 /bin/sh /usr/bin/lxphp.exe /usr/local/lxlabs/kloxo/sbin/kloxo.php master
root      1427  0.0  0.0 467160 31664 ?        S    23:14   0:00 /opt/php53s/usr/bin/php -c /usr/local/lxlabs/kloxo/init/php53s/php.ini /usr/local/lxlabs/kloxo/sbin/kloxo.php master
root      1430  0.0  0.0 445688  7020 ?        Ss   23:14   0:00 php-fpm: master process (/usr/local/lxlabs/kloxo/init/php53s/php-fpm.conf)   
lxlabs    1443  0.0  0.0  56836  1616 ?        Ssl  23:14   0:00 /usr/local/lxlabs/kloxo/init/kloxo-hiawatha -c /usr/local/lxlabs/kloxo/init
root      1874  0.0  0.0 103264   888 pts/0    S+   23:21   0:00 grep kloxo

Quote
[root@nowosci ~]# lxphp.exe -v
PHP 5.3.28 (cli) (built: Feb 13 2014 13:46:45)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

but does not work well on my slave server:

Quote
[root@backup ~]# ps aux | grep kloxo
root     12976  0.0  0.0 106112  1172 pts/3    S    17:25   0:00 /bin/sh /usr/bin/lxphp.exe /usr/local/lxlabs/kloxo/sbin/kloxo.php slave
lxlabs   12980  0.1  0.3 461660 12608 ?        Ss   17:25   0:00 /opt/php52s/bin/kloxo-phpcgi
root     12985  0.1  0.7 461980 28524 pts/3    S    17:25   0:00 /opt/php53s/usr/bin/php -c /usr/local/lxlabs/kloxo/init/php53s/php.ini /usr/local/lxlabs/kloxo/sbin/kloxo.php slave
lxlabs   12992  0.5  0.4 464628 17284 ?        S    17:25   0:01 /opt/php52s/bin/kloxo-phpcgi
lxlabs   12993  0.2  0.4 469212 16316 ?        S    17:25   0:00 /opt/php52s/bin/kloxo-phpcgi
lxlabs   12994  0.2  0.3 465888 14276 ?        S    17:25   0:00 /opt/php52s/bin/kloxo-phpcgi
lxlabs   12995  0.4  0.4 467124 20020 ?        S    17:25   0:01 /opt/php52s/bin/kloxo-phpcgi
lxlabs   12996  0.1  0.3 465964 15860 ?        S    17:25   0:00 /opt/php52s/bin/kloxo-phpcgi
lxlabs   13012  0.0  0.0 450104  1704 ?        Ssl  17:25   0:00 /usr/sbin/kloxo-hiawatha -c /usr/local/lxlabs/kloxo/init
root     13287  0.0  0.0 103316   828 pts/5    S+   17:29   0:00 grep kloxo

Quote
[root@backup ~]# lxphp.exe -v
PHP 5.3.28 (cli) (built: Feb 13 2014 13:46:45)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: php53s does not really work
« Reply #22 on: 2014-02-16, 23:30:49 »
Got it !

I had a custom.init for Kloxo because Mustafa told me to add some more spawn-fcgi processes in the past. Now works ok ;)

 


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

Page created in 0.046 seconds with 22 queries.

web stats analysis