How do you enable Memcached PHP extensions after using HomeBrew?

I recently installed memcached and homebrew, I am not entirely sure how to enable my PHP environment, because I added extension = memcached in /etc/php.ini in Lion OS X. so.

Even if I restart apache, nothing still loads.

If I call get_loaded_extensions(), I don’t see memcached in the list, how can I enable it when installing from homebrew?

Edit:

What I did in Terminal was:

$ brew install memcached

It installed very well, now I go /etc/php.ini and attach:

extension = memcached.so

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

This is the message from PHP, so stick to it.

It is:

>The file you specified does not exist. Check your file system. >The file you specified cannot be read by PHP, please check the permissions of the file. >The file you specified is not compatible with the PHP binary file. Check if you have compiled the correct source code, and the compilation goes smoothly.

I recently installed memcached and homebrew, I am not entirely sure how to enable my PHP environment, because I added it in /etc/php.ini in Lion OS X extension = memcached.so.

Even if I restart apache, nothing still loads.

If I call get_loaded_extensions(), I don’t see memcached in the list, how can I enable it when installing from homebrew?

Edit:

What I did in Terminal was:

$ brew install memcached

It installed very well, now I go /etc/php.ini and attach:

extension = memcached.so

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

This It’s the message from PHP, stick with it.

It is:

>The file you specified does not exist. Check your file system. >The file you specified cannot be read by PHP, please check the permissions of the file. >The file you specified is not compatible with the PHP binary file. Check if you have compiled the correct source code, and the compilation goes smoothly.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5216 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.