No effect when modify the URL settings

Author Message

Quynh Nguyen

Sunday 07 December 2008 10:09:05 pm

Hi,

I'm a newbie to try eZ Publish... and the first thing is following the step by step in some articles...

Installation is really easy, I did not get any troubles here.

But the problem when I try this article: http://ez.no/developer/articles/how_to_configure_an_ez_publish_site/url_modifications to modify the URL

The first try, I insert in /settings/siteaccess/site/site.ini.append.php
The second try: /settings/override/site.ini.append.php
The last try: /settings/site.ini

ForceVirtualHost=true
RemoveSiteAccessIfDefaultAccess=enabled

Then I restart httpd service. But the change does not effect.

My test system:
- Linux CENTOS 5.2: apache 2.2.8, mysql 5.x, php 5.2.6
- eZ Publish 4.0.1
- apache with mod_rewrite...

Is there any change in the new version of eZ Publish?

Please help me! Thanks so much!

Quynh Nguyen

Sunday 07 December 2008 10:47:21 pm

Oh, after modify and clear cache ini I see that mod_rewrite works ok.

But I got the error 403

Forbidden

You don't have permission to access /company/news/lyon_une_metropole_de_taille_europeenne on this server.

André R.

Sunday 07 December 2008 11:29:47 pm

Might help to read the doc as well:
http://ez.no/doc/ez_publish/technical_manual/4_0/installation/virtual_host_setup
http://ez.no/doc/ez_publish/technical_manual/4_0/installation/virtual_host_setup/virtual_host_example

Since you have access to restart apache, its better to setup the rewrite rules in your httpd.conf settings to rule out the possebility that you have disabled .htaccess files (AllowOverride setting).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Quynh Nguyen

Sunday 07 December 2008 11:49:41 pm

More about the setting information:

The last tried is:
- Put RemoveSiteAccessIfDefaultAccess=enabled in /settings/siteaccess/eng to remove language in URL.
- Put ForceVirtualHost=true in /settings/override/site.ini.append.php to remove index.php

But after that I can only browse the home page, and I see that the URL in articles in right format. But when access the detail link, I got the 403 (Forbidden) error.

And then I can not login to administration page and any pages but the home page.

Please help me!

Quynh Nguyen

Monday 08 December 2008 12:17:11 am

@André R.: Thanks so much!

Your link save my time!

André R.

Monday 08 December 2008 12:51:53 am

Nop, btw you should cleanup while you still remember what changes you have done though.
Especially changes directly in the settings folder, as those will be overwritten when you update eZ Publish.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 06:18:32
Script start
Timing: Jan 19 2025 06:18:32
Module start 'layout'
Timing: Jan 19 2025 06:18:32
Module start 'content'
Timing: Jan 19 2025 06:18:32
Module end 'content'
Timing: Jan 19 2025 06:18:32
Script end

Main resources:

Total runtime0.0129 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.0042 593.1406152.6406
Module start 'layout' 0.00420.0026 745.781339.4766
Module start 'content' 0.00680.0042 785.257893.3359
Module end 'content' 0.01110.0018 878.593838.3047
Script end 0.0128  916.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002116.5125140.0002
Check MTime0.00107.6723140.0001
Mysql Total
Database connection0.00075.108710.0007
Mysqli_queries0.002217.081630.0007
Looping result0.00000.092710.0000
Template Total0.001410.910.0014
Template load0.00075.768610.0007
Template processing0.00075.116110.0007
Override
Cache load0.00054.089210.0005
General
dbfile0.00021.935280.0000
String conversion0.00000.053840.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