Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: How to Return Your Site to Online Mode

Submitted by on November 3, 2010 – 8:15 amNo Comment

When you finish execution of technical works on your site (updating Drupal core, modules etc.) you should return your site to online mode to allow visitors working with it. Below you can read how to do this.

Solution

When site is online, all visitors are able to view site’s pages. In offline mode, only users with ‘administer site configurations’ permissions  have access to the site; other visitors will see an adjustable message saying the site is temporary unavailable. Registered users can login to offline site through login page (example.com/user).

Alternatives
  • Turn site on through web-interface
  • Turn site on through settings.php file
  • Turn site on with the help of SQL-request

Turn site on through web-interface

  1. Open the following page in your web-browser:
    • Drupal 4: admin/settings
    • Drupal 5: admin/settings/site-maintenance
    • Drupal 6: admin/settings/site-maintenance
  2. Select “Online
  3. Save your changes

Turn site on through settings.php file

  1. Open settings.php
  2. Uncomment $conf variable
  3. Add this element to array: 'site_offline'=>0

Turn site on with the help of SQL-request

Run the following SQL-request:

UPDATE variable SET value = ‘s:1:”0″;’ WHERE name= ‘site_offline';
DELETE FROM cache WHERE cid = ‘variables';

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.