Forums / Install & configuration / Configuration problem: The root path

Configuration problem: The root path

Author Message

loukmane issa

Wednesday 02 September 2009 6:59:49 am

Hi everyone,
I have download an ez publish 4.0.1 based site and i have to copy it locally. The problem is that the root path is configure for the online site. I would like to modify it, but i don't find where.

For example, when i'm on: "http://localhost/site/" and i click on log in, it bring me on : "http://localhost/user/login".

I hope you can help me

Thanks a lot! :)

André R.

Wednesday 02 September 2009 7:05:17 am

Have you tried to clear all cache after you copied it?
You can do it manually by deleting the content of var/cache and var/<site_name>/cache.

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

loukmane issa

Wednesday 02 September 2009 7:11:47 am

Yes it don't work.

On other CMS we have the same problem, when export or import without install the CMS. But with ez Publish, i don't find where specify the root path.

For example in "Prestashop we have in a php file:

define('__PS_BASE_URI__', 'root_path (for example: /');

Thanks for your reply :)

Gaetano Giunta

Wednesday 02 September 2009 7:44:46 am

Check out the config in
a - site.ini.append.php in the settings/override folder
b - site.ini.append.php in the settings/sitecceass/yoursiteaccess folder

in a) there is a series of config params (the SiteAccessSettings block) that eZ uses to build its urls
in b) you will find the address of the site in the SiteURL param

after changing those you might need to clear all caches and/or run the updateniceurls php script before the urls are regenrated

Principal Consultant International Business
Member of the Community Project Board

loukmane issa

Wednesday 02 September 2009 8:20:15 am

ttgigh

André R.

Wednesday 02 September 2009 8:24:37 am

"For example, when i'm on: "http://localhost/site/" and i click on log in, it bring me on : "http://localhost/user/login"."

Is this happing only there? Was it when you selected 'Login to admin interface' ?
If so, it's AdditionalLoginFormActionURL setting in settings/siteaccess/<site_name>/site.ini.append.php

NOTE: You probably shouldn't post your password like that (if you didn't change it that is ;) ).

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

loukmane issa

Wednesday 02 September 2009 8:29:04 am

<?php /* #?ini charset="utf-8"?

[DatabaseSettings]
User=XXX
Password=XXX

[SiteSettings]
MetaDataArray[author]=XXX@XXX.com
MetaDataArray[copyright]=XXX@XXX.com

SiteList[]=XXX
SiteList[]=XXX
SiteList[]=XXX

[SiteAccessSettings]
ForceVirtualHost=true
CheckValidity=false
AvailableSiteAccessList[]=XXX
AvailableSiteAccessList[]=XXX_admin
AvailableSiteAccessList[]=XXX
AvailableSiteAccessList[]=XXX_admin
AvailableSiteAccessList[]=XXX_admin_common

MatchOrder=host
HostMatchMapItems[]=www.XXX.com;XXX
HostMatchMapItems[]=www.XXX.net;XXX
HostMatchMapItems[]=admin.XXX.net;XXX_admin

[ExtensionSettings]
ActiveExtensions[]=ezdhtml
ActiveExtensions[]=ezodf
ActiveExtensions[]=ezflow
ActiveExtensions[]=ezwebin
ActiveExtensions[]=bcwebsitestatistics

# ActiveExtensions[]=ezsurvey
# ActiveExtensions[]=starrating
# ActiveExtensions[]=ezurlaliasmigration

[RegionalSettings]
TranslationExtensions[]=extension/translations/ezdhtml
TranslationExtensions[]=extension/translations/ezodf
# TranslationExtensions[]=extension/translations/ezsurvey

[DesignSettings]
AdditionalSiteDesignList[]=ezflow
AdditionalSiteDesignList[]=ezwebin

[DebugSettings]
# DebugOutput=enabled
DebugByIP=enabled

[ContentSettings]
# ViewCaching=disabled
# PreViewCache=enabled

[TemplateSettings]
ShowUsedTemplates=enabled
# TemplateCache=disabled
# TemplateCompile=disabled

*/ ?>

loukmane issa

Wednesday 02 September 2009 8:35:33 am

"Is this happing only there? Was it when you selected 'Login to admin interface' ?"

It's happenning everywhere. I can't login in admin-interface or user interface.

NOTE: Sorry for the spam message, i have to modify it in precipitation.

Thanks :)