"HTTP-special"-code for Confixx 3

Author Message

Marco Zinn

Saturday 28 August 2004 8:32:50 am

Hi,
maybe this will be of use for users of Confixx 3. I guess, it also applies to Confixx 2.
If you want to have ez3.4 installed for a domain, that is defined in Confixx 3, you can define the Virtualhost lines with the "HTTP special" function of Confixx. This keeps you from hacking the httpd-conf files.

For ez3.4 you can use this code-snippet:

DocumentRoot /home/htdocs/##user##/html/SUB_DIRECTORY

php_admin_flag safe_mode off
php_admin_value post_max_size 10M
php_admin_value memory_limit 32M

RewriteEngine on
RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf)$ /index.php

Explanation:
DocumentRoot /home/htdocs/##user##/html/SUB_DIRECTORY
This will set the Documentroot to something like /home/htdocs/web1/html/SUB_DIRECTORY
Confixx will replace the ##user## with the user name (web1, web2). But you need to specifiy SUB_DIRECTORY, if you don't have ezPublish in the /home/htdocs/web1/html/. This is optional: If your ezPublish installation lives in /home/htdocs/web1/html/, you can omit this line

php_admin_flag safe_mode off
Confixx enables safe_mode for all Virtualhosts. This is to disable safe_mode for the ezPublish-Domain

php_admin_value post_max_size 10M
This sets the max. Upload size to 10 MB. Needed for large file uploads

php_admin_value memory_limit 32M
This sets the max. Upload size to 32 MB. ez requires 12MB, but sometimes, you need 16MB or more. You need this line, as the default is 8MB, which is not enough.

Note, that after saving the lines, you need to wait about 2 minutes, until they take effect, as the webserver is not restarted immediatly.

Marco
http://www.hyperroad-design.com

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 19 2025 13:53:58
Script start
Timing: Jan 19 2025 13:53:58
Module start 'layout'
Timing: Jan 19 2025 13:53:58
Module start 'content'
Timing: Jan 19 2025 13:53:58
Module end 'content'
Timing: Jan 19 2025 13:53:58
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.2734152.6406
Module start 'layout' 0.00520.0029 741.914139.4766
Module start 'content' 0.00810.0073 781.390689.4922
Module end 'content' 0.01540.0018 870.882830.3047
Script end 0.0172  901.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002212.7354140.0002
Check MTime0.00105.6708140.0001
Mysql Total
Database connection0.00084.496510.0008
Mysqli_queries0.002715.737230.0009
Looping result0.00000.116010.0000
Template Total0.00148.010.0014
Template load0.00084.478610.0008
Template processing0.00063.546110.0006
Override
Cache load0.00052.909310.0005
General
dbfile0.003319.389780.0004
String conversion0.00000.060840.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