How to test custom scripts?

Author Message

Siniša Šehović

Monday 04 December 2006 12:42:43 pm

Hi

What do I have to do on Apache side to be able to test custom scripts in test folder in my ez root?

Some rewrite rules?

I am using virtual host settings in apache.

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Claudia Kosny

Tuesday 05 December 2006 10:32:29 am

Hi Sinisa

not sure about the virtual host settings but it should be similar to htaccess where you have to make the following changes:
Allow access to the folders with the scripts:

<FilesMatch "foldername/\.php">
order allow,deny
allow from all
</FilesMatch>

directly after the <FilesMatch "."> block.

Then also add a rewrite rule that tells apache not to rewrite the script urls directly under the RewriteEngine On directive:

RewriteRule foldername/\.php - [L]

Depending on your exact setup you most likely will need to change the match condition and the rewrite rule, but this is easy to find out.

That should be it.

Claudia

Siniša Šehović

Wednesday 06 December 2006 2:31:44 am

Hi Claudia,

"Depending on your exact setup you most likely will need to change the match condition and the rewrite rule, but this is easy to find out."

How can I find out?

RewriteRule is not working for me!?

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

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 18 2025 16:17:51
Script start
Timing: Jan 18 2025 16:17:51
Module start 'layout'
Timing: Jan 18 2025 16:17:51
Module start 'content'
Timing: Jan 18 2025 16:17:53
Module end 'content'
Timing: Jan 18 2025 16:17:53
Script end

Main resources:

Total runtime1.5979 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.9219152.6250
Module start 'layout' 0.00700.0039 740.546939.4453
Module start 'content' 0.01091.5854 779.9922534.6016
Module end 'content' 1.59630.0015 1,314.593812.1641
Script end 1.5978  1,326.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2254160.0002
Check MTime0.00130.0842160.0001
Mysql Total
Database connection0.00130.078810.0013
Mysqli_queries1.541596.4694570.0270
Looping result0.00060.0351550.0000
Template Total1.547596.820.7738
Template load0.00250.153820.0012
Template processing1.545096.692420.7725
Template load and register function0.00010.006010.0001
states
state_id_array0.00260.163810.0026
state_identifier_array0.00180.112320.0009
Override
Cache load0.00200.1265290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.041720.0003
Fetch class attribute name0.00150.090940.0004
XML
Image XML parsing0.00060.039920.0003
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00070.0468150.0000
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs