Since i enabled memcached in my project im unable to do anything with my command lines. I installed X-Code from appstore, and libevent, memcached, libmemcached with homebrew. i put the extensionmemcached.so after all extensions (instead of end of php.ini) like this : Extensions extensionapcu.so extensiona. The key part is to find where other PHP extensions are kept, and copy the new extension to that location.Ĭp modules/memcache.so /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/ Enable & Test memcache. Hey all, This error is driving me nuts for the past 2 days now. I have MAMP on my machine, and I would like to install memcache for php, because one of my project throws errors like Fatal error: Class 'Memcache' not found. works great with my previous version of MAMP 2 (php 5.6.x) but not with current release of MAMP 3. Note that if you're building on MAMP 1.9 / PHP 5.3, these paths will probably be slightly different. Code Igniter File Upload Class - How to change saved filename Invalid argument supplied for foreach() Codeigniter: SMTP mail not working Codeigniter 3. There's a couple things to note about that command: we're asking it to compile both i386 (32 bit) and x86_64 (64 bit) versions of the library, and we're using MAMP's PHP config to do it.įinally, copy the built library into your PHP extensions directory. So I just have to add extensionmemcache.so in my php. configure -with-php-config=/Applications/MAMP/bin/php5/bin/php-config 5 How to setup memcache, in XAMPP mac osx lion. Now, from the memcache-2.2.6 directory, run phpize to create the config file: MAMP/bin/php/php5.3.6/conf/php.ini add line: extensionmemcache.so If. Ln -s /Developer/SDKs/MacOSX10.5.sdk/usr/include/ /Applications/MAMP/bin/php5/include It works really quickly on your machine, but as soon as. For PHP 5.3, you should use the 10.6 SDK. A selected PHP cache was in some cases no longer selected after quitting and restarting MAMP PRO. If you're using PHP 5.2, you should use the 10.5 SDK, as OS X 10.5 came with PHP 5.2. Note that there is a MacOS X 10.5 SDK and a 10.6 SDK. The easy fix is just to comment out this lines, and avoid using persistent connections for the moment: arguments: persistentid: sessionmemcachedprefix This solves the issue, even though its not ideal. MAMP doesn't include the PHP C header files, so you need to link them in from the Apple Developer SDK folder. But for that youd need to create a wrapper class of Memcached. Tar xvfz memcache-2.2.6.tgz & cd memcache-2.2.6 This is the easiest way:Įxtact the source & enter the memache-2.2.6 dir:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |