- 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.so
to your php.ini- MAMP Pro:
/Applications/MAMP\ Pro/MAMP\ PRO.app/Contents/Resources/php[your php version].ini
- MAMP Pro:
This file contains 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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"caret_style": "wide", | |
"default_line_ending": "unix", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"fallback_encoding": "UTF-8", | |
"find_selected_text": true, | |
"font_options": |
This file contains 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
# Ignore emacs backup files... | |
*~ | |
# Ignore configuration files that may contain sensitive information. | |
sites/*/settings.php | |
# Ignore paths that contain user-generated content. | |
.sass-cache/* | |
sites/*/files | |
sites/*/private |
This file contains 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
cd /var/www | |
drush dl drupal --drupal-project-rename=d7 | |
cd d7 | |
drush si -y --db-url=mysql://root:personofinterest@localhost/d7 | |
drush upwd admin --password="admin" | |
//Maybe you need this | |
cd sites/default |
sign up for a new relic account first and you'd get the license key on your account page.
sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'
sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
sign up for a new relic account first and you'd get the license key on your account page.
sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'
sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
This file contains 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
#!/bin/bash | |
for dir in /var/aegir/platforms/* | |
do | |
cd "$dir/sites" | |
drush @sites -y ev "variable_set('smtp_host', 'your_host');" | |
drush @sites -y ev "variable_set('smtp_username', 'your_user');" | |
drush @sites -y ev "variable_set('smtp_password', 'your_pass');" | |
drush @sites -y ev "variable_set('smtp_port', 'your_port');" | |
done |
This file contains 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 | |
// To set up a local environment, make a duplicate of this file and name it | |
// local-settings.inc in the site directory that contains the settings.php file. | |
// Ignore sites/*/local-settings.php in the .gitignore file. Change the settings.php | |
// file to include local-settings.php if the file exists. | |
// Point database to local service. | |
$databases['default']['default'] = array( | |
'database' => 'local_db_name', |
This file contains 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
; cd into the directory you store code resources. | |
cd ~ | |
; Clone PHP_CodeSniffer directly from the github repo. | |
; You could also install via pear. | |
git clone [email protected]:squizlabs/PHP_CodeSniffer.git | |
; Clone the coder branch you want. |
OlderNewer