Monday 04 July 2011 2:17:27 pm
By : Gaetano Giunta
Apache is a highly modular software - and that's a great feature, that contrbuted a lot to its wild success! Some linux distributions however have a default installation of Apache with many, many modules enabled. maybe too much. We know that any unused module chews up valuable ram, is a possible target of attack for crackers and slows down the startup of the webserver by a few milliseconds.
So, what is the absolute minimum list of Apache modules that are needed to successfully run eZ Publish? Read on to find out...
With a little experimenting, here is the list I came up with:
in vhost mode:
in non-vhost mode:
Note: mod_dir can not be disabled with the standard eZ Publish .htaccess file that contains a DirectoryIndex directive. That directive is unnecessary when rewrite rules are active and it can be safely removed.
Now, that's a small list, isn't it? On my windows 7 laptop, Apache uses about 5 MB of ram when started up in this minimal setup.
enable on an as-needed basis
Timing: | Jan 29 2025 23:51:25 |
Script start | |
Timing: | Jan 29 2025 23:51:25 |
Module start 'layout' | |
Timing: | Jan 29 2025 23:51:25 |
Module start 'content' | |
Timing: | Jan 29 2025 23:51:25 |
Module end 'content' | |
Timing: | Jan 29 2025 23:51:25 |
Script end |
Total runtime | 0.0132 sec |
Peak memory usage | 2,048.0000 KB |
Database Queries | 3 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0042 | 588.3750 | 151.2422 |
Module start 'layout' | 0.0042 | 0.0033 | 739.6172 | 36.7031 |
Module start 'content' | 0.0076 | 0.0046 | 776.3203 | 95.2578 |
Module end 'content' | 0.0121 | 0.0011 | 871.5781 | 29.9766 |
Script end | 0.0132 | 901.5547 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0021 | 15.5142 | 14 | 0.0001 |
Check MTime | 0.0010 | 7.3485 | 14 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0006 | 4.7634 | 1 | 0.0006 |
Mysqli_queries | 0.0032 | 24.4487 | 3 | 0.0011 |
Looping result | 0.0000 | 0.1134 | 1 | 0.0000 |
Template Total | 0.0008 | 6.2 | 1 | 0.0008 |
Template load | 0.0006 | 4.7490 | 1 | 0.0006 |
Template processing | 0.0002 | 1.3736 | 1 | 0.0002 |
Override | ||||
Cache load | 0.0004 | 3.2854 | 1 | 0.0004 |
General | ||||
dbfile | 0.0009 | 6.7382 | 8 | 0.0001 |
String conversion | 0.0000 | 0.0288 | 4 | 0.0000 |
Note: percentages do not add up to 100% because some accumulators overlap |
Usage | Requested template | Template | Template loaded | Edit | Override |
---|---|---|---|---|---|
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 1 Number of unique templates used: 1 |
Time used to render debug report: 0.0001 secs