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
    </VirtualHost>
  • 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 127.0.0.1

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 intented 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:
http://wiki.uniformserver.com/index.php/New_Users:_Problems_Section

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.)
http://sourceforge.net/projects/miniserver/files/Uniform%20Server/8.1.2-...

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)

Web server

Drupal works on any web server with PHP support.

Apache (Recommended)

Apache is the most commonly used web server for Drupal. Drupal will work on Apache 2.x hosted on UNIX/Linux, OS X, or Windows.

The majority of Drupal development and deployment is done on Apache, so there is more community experience and testing performed on Apache than on other web servers. Drupal 7 and 6 will likely work on Apache 1.3.

You can use the Apache 'mod_rewrite' extension to allow for clean URLs.

The Apache Virtualhost configuration must contain the directive AllowOverride All to allow Drupal's .htaccess file to be used.

Nginx

Nginx is a commonly used web server that focuses on high concurrency, performance and low memory usage.

Drupal will work on Nginx legacy versions (0.7.x, 0.8.x, 1.0.x, 1.2.x), stable 1.4.x versions, and mainline 1.5.x versions hosted on UNIX/Linux, OS X, or Windows. Nginx is a popular alternative to Apache, so there is also significant community experience and testing performed on Nginx.

For information on enabling clean URLs, see Clean URLs with NGINX.

Microsoft IIS

Making a Boost cached site mobile

Introduction

This tutorial is a description of how to setup the mobile version of a Drupal site with theme switching and automatic redirection to the mobile site that works with static page caching mechanisms (Boost module). Redirection is done on Apache's level instead of the PHP level (.htaccess instead of php code).

Pages

Subscribe with RSS Subscribe to RSS - apache