Installation on Linux in a subfolder - URL problem

Author Message

Claudius Frank

Tuesday 13 May 2003 12:02:34 am

Hi all,

Two or three days ago I posted a question concerning the URL problem under the title "URL Translation". By now I was not able to resolve my problem myself and the community seems to have forgotten my question.

However, my question is whether it is possible to install ezpublish on an Linux shared server in a subfolder?
I installed ezpublish in a subfolder "ez" under the domain

www.liber.de/ez/

Trying to access this address the folder "ez" is doubled and the file "index.php" is missing or deleted instead.
So we have the follow situation:

www.liber.de/ez/index.php/admin (for instance)

is changed to

www.liber.de/ez/ez/admin

Does this have to do something with the file

access.php

In this file is called the function "changeAccess($access)" from the file "lib/ezutils/classes/ezsys.php".
This function seems to not work correct?

Perhaps it is possible that anybody from ez team try to access my site and see, what is wrong!

..........
..........
function changeAccess( $access )
{
$ini =& eZINI::instance();
$name='';
if ( $access !== null )
$name = $access['name'];

if ( $name == '' )
{
$name = $ini->variable( 'SiteSettings', 'DefaultAccess' );
if ( accessDebugEnabled() )
eZDebug::writeDebug( "Using default site access '$name'", 'access.php' );
}
if ( $access['type'] == EZ_ACCESS_TYPE_URI )
{
include_once( 'lib/ezutils/classes/ezsys.php' );
eZSys::addAccessPath( $name );
if ( accessDebugEnabled() )
eZDebug::writeDebug( "Adding '$name' to access path", 'access.php' );
}
if ( file_exists( "settings/siteaccess/$name" ) )
{
$ini->prependOverrideDir( "siteaccess/$name" );
$ini->loadCache();
eZUpdateDebugSettings();
if ( accessDebugEnabled() )
eZDebug::writeDebug( "Updated settings to use siteaccess '$name'", 'access.php' );
}
if ( $access === null )
{
return array( 'type' => EZ_ACCESS_TYPE_DEFAULT,
'name' => $name );
if ( accessDebugEnabled() )
eZDebug::writeDebug( "No access match, returning default '$name'", 'access.php' );
}
else
{
return $access;
}
}
...
----------------------
lib/ezutils/classes/ezsys.php

function addAccessPath( $path )
{
if ( !isset( $this ) or get_class( $this ) != "ezsys" )
$this =& eZSys::instance();
if ( !is_array( $path ) )
$path = array( $path );
$this->AccessPath = array_merge( $this->AccessPath, $path );
}

-----------------------

Any help would be appreciated

Regards
Claudius

Karsten Jennissen

Tuesday 13 May 2003 1:02:00 am

Hi Claudius,

installing in a subfolder should work theoretically. Did you try clearing the cache and / or reinstalling?

Karsten

Karsten Jennissen

Tuesday 13 May 2003 1:07:45 am

Ah, I just had a look at your site. I think you will have to change the siteaccess method to get it to work. The index.php/demo etc. all produce a module not found. I am not sure why exactly this error is produced on the URI method, maybe it is a bug.

Try using the host match map method, see http://ez.no/manual/install/siteaccess#HostMatchMap

There you match complete urls to sites. Match www.liber.de/ez/index.php/demo to demo and www.liber.de/ez/index.php/admin to admin

Karsten

Claudius Frank

Tuesday 13 May 2003 1:56:35 am

Hi Karsten,

To clear the cache I installed the file cleare_cache.php in /ez/bin.
It is no problem to clear cache with this file. If you have a bit time, you can try it too under:

www.liber.de/ez/bin/clear_cache.php

Of course I have installed my ezpublish several times. It is supposed to be normal.

I have tried to access the sit with "host map", but it doesn't work too. I have forgotten which error I received.
In one or two hour I will try it again and let you know what I have done.

Thank you very much for you help Karsten.

Regards
Claudius

Claudius Frank

Tuesday 13 May 2003 3:31:04 am

Hi Karsten,

Now I have installed ezpublish in

www.liber.de/ezpublish/

and I got as result error 500.

I add all the .ini details and would be very glad if you could see whether I have made a mistake in site.ini:

settings/site.ini

MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=liber.de;user
HostMatchMapItems[]=www.liber.de;user
HostMatchMapItems[]=liber.de;demo
HostMatchMapItems[]=www.liber.de;demo
HostMatchMapItems[]=liber.de;admin
HostMatchMapItems[]=www.liber.de;admin

---------
settigs/siteaccess/admin/site.ini.append

[SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=liber.de;admin
HostMatchMapItems[]=www.liber.de;admin
---------

settings/siteaccess/demo/site.ini.append

[SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=liber.de;demo
HostMatchMapItems[]=www.liber.de;demo
---------

settings/siteaccess/user/site.ini.append

[SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=liber.de;user
HostMatchMapItems[]=www.liber.de;user

Regards
Claudius

Karsten Jennissen

Tuesday 13 May 2003 9:05:44 am

Hi Claudius,

uhm, I wasn't thinking when I suggested host match to you. It only works, if you do not have subdirectories, of course. Can you use subdomains to point to the directory you installed ez publish? If so, do something like

MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=ezpublish.liber.de;demo
HostMatchMapItems[]=admin.liber.de;admin

Don't set up any siteaccess stuff in other ini files, especially in the /settings/siteaccess/... files.

Right now, I can't help you any further, maybe someone else?

Karsten

Claudius Frank

Tuesday 13 May 2003 1:38:45 pm

Hi,

Unfortunately this method does not work too.

Regards
Claudius

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.