Getting the site offline

Author Message

Tarjei Gilbrant

Thursday 07 October 2004 1:15:33 am

I need to get my site offline for a short periode (several times). Is there an easy way to do this?

Conor Murray

Thursday 07 October 2004 1:54:23 am

You could temporarily substitute your own index.php in place of the standard one in the root of your eZ site - the rewrite rules force all page accesses to go through this file. This would be useful for, say, database maintenance etc. Your own file could display a message informing visitors that the site is temporarily offline. You could even write a simple script to swap around your own index.php with the production eZ publish version.

Language is a virus - William S Burroughs

Paul Borgermans

Thursday 07 October 2004 2:25:00 am

Or an apache rewrite rule which directs any request to a static html page, that's what I do (which requires a restart of the apache daemon)

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:18:52
Script start
Timing: Jan 31 2025 04:18:52
Module start 'layout'
Timing: Jan 31 2025 04:18:52
Module start 'content'
Timing: Jan 31 2025 04:18:52
Module end 'content'
Timing: Jan 31 2025 04:18:52
Script end

Main resources:

Total runtime0.0137 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.1328151.2109
Module start 'layout' 0.00440.0024 739.343836.6484
Module start 'content' 0.00670.0055 775.992290.0469
Module end 'content' 0.01220.0015 866.039129.9922
Script end 0.0137  896.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.8998140.0002
Check MTime0.00117.8621140.0001
Mysql Total
Database connection0.00064.171810.0006
Mysqli_queries0.002417.351230.0008
Looping result0.00000.066110.0000
Template Total0.00117.910.0011
Template load0.00096.247310.0009
Template processing0.00021.647910.0002
Override
Cache load0.00064.272610.0006
General
dbfile0.002316.961980.0003
String conversion0.00000.034840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs