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, 03:43:11

Author Topic: memcached extension for php70m  (Read 2507 times)

0 Members and 1 Guest are viewing this topic.

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
memcached extension for php70m
« on: 2016-05-16, 04:11:49 »
I need memcached for a project but there's no memcache/memcached extension for php70m.

I've already installed memcached (server) and libmemcached (api) packages, but I need the extension for php70m.

I found it here https://github.com/php-memcached-dev/php-memcached/tree/php7 but I can't compile it:

Code: [Select]
[root@server php-memcached]# phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.

There are two packages for my php version: php70w-devel and php70u-devel, are those letters the name of the branch? maybe work/unstable branch? Anyways I get conflicts for both of them...

If the headers for php70m are already installed, can someone tell me where are they? Should I copy them to /usr/include/php so I can use phpize?

Thanks!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: memcached extension for php70m
« Reply #1 on: 2016-05-16, 04:36:59 »
You can't compile php-memcached in php70m. Need change 'php branch' to php70w and then install php70w-devel before compile php-memcached.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: memcached extension for php70m
« Reply #2 on: 2016-05-16, 07:36:34 »
Oh right! Thanks.

But now I'm getting a different error:

Code: [Select]
checking for libmemcached location... configure: error: memcached support requires libmemcached. Use --with-libmemcached-dir=<DIR> to specify the prefix where libmemcached headers and library are located
memcached installed libmemcached10 as dependency, I don't see why it's not detecting the files...

Ok I just found the additional package:

Code: [Select]
yum install libmemcached10-devel
« Last Edit: 2016-05-16, 07:41:05 by Chazy Chaz »

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: memcached extension for php70m
« Reply #3 on: 2016-05-16, 07:46:38 »
Just one more thing: Where do I have to copy the memcached.so file? /opt/php70m/usr/lib64/php/modules/?
« Last Edit: 2016-05-16, 07:48:46 by Chazy Chaz »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: memcached extension for php70m
« Reply #4 on: 2016-05-16, 07:55:09 »
.ini file inside /opt/php70m/etc/php.d and .so file inside /opt/php70m/usr/lib64/php/modules (for 64bit OS) or /opt/php70m/usr/lib/php/modules (for 32bit OS).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: memcached extension for php70m
« Reply #5 on: 2016-05-16, 08:05:14 »
Thank you so much Mustafa. I really appreciate your work and help.  :)

 


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

Page created in 0.093 seconds with 19 queries.

web stats analysis