[geeklog-devel] Fresh install Admin Directory Path issue
=MF=Geiss
geiss at midnightforce.com
Fri Oct 26 18:44:30 EDT 2007
Mark,
I changed admin/install/install.php as you directed, and now all is as
it should be. :-)
To close this thread out, will one with commit rights please make the
change noted below.
Thx!
Eric
Mark R. Evans 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
> <mailto: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
> <mailto: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
>
More information about the geeklog-devel
mailing list