Coder Social home page Coder Social logo

php-memcached-mamp's Introduction

Hi there 👋

10+ years of versatile experience in the analysis, design, development, and implementation of N-tier architecture-based applications of enterprise, which includes full-stack development using web technologies. Adapt to all phases of the project life cycle from inception to implementation. Good hands-on experience in Advertising, HR, Aerospace and Aviation industry. Hands-on experience in DevOps and Agile. Expertise in Ruby, PHP, Python. Hands-on experience in Rails and Laravel. Experience in front-end frameworks React, VueJS. Experience working with UNIX, Linux shell and bash scripting. Experience in Web Services Technologies like GraphQL, REST, Node-JS and implemented SOA architecture with web services. Having Good Experience in RDBMS like PostgreSQL and MySQL. Good knowledge of Data Structures, Algorithms and Object-Oriented design concepts. Ability to learn and adapt to new technologies very quickly. Excellent written and verbal communication skills, presentation and problem-solving skills.

php-memcached-mamp's People

Contributors

atartanian avatar joemurray avatar majksner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-memcached-mamp's Issues

MAMP 3.2.1 with PHP 5.6.7

Hi I tried your instructions but I get following error in my log
/Applications/MAMP/bin/php/php5.6.7/lib/php/extensions/no-debug-non-zts-20131226/memcached.so: unknown file type, first eight bytes: 0x0A 0x0A 0x0A 0x3C 0x21 0x44 0x4F 0x43 in Unknown on line 0

I presume it's because I tried your php 5.6.2 memcached.so while I would need a 5.6.7 version.

I tried doing it manually (with make etc) but I soon got stuck way over my head, needing to add components like php_session.h etc...

How can I make this work for MAMP 3.2.1 with PHP 5.6.7?

Thank you in advance

php 7.0.0

Can you compile .so file for php version 7.0.0?

Thanks!

PHP Startup: Unable to load dynamic library

I've got the following error with MAMP 3.4:

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - dlopen(/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so, 9): no suitable image found.  Did find:
    /Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so: unknown file type, first eight bytes: 0x0A 0x0A 0x0A 0x3C 0x21 0x44 0x4F 0x43 in Unknown on line 0

brew install fails

Hi,

brew install memcached

Gives me the error:

==> Installing memcached dependency: libevent
==> Downloading https://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "libevent"
Download failed: https://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz

and

brew install libmemcached

Gives me the error:

==> Installing dependencies for libmemcached: libevent, memcached
==> Installing libmemcached dependency: libevent
==> Downloading https://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "libevent"
Download failed: https://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz

Is there another way to install these dependencies?

Is download corrupt?

I right-click and save the memcached.so file from php5.3.14, save it into the Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626 folder, but get this in the php log when I start the server:

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so' - dlopen(/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so, 9): no suitable image found. Did find:
/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so: unknown file type, first eight bytes: 0x0A 0x0A 0x0A 0x3C 0x21 0x44 0x4F 0x43 in Unknown on line 0

Support for 7.1

While the extension is available, and after also including igbinary I found out that I also need 'msgpack.so'.

I'm not sure how others have got Memcached to work with MAMP 4 on PHP 7.1. But I would love it if you revived the project :)

Cheers!

Unable to Load Dynamic Library

Here is the message I receive after downloading the memcached.so file and placing it in the appropriate folder, then adding the module reference to php.ini (MAMP 3.5 is that the issue?):

PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - dlopen(/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so, 9): no suitable image found. Did find:
/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so: unknown file type, first eight bytes: 0x0A 0x0A 0x0A 0x0A 0x3C 0x21 0x44 0x4F in Unknown on line 0

Do you know what may be happening?

MAMP Installation - followed directions received error in php_error.log

After following install directions I received this error in the log:
[03-Feb-2013 17:05:03 UTC] PHP Fatal error: Class 'Memcache' not found in /Users/johnmeah/AWS/memreasdev/s3_jquery/public/mamp_memcached_test.php on line 2
[03-Feb-2013 17:15:13 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/“memcached.so”' - dlopen(/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/“memcached.so”, 9): image not found in Unknown on line 0

The first error is from a simple php i found below (note: I'm new to memcached so I'm not sure if this is the right code to test):

connect('127.0.0.1', 11211) or die ("Could not connect"); //connect to memcached server $mydata = "i want to cache this line"; //your cacheble data $memcache->set('key', $mydata, false, 100); //add it to memcached server $get_result = $memcache->get('key'); //retrieve your data var_dump($get_result); //show it ?>

Note: I'm running 64bit Mac.

Am I missing something?

Thanks,
-J

It can't work on mamp 3.4

here is the log

  Reason: image not found in Unknown on line 0
[01-Oct-2015 22:44:36 Asia/Shanghai] PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - dlopen(/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so, 9): Library not loaded: /usr/local/lib/libmemcached.11.dylib
  Referenced from: /Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/memcached.so

PHP 5.4.10

Any chance to get a memcached.so file for 5.4.10?

this can't works.

I used MAMP PRO 3.0.4.
phpinfo view ok,but php can't works.
error info:
Fatal error: Class 'Memcache' not found in /Users/aa/web/jk/public/test.php on line 9

test.php
$memcache = new Memcache; // <=== this line 9
$memcache->connect('localhost', 11211) or die ("Could not connect");
$memcache->set('key', 'test');
$get_value = $memcache->get('key');
echo $get_value;

installation instruction

After running the two brew install command lines in the dependencies section, where do I find the memcached.so file for the first line of the installation instructions?

Slightly out of date

If you are having these Apache errors:

Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so' - dlopen(/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so, 9): Library not loaded: /usr/local/lib/libmemcached.10.dylib
Referenced from: /Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so
Reason: image not found in Unknown on line 0

The reason is twofold:

  1. You need to set your dynamic library variable:

chris@floyd $ echo $DYLD_LIBRARY_PATH

chris@floyd $ export DYLD_LIBRARY_PATH=/usr/local/lib/
chris@floyd $ echo $DYLD_LIBRARY_PATH
/usr/local/lib/

  1. Homebrew now installs version 11 of libmemcached, not 10 as expected. After an hour of trying to get Memcached working with MAMP, frustratingly I just renamed /usr/local/lib/libmemcached.11.dylib to libmemcached.10.dylib instead of installing the older version (to see if that was indeed the error). Expecting the age-old XKCD comic raptor to come along and wipe me out, it actually worked.

MAMP 2.1.1

Hi,
Is MAMP 2.1.1 supported?

This is what I have installed:

autoconf libevent libmemcached memcached

Thanks!

Help!

Tried installing followed directly correctly, I believe, and having an error I can't figure out. When starting up MAMP I get this:

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so' - dlopen(/Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so, 9): Library not loaded: /usr/local/lib/libmemcached.10.dylib
Referenced from: /Applications/MAMP/bin/php/php5.3.14/lib/php/extensions/no-debug-non-zts-20090626/memcached.so
Reason: image not found in Unknown on line 0

First I thought I'd put memcached.so in the wrong place but it's definitely there. Have you run across this before?

Trust

How can we trust that these binaries are clean, and nothing iffy with them?

Installation script

I see that this repository is updated when MAMP comes out with a new version.

How about a script that automates the installation/update process?

A script could check MAMP's bin/ folder for versions of php and copy the corresponding memcached.so files into the right place. It could also search for and add the required lines to the php.ini files if they dont exist -- this could be done for php.ini files in both MAMP as well as MAMP Pro (which stores them in a separate place).

Mamp 3.5.2 / php 7.0.8 not working

works great with my previous version of MAMP 2 (php 5.6.x)
but not with current release of MAMP 3.

i put the extension=memcached.so after all extensions (instead of end of php.ini)
like this :

; Extensions

;extension=apcu.so
;extension=apc.so

extension=imap.so
;extension=yaz.so
extension=mcrypt.so
extension=gettext.so
extension=pgsql.so
extension=pdo_pgsql.so

;extension=imagick.so
;extension=tidy.so
;extension=oauth.so

extension=memcached.so

Apache starts, but php return an error Fatal error: Uncaught Error: Class 'Memcached' not found

PHP 5.4.4

Is there any chance we could get a .so file compiled for 5.4.4? That would be a huge help!

Thanks!

test memcached

hi there,
i hope its ok to mention this here

i followed the steps you provided,
my brew list is

drush libevent libmemcached memcached wget

i double checked my php.ini and copied the extension file and restarted but in phpinfo() there is no extension and i cant
new Memcached();
how to test?

can there be a $PATH issue ..
what am i missing
thnx

Incorrect instructions for MAMP (non PRO)

In step 2 the instructions say to open MAMP and click File -> Template, etc...

However MAMP does not in fact have a File Menu:

MAMP Menu Screenshot

These instructions seem to be for the 'PRO' version of MAMP, without ever actually mentioning it.

For non-PRO users, I would like to suggest that this is clarified, and that you add a sentence stating that non-Pro users just need to manually edit their ini files (found in Applications/MAMP/bin/php/php5.x.x/conf/php.ini

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.