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-29, 01:00:38

Author Topic: Issues with PHP  (Read 3923 times)

0 Members and 1 Guest are viewing this topic.

Offline tega

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Issues with PHP
« on: 2015-09-01, 04:58:17 »
Hello, so my php-error.log is full of these errors (literally they happen every minute, the file is already 7MB long):

Code: [Select]
[01-Sep-2015 03:56:43 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/memcached.so' - libmemcached.so.11: cannot open shared object file: No such file or directory in Unknown on line 0
[01-Sep-2015 03:57:05 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/gearman.so' - libgearman.so.8: cannot open shared object file: No such file or directory in Unknown on line 0
[01-Sep-2015 03:57:05 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54m/usr/lib/php/modules/gearman.so' - libgearman.so.8: cannot open shared object file: No such file or directory in Unknown on line 0
[01-Sep-2015 03:57:05 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/memcached.so' - libmemcached.so.11: cannot open shared object file: No such file or directory in Unknown on line 0
[01-Sep-2015 03:57:05 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54m/usr/lib/php/modules/memcached.so' - libmemcached.so.11: cannot open shared object file: No such file or directory in Unknown on line 0
[01-Sep-2015 03:57:05 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/gearman.so' - libgearman.so.8: cannot open shared object file: No such file or directory in Unknown on line 0
[01-Sep-2015 03:57:05 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php54s/usr/lib/php/modules/memcached.so' - libmemcached.so.11: cannot open shared object file: No such file or directory in Unknown on line 0

This is my sysinfo:
Code: [Select]
A. Kloxo-MR: 7.0.0.b-2015083001
   - Web: hiawatha-9.14.0-f.6.mr.el6.i386
   - PHP: php54s-5.4.44-1.w6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) i686
   - Hostname: darkside.server1
C. Services:
   1. MySQL: MariaDB-server-10.0.21-1.el6.i686
   2. PHP:
      - Branch: php54-cli-5.4.44-1.ius.el6.i686
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.44-1.w6
        * php55m-5.5.28-1.ius.el6
        * php56m-5.6.12-1.ius.el6
      - Used: php54m
   3. Httpd: httpd24u-2.4.16-2.ius.el6.i686
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: --uninstalled--
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           512        480         31          6          0        317
   -/+ buffers/cache:        162        349
   Swap:          512        188        323
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/simfs      100G   43G   58G  43% /

So I went on the webserver config and I try to change the php-branch to php5.6 hoping that may help to fix the problem, but I choose php56 and then after update, it gets a message: "Information:
php_branch successfully updated for pserver-localhost"

But nothing happens it stays on php54. It's ok I can stay with php54, just would like to change it if I need in the future.

Anyway back to the php errors, so I went "full commando" and did "sh /script/phpm-all-install" and I noticed this when was installing the versions 5.4, 5.5 and 5.6:

Code: [Select]
Transaction Check Error:
  file /usr/lib/libhashkit.so.2.0.0 conflicts between attempted installs of libmemcached-last-libs-1.0.18-2.el6.remi.i686 and libmemcached10-1.0.16-1.ius.el6.i686
  file /usr/lib/libmemcached.so.11.0.0 conflicts between attempted installs of libmemcached-last-libs-1.0.18-2.el6.remi.i686 and libmemcached10-1.0.16-1.ius.el6.i686
  file /usr/lib/libmemcachedutil.so.2.0.0 conflicts between attempted installs of libmemcached-last-libs-1.0.18-2.el6.remi.i686 and libmemcached10-1.0.16-1.ius.el6.i686

So I guess those php extensions are not working correctly because they are conflicting with anything else, how can I fix that?

Thanks in advance

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with PHP
« Reply #1 on: 2015-09-01, 08:07:16 »
It's because you are using other repos that may conflict with repo from mratwork itself. Disabled your remi repo!
« Last Edit: 2015-09-01, 09:03:22 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline tega

  • Valuable Member
  • *
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Issues with PHP
« Reply #2 on: 2015-09-01, 08:46:39 »
So disabled repo, did "sh /script/phpm-all-install --force" and all good this time, no errors and looks like the error on php-error.log I reported is gone too.

But as for changing the php branch, when I try to change it from php 5.4 to 5.6 It stays on 5.4 and I checked the php-error.log and this is what happens:

Code: [Select]
[01-Sep-2015 07:51:03 Europe/London] PHP Fatal error:  Call to a member function getThrow() on a non-object in /usr/local/lxlabs/kloxo/httpdocs/lib/html/lib.php on line 5527
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'bz2' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'calendar' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'ctype' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'exif' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'ftp' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'gettext' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'gmp' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'iconv' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'shmop' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'SimpleXML' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'sockets' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'tokenizer' already loaded in Unknown on line 0
[01-Sep-2015 07:51:04 Europe/London] PHP Warning:  Module 'xml' already loaded in Unknown on line 0

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with PHP
« Reply #3 on: 2015-09-01, 09:04:44 »
Use 'php56m' in 'php used' instead select 'php branch'. And don't change 'php branch' (stay in php 5.4).
..:: 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.034 seconds with 18 queries.

web stats analysis