Drupal File Permissions for non-shared hosting

All directories in root should be set to 750 with setgid set, to do so cd into it and run

sudo find  . -type d -exec chmod 2750 {} \ ;

All files in root should be set to 640 , to do so run 

sudo find . -type f -exec chmod 640 {} \ ;

Now remove the setgid bit on sites/default and all its sub folders by running

sudo chmod -R g-s  sites/default

And change permissions on sites/default/files to 770 for directories and 660 for files


Updating Commerce Kickstart

To create a new up to date commerce kickstart site update both commerce kickstart module and the core on your local development machine


Install Ruby, Compass and Sass with RBENV and Bundle on Ubuntu 14.04

First Uninstall ruby and gem from your current setup so we have no conflicts

sudo apt-get purge ruby rubygems

Next install the Personal Package Archives (PPA)  for Node.js

sudo apt-add-repository -y ppa:chris-lea/node.js

Install python properties

sudo apt-get install python-software-properties

Now we update 

sudo apt-get -y update

And install node.js, git-core and Curl


Create a subtheme of Omega 4.x in Drupal 7 using drush

Download and install Omega 4 theme as you would for any Drupal Theme or use drush cmd in your website folder (Don't install omega tools)

drush dl omega

drush en omega

Check to see if you have a version of drush with omega helper commands

drush help --filter=omega


Set up Ubuntu Drupalpro VM for Aurora with Sass, Compass and Yeoman

First install Aurora as you would any other theme on Drupal, you can get it here https://www.drupal.org/project/aurora or if you use drush

  1. drush dl aurora
  2. drush en aurora

Aurora suggests installing helper modules Magic https://www.drupal.org/project/magic and HTML5 Tools https://www.drupal.org/project/html5_tools


Install Commerce Kickstart on Drupalpro VM

Use drush to download commerce kickstart

cd websites

drush dl commerce_kickstart

Use drush to install the downloaded files without demo store​

drush si commerce_kickstart --site-name=SiteName --sites-subdir=domain.com

--account-name=user --account-pass=passwd --db-url=mysql://dbuser:passwd@mysql.domain.com:

3306/dbname commerce_kickstart_configure_store_form.install_demo_store=0


Apply a lighbox to a Views Gallery

You will need to install colorbox module and there dependencies which you can get from https://www.drupal.org/project/colorbox . Just follow all the instruction to set it up from this page. Once installed and working go and edit your views settings like below.


Install a Drupal Distribution on DrupalPro Development machine

In order to install a distribution on drupalpro you need to use drush. We will use the commerce kickstart distribution to show you how. 


Install Drupal on GoDaddy server using the application installation

Install Drupal on GoDaddy server using the application installation


Drupal Recommended permissions for Sites folders

Generally Recommended Permissions for Drupal Files and Folders
drupal/sites/default 750
drupal/sites/default/files (including sub folders & files) 755 or 770 *
drupal/sites/default/settings.php  400 or 440 *
drupal/sites/default/default.settings.php 400 or 440 *
drupal/sites/all/themes (including sub folders & files)  755


Subscribe to RSS - drupal