![]() ![]() ![]() Somewhere in this file, you need to configure Memcache. Search for „ Extensions“ and add the following line:Įxtension=memcache.so Step 9 – Configure Memcache To do this open the MAMP application, go to File > Edit Template > PHP > PHP 5.3.6 php.ini Step 8 – Add the extension to the php.ini file Sudo cp modules/memcache.so /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/. Make Step 7 – Copy the extension into MAMP configure –disable-dependancy-tracking –disable-shared -enable-static Applications/MAMP/bin/php/php5.3.6/bin/phpize Step 6 – Compile the Memcached extensionĬFLAGS=‘-O3 -fno-common -arch i386 -arch x86_64 -g -Os‘ LDFLAGS=‘-O3 -arch i386 -arch x86_64′ CXXFLAGS=‘-O3 -fno-common -arch i386 -arch x86_64 -g -Os‘. Sudo chmod +xrw /Applications/MAMP/bin/php/php* Step 2 – Switch to the download directoryĬd ~/Downloads/ Step 3 – Download the memcache sourceĬurl > memcache-2.2.5.tgz Step 4 – Unpack the source and go into the folderĬd memcache-2.2.5 Step 5 – PHPize the Memcache extension files Step 1 – Make the MAMP php files executable Most parts of the following steps are taken from Leon’s Website. What you download is only the installer – install it after download! After installing Xcode, you are ready to compile memcache for MAMP. That’s why I decided to create this article so you don’t have to make the same mistakes as I did… Install Xcodeįirst, you need to download the free Xcode from the App-Store. I am using MAMP Pro Version 2.0 so a few paths are different. This article of Leon Barrett was the key to success. (it’s 32Bit, not 64Bit…)Īfter digging around a bit I finally could make it run. Now, MAMP Pro comes with the memcache extensions enabled – unfortunately it doesn’t work. If you have inserted the code into your localconf.php file and hit the refresh-button, you’ll get this htaccess file or – as I use to do it – in the vHost config: Take a look at line 9 – I use such settings to make configurations on server / environment level – you can then set this variables in the a. 'backend' => 't3lib_cache_backend_MemcachedBackend', $mserver = $_SERVER ? $_SERVER : 'localhost:11211' 'backend' => 't3lib_cache_backend_FileBackend', 'frontend' => 't3lib_cache_frontend_VariableFrontend', The code below is for Typo3 4.5.X to be put into typo3conf/localconf.php: – especially there are more defaults so you don’t have to set all of this. ![]() Take care – some values will change in Typo3 4.6. Configure Typo3 to use memcachedĭo enable the framework you need to set some values in the localconf-file. The caching framework makes use of several caching backend – DB, File, RAM-Memory, APC etc.įor my installation I wanted to use the apache memcache extension. Newer versions of Typo3 come with a caching framework that allows you to define different caching methods for different tasks and even lets you integrate your own caching mechanisms into your extensions. My development environment is a MacBook Pro running OSX Lion with MAMP Pro 2.0. For my latest project, we used Extbase and Fluid with Typo3 4.5. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |