Re: Difficulty navigating symlinks

From: Date: Wed, 22 Oct 2008 16:23:02 +0000
Subject: Re: Difficulty navigating symlinks
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-282260@lists.php.net to get a copy of this message
On Wed, 2008-10-22 at 11:59 -0400, Seth Foss wrote: > Hi everyone, > > I am trying to run multiple sites on the same server, that have mostly > identical code - a pre-built application. > > Anyway, I would like to save disk space by specifying independent > configuration files for each site, then using symbolic links to access > the rest of the code for the application. > > I have managed to configure apache so one such directory is accessed via > a symlink, which is ok. However, a file within the linked directory > attempts to include the configuration file (../config.php) from the > actual parent directory instead of the directory containing the symlink. > > Is there any way to configure apache or php to trace back the symlink > when using '..', or can that only go one direction? Why not use CVS or SVN and just checkout the code? Sure you have it in multiple places that way, but it's a cinch to deploy and allows rollback to specific versions on any given tree. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#282260) next »