- Install memcached. I'd suggest using homebrew.
brew install memcached - Select your desired version of PHP that you'd like to use in MAMP. This dropdown is located in the PHP tab in MAMP PRO.
- Visit the Downloads Page on php.net and download the source code. If your release isn't listed, visit the Releases page.
- Extract the source into
/Applications/MAMP/bin/php/[php version folder]/include/php. /Applications/MAMP/bin/php/[php version folder]/include/php/configure/Applications/MAMP/bin/php/[php version folder]/bin/pecl i memcache.- Add
extension=memcache.soto your php.ini- MAMP Pro:
/Applications/MAMP\ Pro/MAMP\ PRO.app/Contents/Resources/php[your php version].ini
- MAMP Pro:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ref:- http://cambio.name/personal/content/installing-drush-7x-adding-dependencies-using-composer | |
| Installing Drush 7.x (Adding dependencies using composer) | |
| Submitted by admin on Sat, 07/12/2014 - 14:23 | |
| 1. Download package in some folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://alexrayu.com/blog/saveupdate-field-collection-without-nodesave | |
| // Get field collection (supposedly containing one image with meta data) | |
| $fc = entity_load('field_collection_item', array($fcid)); | |
| // If we were to have multi-value fc's, we weould have a cycle here in place of current() | |
| $fc = current($fc); | |
| // Get meta data. A custom function. | |
| $meta = custom_get_meta_data($fc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ref :- https://drupal.stackexchange.com/questions/95897/apache-solr-4-6-0-installation-and-compatibility-with-drupal7/124038#124038 | |
| You aren't alone I had to scower the internet and read several articles before I truly understand all of this. I tried about three different methods until I finally got it right! | |
| If you are using Debian/Ubuntu (with Tomcat7) it's even easier then most outline. I preferred this over Lullabot since when you install it through Ubuntu it's actually a service and less fiddling :) | |
| Install Java | |
| apt-get install java7-jdk | |
| Install Tomcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ref:- https://www.ndchost.com/wiki/apache/redirect-http-to-https | |
| RewriteEngine On | |
| RewriteCond %{HTTPS} off | |
| RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| #MongoDB | |
| $conf['mongodb_connections'] = array( | |
| 'default' => array( // Connection name/alias | |
| 'host' => 'localhost', // Omit USER:PASS@ if Mongo isn't configured to use authentication. | |
| 'db' => 'YOURDATABASENAME' // Database name. Make something up, mongodb will automatically create the database. | |
| ), | |
| ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Source:- http://toodlepip.co.uk/2014/installing-mongo-mongo-php-mac-osx-mavericks-mamp/ | |
| Step:- | |
| 1. brew install mongodb | |
| 2. brew install autoconf | |
| 3. curl -O http://museum.php.net/php5/php-5.5.3.tar.gz | |
| 4. cd /Applications/MAMP/bin/php/php5.5.3/ | |
| 5. mkdir include | |
| 6. cd include | |
| 7. mkdir php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.drupal.org/node/1494290#comment-6882712 | |
| How to update Drupal core with Drush | |
| (Drush is a command line tool for Drupal). | |
| 1. Backup everything (all files, databases, etc) | |
| 2. Put your site in maintenance mode | |
| Either from Drupal interface or with drush: | |
| (commands for Drupal 7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://chapterthree.com/blog/drupal-wysiwyg-best-practices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/local/bin/mysql |