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-08, 01:45:52

Author Topic: Install php 5.2  (Read 3873 times)

0 Members and 1 Guest are viewing this topic.

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Install php 5.2
« on: 2014-04-10, 03:56:28 »
Hello

I'm using the latest version of kloxo on Centos 6.5 32
I've tried to install php 5.2 via the webserver configuration but it didn't work, so I did run "yum replace php53u --replace-with=php52" to find out what the problem is and I've got the following error message:

Quote
Error: Package: php52-mysql-5.2.17-101.mr.el6.i386 (mratwork-release-version-arch)
           Requires: libmysqlclient.so.18(libmysqlclient_18)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

How can I fix this?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Install php 5.2
« Reply #1 on: 2014-04-10, 04:32:24 »
If still using Kloxo-MR 6.5.0, try replace mysql first with 'yum replace mysql --replace-with=mysql55'.

In Kloxo-MR, php 5.2 will support via 'multiple php' (still not work in beta, aka 6.5.1.b).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Install php 5.2
« Reply #2 on: 2014-04-10, 12:48:11 »
Thanks for your answer
I have version 6.5.1.b-2014040901 does this means that I can't have php 5.2 for now?

One more question please, in my old server (using kloxo) I have mod_php as Php Type. Why it's not available in kloxo mr and is it possible to add it?
« Last Edit: 2014-04-10, 12:51:37 by yogi »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Install php 5.2
« Reply #3 on: 2014-04-10, 13:01:25 »
Update your 6.5.1.b to 2014041001. You can install php 5.2 with this update.

Choose mod_php_ruid2 because it's as the same as mod_php but secure. Pure mod_php already removed because security reason.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Install php 5.2
« Reply #4 on: 2014-04-10, 13:25:53 »
It says that Latest RPM Version:   6.5.1.b-2014040901 (same as mine)

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Install php 5.2
« Reply #5 on: 2014-04-10, 13:27:38 »
run 'cd /; yum clean all; yum update'. Latest version is 2014041001.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Install php 5.2
« Reply #6 on: 2014-04-10, 13:36:27 »
I got the following:

0 packages excluded due to repository protections
Setting up Update Process
No Packages marked for Update

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Install php 5.2
« Reply #7 on: 2014-04-10, 13:54:00 »
It's OS problem (especially Centos 6). Try next hours or tomorrow.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Install php 5.2
« Reply #8 on: 2014-04-10, 13:55:42 »
Ok thank you :)

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Install php 5.2
« Reply #9 on: 2014-04-10, 16:23:31 »
Hey again

This time the update was found, kloxo mr updated to 2014041003 but I still can't switch to php 5.2 via control panel or via command line (getting the same error)

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Install php 5.2
« Reply #10 on: 2014-04-10, 16:36:20 »
Try 'cd /; yum clean all; yum replace php53u --replace-with=php52' from command line and inform here what's you see.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Install php 5.2
« Reply #11 on: 2014-04-10, 17:47:42 »
..
..
..
--> Processing Dependency: php53u(api) = 20090626 for package: php53u-pecl-geoip-1.0.8-1.ius.el6.i686
--> Processing Dependency: php53u(zend-abi) = 20090626 for package: php53u-pecl-geoip-1.0.8-1.ius.el6.i686
--> Processing Dependency: /usr/bin/pecl for package: php53u-pecl-geoip-1.0.8-1.ius.el6.i686
--> Processing Dependency: /usr/bin/pecl for package: php53u-pecl-geoip-1.0.8-1.ius.el6.i686
--> Running transaction check
---> Package mod_suphp.i386 0:0.7.2-1.mr.el5 will be erased
---> Package php52-mysql.i386 0:5.2.17-101.mr.el6 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18) for package: php52-mysql-5.2.17-101.mr.el6.i386
---> Package php53u-pear.noarch 1:1.9.4-3.ius.el6 will be erased
---> Package php53u-pecl-geoip.i686 0:1.0.8-1.ius.el6 will be erased
--> Finished Dependency Resolution
Error: Package: php52-mysql-5.2.17-101.mr.el6.i386 (mratwork-release-version-arch)
           Requires: libmysqlclient.so.18(libmysqlclient_18)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


Same error

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Install php 5.2
« Reply #12 on: 2014-04-11, 03:04:13 »
Hmmm,

Php52 need recompile with dependencies to mysql55. Wait for next update.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline yogi

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Install php 5.2
« Reply #13 on: 2014-04-11, 18:41:46 »
Thank you! I was able to switch to php 5.2 after updating today :)
But I think there is a small problem because when I run "sh /scrtipt/fixweb" I keep seeing those error:

Quote
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/geoip.so' - /usr/lib/php/modules/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/intl.so' - /usr/lib/php/modules/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/phar.so' - /usr/lib/php/modules/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xmlrpc.so' - /usr/lib/php/modules/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0


Also I noticed that kloxo mr generate 2 lines in .htaccess that cause error 500
   
Quote
php_flag display_errors
    php_flag log_errors
I set it to on and it worked
php_flag display_errors on
php_flag log_errors on
« Last Edit: 2014-04-11, 22:32:22 by yogi »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Install php 5.2
« Reply #14 on: 2014-04-12, 09:50:20 »
Update your KLoxo-MR 6.5.1.b to 2014041201 and then running 'sh /script/phpm-config-setup php53s'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.049 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM