brew install mongodb
mkdir -p /data/dbEnsure that user account running mongod has correct permissions for the directory:
| UPDATE wp_options SET option_value = replace(option_value, 'http://www.example.com', 'http://localhost/test-site') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET post_content = replace(post_content, 'http://www.example.com', 'http://localhost/test-site'); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.example.com','http://localhost/test-site'); |
| http://drupal.stackexchange.com/questions/127729/form-api-fomatting-the-date-select-lists | |
| $form['scheduled_for'] = array( | |
| '#type' => 'date_select', | |
| '#title' => t('Scheduled for'), | |
| '#date_label_position' => 'within', | |
| '#date_format' => 'd-F-Y', | |
| '#date_increment' => 15, | |
| '#date_year_range' => '-0:+1', |
| time drush php-eval ' $path="node/10"; menu_set_active_item($path); menu_execute_active_handler($path, TRUE);' > /dev/null |
| db_change_field('open_sub','mobile','mobile', | |
| array( | |
| 'description' => 'Mobile no.', | |
| 'type' => 'varchar', | |
| 'length' => 255, | |
| 'not null' => FALSE, | |
| ) | |
| ); |
| RewriteEngine on | |
| RewriteCond %{SERVER_PORT} !^443$ | |
| RewriteRule ^quote-flow https://%{HTTP_HOST}/quote-flow [R=301,L] |
| For mongo extension | |
| 1.pecl install mongo | |
| 3.apt-get install php5-dev php5-cli php-pear | |
| 3.vim /etc/php5/apache2/php.ini | |
| extension=mongo.so |
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