Access methods + URL Translation

Author Message

Nguyen Quang Hung

Thursday 11 August 2005 2:21:14 am

I was set file "/settings/override/site.ini.append.php"

[SiteSettings]
DefaultAccess=corporate
...
[SiteAccessSettings]
MatchOrder=uri

But when my url is "http://localhost/supt/index.php/corporate"
Error : The page cannot be found
when i change like this :
"http://localhost/supt/index.php?corporate"
It was run.

How can i use url like "http://localhost/supt/index.php/corporate" ?

Please help me !
Thanks,

Ɓukasz Serwatka

Monday 15 August 2005 1:35:56 am

Hi,

Your PHP works in CGI mode, so eZ publish added ? to URLS. This is not recommend for eZ publish. I suggest switch to Apache module (mod_php). More info you can find in PHP manual.

http://www.php.net/manual/en/install.unix.php

See also:
http://ez.no/community/forum/install_configuration/problems_with_acceptpathinfo

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Nguyen Quang Hung

Friday 19 August 2005 1:15:39 am

Thank Lukasz Serwatka,

It's true. My PHP works in CGI mode.
I'm running Win2k, Apache 2, PHP 4.3.9, MySql 4.1.7.
But i can not setup PHP runs in module mode.
I do like PHP setup guide but Apache can not startup.

# For PHP 4 do something like this:
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"

Do you have more advise ?
Thank,

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

Main resources:

Total runtime0.8692 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.0055 589.2734152.6406
Module start 'layout' 0.00550.0033 741.914139.4766
Module start 'content' 0.00880.8587 781.3906543.3203
Module end 'content' 0.86750.0017 1,324.710912.1406
Script end 0.8692  1,336.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3556160.0002
Check MTime0.00130.1451160.0001
Mysql Total
Database connection0.00070.081010.0007
Mysqli_queries0.815593.8191570.0143
Looping result0.00050.0618550.0000
Template Total0.833895.920.4169
Template load0.00230.266720.0012
Template processing0.831595.654320.4157
Template load and register function0.00020.020510.0002
states
state_id_array0.00130.155010.0013
state_identifier_array0.00120.135120.0006
Override
Cache load0.00180.2062380.0000
Sytem overhead
Fetch class attribute can translate value0.00050.058120.0003
Fetch class attribute name0.00170.191340.0004
XML
Image XML parsing0.00080.090220.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00230.2666180.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs