TIP: Drupal6/7 permissions setup compatible with DSO (mod_php) 'nobody' web server mode on CentOS+WHM/cPanel under Drush maintenance

Some context

So why might you, if you are operating a cPanel-based VPS for your own Drupal sites, want to consider switching from suPHP to DSO ?

"Your Drupal site got hacked ? Well it's entirely your own fault ! You should always do your updates ! You've only got yourself to blame (and don't dare blame the security holes in that older Drupal code) !!!"

Quick install Drupal with XAMPP on Windows

This Cookbook shows, how you can install XAMPP on Windows (e.g. Win 7 or Win 8.x, 32 bit or 64 bit) to use it for Drupal as a development system.


  • The intention of this cookbook is to explain the installation of XAMPP as a development system for Drupal.
  • Important Safety Notice:
    The instructions on this page should not be used on web servers, that can be accessed from the internet!
    The safe operation of the web server is not guaranteed with XAMPP!

Step 4: setting the hostnames

Bulk loop 1

  • In /etc/apache2/sites-enabled/drupal7 (In Mageia 2 and Mandriva Linux 2010, it is /etc/httpd/conf/vhosts.d/00_default_vhosts.conf ), add
    <VirtualHost *:80>
       DocumentRoot /var/www/drupal7
       ServerName example
  • In /etc/apache2/conf.d/drupal7.conf (in Mageia 2, it is the file /etc/httpd/conf/webapps.d/drupal.conf ), add the line (not needed in Mandriva Linux 2010)
    Alias example

Step 1: mono-site installation of Drupal 7

Firstly install Drupal 7 thanks to your distribution or by hand. (Ubuntu 11.04 doesn't include Drupal 7, but Mageia 3 and 4 do.) If you have to install Drupal by hand, follow the 6 steps of the Installation guide. Don't insert any dot in the name of the directory you install Drupal in. We suggest /var/www/drupal7/ and we will suppose below that such is its name. The corresponding database name cannot contain contain spaces, slashes, nor dots. I'll suppose below it is "drupal7".

Setting Clean URL with https(SSL) for the backend and http for the front end when Drupal is in a subdirectory/ subdomain

This write up needs (technical) review. Don't just copy and paste this code unless you have at least some understanding of the matter.

In Drupal 7 in order to run https(SSL) for the admin backend and run a normal http on the front I had to do the following. This code is intended for if the backend is running on a subdomain/ subdirectory on SSL with a different URL address then the http address of the front end, and with clean URLs enabled.

In settings.php:

if ($_SERVER['SERVER_PORT'] == 443) {
$base_url = 'https://address_1.com/subdirectory';
} else {
$base_url = 'http://subdomain.address_2.com';

The first $base_url is the one where you have your admin backend. The second is for your website front end. What this does is when you type the address check whether we are on a https or a http connection. Then the if the address match the $base_url either become a https or a http connection and go to the $base_url that is set.

Uniform Server Drupal 7 Setup

Uniform Server Drupal 7 Setup (Verbose)

An explicit guide to setting up an easy Drupal development environment utilizing the Uniform Server. “The Uniform Server is a WAMP package that allows you to run a server on any MS Windows OS based computer. It is small and mobile to download or move around and can also be used or setup as a production/live server.” http://www.uniformserver.com/

Mike Anello's (ultimike) video tutorial: http://www.youtube.com/watch?v=3SPyQ3KJLJg

In case of difficulty:

The Uniform Server + Drupal 7 Installation Step-By-Step

Download the Uniform Server (version Coral 8.1.2) (Not the latest version; because Drupal needs PHP 5.3.10 and the latest is PHP 5.4.4 etc.)

Double-click Coral_8_1_2.exe (the self-extracting file for Uniform Server, it will create a folder in the same directory called "UniServer").

Move the UniServer folder and its contents to where you want your application and new Drupal sites to reside:

(typically Users/(your name)/Sites/UniServer)
or E:/UniServer (on a RAM stick or SD card)


Subscribe with RSS Subscribe to RSS - apache