[geeklog-devel] Fresh install Admin Directory Path issue

Gary Moncrieff garymoncrieff at googlemail.com
Fri Oct 26 09:48:05 EDT 2007


Thanks mark, this is an issue I was having too when installing in a sub
directory, also happens with GL2 in a sub directory, will test this later.

Dazzy


On 26/10/2007, Mark R. Evans <mevans at ecsnet.com> wrote:

>

> Eric,

>

> As the current install script works, it will not properly detect the

> Geeklog admin directory if Geeklog is installed in a sub-directory off the

> web root.

>

> The problem is caused by using the $site_url when building the

> $site_admin_url variable. Currently the following happens (using your issue

> as an example):

>

> $_SERVER['PHP_SELF'] = /gl15/admin/install/index.php

>

> $site_url is built by removing everything after 'admin' from PHP_SELF, so

> you end up with /gl15/

>

> $site_admin_url is built by removing everything after 'install' from

> PHP_SELF, which leaves: /gl15/admin/ and this is added to the end of

> $site_url, which gives us /gl15/gl15/admin/ where the sub-directory that

> Geeklog resides is duplicated.

>

> The fix is simple, change line 162 of admin/install/index.php to the

> following, this will build the site_admin_url variable independently of

> $site_url.

>

> $site_admin_url = isset($_POST['site_admin_url']) ?

> $_POST['site_admin_url'] : 'http://' . $_SERVER['HTTP_HOST'] .

> preg_replace('/\/install.*/', '', $_SERVER['PHP_SELF']) ;

>

> That should have it properly detect the correct admin path.

>

> Thanks!

> Mark

>

> On 10/25/07, =MF=Geiss < geiss at midnightforce.com> wrote:

> >

> > This evening while setting up GL1.5CVS I noticed that the Admin

> > Directory Path setting, under Optional Configurations listed my admin

> > directory as http://geiss.getmyip.com/gl15/gl15/admin, (effectively with

> > double public_html calls) while my Site URL is

> > http://geiss.getmyip.com/gl15.

> >

> > You all are probably already aware, but just wanted to put it out there

> > on the off chance it wasn't caught. ...I remember vaguely though

> > something about this being discussed in the past. :-)

> >

> > Thx!

> >

> > Eric

> > _______________________________________________

> > geeklog-devel mailing list

> > geeklog-devel at lists.geeklog.net

> > http://eight.pairlist.net/mailman/listinfo/geeklog-devel

> >

>

>

> _______________________________________________

> geeklog-devel mailing list

> geeklog-devel at lists.geeklog.net

> http://eight.pairlist.net/mailman/listinfo/geeklog-devel

>

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://eight.pairlist.net/pipermail/geeklog-devel/attachments/20071026/09718ba4/attachment.htm>


More information about the geeklog-devel mailing list