PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, November 12, 2022

[FIXED] How to enable the memcached PHP extension after installing with homebrew?

 November 12, 2022     homebrew, macos, memcached, php     No comments   

Issue

I recently installed memcached with homebrew, I'm not entirely sure how to enable it on my PHP envirionment since I added extension=memcached.so in /etc/php.ini in Lion OS X.

Even I restarted apache too, nothing is still loaded.

If I call get_loaded_extensions(), I do not see memcached in the list, how can I enable it when installed from homebrew?

EDIT:

What I did in Terminal was:

$ brew install memcached

It installed just fine, now I went to /etc/php.ini and appended:

extension=memcached.so


Solution

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/memcached.so'

That's the information PHP is giving you, stick to it.

It's either:

  • The file you have specified does not exists. Check your file-system.
  • The file you've specified can not be read by PHP, check the rights of the file.
  • The file you've specified is incompatible with your PHP binary. Check if you have compiled the right sources and compilation went well.


Answered By - hakre
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing