Reply to Re: Migrating to a new server: how to map one directory to another

Your name:

Reply:


Posted by JDS on 11/05/05 00:05

On Fri, 04 Nov 2005 14:40:45 -0500, Jerry Stuckle wrote:

> First of all, you should be using:
>
> include ($_SERVER['DOCUMENT_ROOT']) . '/include/thing.inc');
>
> Then if you change to another server or otherwise move your Apache
> document_root you don't need to change all of your include statements.
>
> As for the rest of the question, there's no way I can think of. And
> Apache alias for the directory would not affect PHP include statements.
>
> Since you can't create the symlink I think you're stuck with changing
> all of your include statements.

Thanks. "Should be" is not really possible because this machine has
scripts written over the past five years, by several different
individuals, with extremely loose enforcement of coding style. Too late
to change that.

Here is what I did:
* symlinks to each user in /webusers to /home (as suggested by Aho)
* am enforcing a policy whereby local users home directories are called
"/home/username-local" so that there is no name squashing going on by
mistake

shouldn't matter too much -- there are not going to be more than one or
two local user on the apache box anyways. user data is all on the data box.

Thanks for any and al help, o' Usenet denizens.

--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация