Forums / Install & configuration / Reaching Siteaccess and Admin

Reaching Siteaccess and Admin

Author Message

Jorge estévez

Thursday 03 January 2008 2:29:38 pm

I have installed a new site at my hosting space, the redirection of the url points to www.mysite.com/index.php

The site is visible but whenever I try to change from one site access to another (English/Spanish) or even trying to access my admin page mysyte_admin it always returns to the www.mysite.com/index.php URL, so only one site access (default) is available...

I suppose I have some miss configurations, but I just can’t figure out where.

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Piotr Switkowski

Thursday 03 January 2008 2:37:11 pm

Yes, you probably have some misconfiguration.... but from the information you provided it is difficult to say.

I would start with investingating webserwer configuration. If there is a redirect, it is rather not ezPublish. I would start with httpd.conf and .htaccess. You might put simple files (like index.html) in your webserwer root to see what happens. If it will still redirect - it is for sure not ezP

Regards

Jorge estévez

Friday 04 January 2008 3:13:19 am

I have uploaded index.html with a "Hello World" and that was displayed in my browser, so I assume the redirection is OK.... As the redirection is an "empty string" It should (and it does) check for an index.html.... So redirection seems not to be the problem.

I am posting here my override site.ini and one of my siteaccess site.ini if you can just take a look:

Override site.ini

<?php /* #?ini charset="utf-8"?
[ExtensionSettings]
ActiveExtensions[]=ezdhtml
ActiveExtensions[]=ezodf
ActiveExtensions[]=ezwebin
ActiveExtensions[]=updatecache

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=esl
SiteList[]=esl
SiteList[]=eng
SiteList[]=ita
SiteList[]=mysite_admin
RootNodeDepth=1

SiteName=
MetaDataArray[author]=
MetaDataArray[copyright]=
MetaDataArray[description]=
MetaDataArray[keywords]=
SiteURL=www.mysite.com/index.php

[UserSettings]
LogoutRedirect=/
VerifyUserEmail=enabled

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=esl
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=ita
AvailableSiteAccessList[]=mysite_admin
MatchOrder=uri
HostMatchMapItems[]

[FileSettings]
VarDir=var/ezwebin_site

[MailSettings]
Transport=SMTP
TransportServer=localhost
TransportUser=
TransportPassword=
[email protected]
EmailSender=

[EmbedViewModeSettings]
AvailableViewModes[]=embed
AvailableViewModes[]=embed-inline
InlineViewModes[]=embed-inline
*/ ?>

-----------------------------------------------------
Site access esl (site.ini)

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

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=user_mysite
Password=userpass
Database=mysitedb
Charset=
Socket=disabled
SQLOutput=disabled

[InformationCollectionSettings]
EmailReceiver=

[Session]
SessionNamePerSiteAccess=disabled

[SiteSettings]
SiteName=My site
SiteURL=www.mysite.com/index.php
LoginPage=embedded
AdditionalLoginFormActionURL=http://mysite/index.php/mysite/user/login

[UserSettings]
RegistrationEmail=

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=eng
RelatedSiteAccessList[]=ita
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=mysite_admin
ShowHiddenNodes=false

[DesignSettings]
SiteDesign=ezwebin
AdditionalSiteDesignList[]=base

[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES
ShowUntranslatedObjects=disabled
SiteLanguageList[]=esl-ES
TextTranslation=enabled

[FileSettings]
VarDir=var/ezwebin_site

[ContentSettings]
TranslationList=eng-US;ita-IT

[MailSettings]
[email protected]
EmailSender=

[URLTranslator]
TransformationGroup=urlalias

[DebugSettings]
DebugOutput=disabled
DebugRedirection=disabled

[TemplateSettings]
Debug=disabled
ShowXHTMLCode=enabled
ShowUsedTemplates=disabled
*/ ?>

Hope this help you helping me,
Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Friday 04 January 2008 3:20:13 am

Admin page is working (I had a mistake in the URL)

But siteaccess are not,

Default works and it gets teh spanish version of the site but trying to change to:

http://www.mysite.com/index.php/eng
http://www.mysite.com/index.php/ita

will alway bring back the spanish version again!

Here's the englisg (eng) site.ini


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

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=xxx
Password=xxx
Database=xxx
Charset=
Socket=disabled

[InformationCollectionSettings]
EmailReceiver=

[Session]
SessionNamePerSiteAccess=disabled

[SiteSettings]
SiteName=
SiteURL=www.mysite.com/index.php
LoginPage=embedded
AdditionalLoginFormActionURL=http://mysite/index.php/mysite_admin/user/login

[UserSettings]
RegistrationEmail=

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=eng
RelatedSiteAccessList[]=ita
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=mysite_admin
ShowHiddenNodes=false

[DesignSettings]
SiteDesign=ezwebin
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=base

[RegionalSettings]
Locale=eng-US
ContentObjectLocale=eng-US
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=eng-US
SiteLanguageList[]=esl-ES
TextTranslation=enabled

[FileSettings]
VarDir=var/ezwebin_site

[ContentSettings]
TranslationList=eng-US;ita-IT

[MailSettings]
[email protected]
EmailSender=
*/ ?>

Writing this I have noticed the string

<b>SessionNamePerSiteAccess=disabled<b>

What's this?

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Friday 04 January 2008 3:30:44 am

Turned the debug for SQL debug output

and this shows up:

Timing:  	Jan 04 2008 05:27:39

Script start
Notice: eZMySQLDB::query(0.000 ms) query number per page:0 	Jan 04 2008 05:27:39

SET NAMES 'utf8'

Notice: eZMySQLDB::query(1 rows, 0.549 ms) query number per page:1 	Jan 04 2008 05:27:39

SELECT data, user_id, expiration_time FROM ezsession WHERE session_key='7644532c3107230d253e2328b106099c'

Timing: 	Jan 04 2008 05:27:39

Module start 'content'

Timing: 	Jan 04 2008 05:27:39

Module end 'content'

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com