drush

How to run cron with drush within Virtualmin Control Panel

Navigate to => system => Scheduled Cron jobs tab and paste the below command in the command input box. Run it as root and schedule the minutes as required.
Move it up the list to give it more priority. Please note replace with the xxx to your environment.

/usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 /usr/local/bin/drush --root=/home/xxx/public_html --uri=http://yoursite.com/cron.php?cron_key=xxxxxxxxxx --quiet cron

How to install drush with composer on linux box

I had trouble installing Drush on my newly created Centos box. Therefore, I have documented my steps.

First, you need install Composer ( PHP Dependency Manager) cd into the
$ cd /tmp

Download Composer.phar here

$ curl -sS https://getcomposer.org/installer | php

Then move it to /usr/local/bin so that it can be used globaly.
$ mv composer.phar /usr/local/bin/composer

Now type $composer

If you done everything right you should get something that look like this:

How install Aegir octopus High performance Hostmaster for Drupal

I have tried install BOA-3.0.2 to host my many Drupal sites and I have struggled a lot install it. I am hopping this write up may help someone to have better experience.

This is the description from the smart people who developed this software/script.

BOA is an acronym of high performance Barracuda, Octopus and Aegir LEMP stack.

Includes all-in-one bash scripts (see docs/INSTALL.txt for details) to install
and upgrade high performance Aegir Hosting Systems for Drupal, with Nginx, PHP-FPM, Zend OPcache, MariaDB and Redis.

What is Octopus?

How to migrate your drupal site with drush

I have recently tried to move a large database to another host and I have encountered problems regarding this.

I have decided to document this so that other Drupal users may benefit from it.

There are many ways to restoring a database to different host but this has worked for me.

First, you need to have a working drush system in your both drupal installations.

Start with clearing all of your database cache

$cd /home/home/public_html or wherever is your root Drupal installation
$drush cc all

Your command line PHP installation is too old. Drush requires at [error] least PHP 5.3.0. To suppress this check, set the environment variable DRUSH_NO_MIN_PHP=1(solved)

If you see the above error, you're probably running a php version not compatible with drush.
To remedy this, use the following command. This is on centos, on ubuntu or other linux flavors the path may be different.

First find the folder where the drush include file is located. You use the linux command
$find / -name "folder_you're_looking for"
Output should be something similar to this

find / -name "drush"
/usr/share/pear/drush
/usr/bin/drush
/tmp/pear/download/drush-6.2.0.0/drush

Mine was
$/usr/share/pear/drush/includes

Drupal boost cache clear (solved)

In drupal 7, the boost module no longer has the "clear all cache" button.
Follow this instruction to clear it.
1 set minimum cache life time to 0.
2 take off the tick where it says" Ignore a cache flush command if cron issued the request".
3 Run drush cc all or flash all cache at the gui
4 run $ drush cron run or run cron at the gui
5. Repeat the process till boost cache is cleared.
Restart Apache if necessary
$ service httpd restart

how to run drush with cron from cpanel for your drupal installation

Type this command on the cron command line on cpanel.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin /usr/local/bin/drush --root=/home/yourhome/public_html/ cron run

You can copy and past it on your cpanel command line. Change this line to your home /home/yourhome/public_html/

Apache Yahoo News Feed

Drupal Yahoo News

Linux Yahoo News Feed

Mysql Yahoo News Feed