Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php,comp.linux.misc Subject: Re: where to put a php library shared between (virtual) sites. Date: Fri, 24 May 2013 20:11:19 +0200 Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net DHoI7L55THu96U2ZHUS/awMVT365LpMWqWMVz5c1b42xXl+nkx Cancel-Lock: sha1:FWjUYyZL9koOBRpLhD5csmnCKrk= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130408 Thunderbird/17.0.5 In-Reply-To: Xref: csiph.com comp.lang.php:9607 On 24/05/13 16:20, The Natural Philosopher wrote: > Situation: LAMP installation,. Multiple sites some of which use > identical scripts, and many of which could (with a bit of parameter > tweaking) use identical included scripts. > Multiple sites under /var/www.whatever.whatever and so on > > Desired: a place that can be used to PUT these scripts. > Obviously: anywhere on the server is POSSIBLE. > > But where is the most normal place, that e.g. anyone might EXPECT to > find them? There is no "most normal" place. You should document the location, one way could be to add a README.txt in /var/www.whatever.whatever and hopefully you have a htdoc directory under there in which the site is located. If you have many sites that shares the same libraries, I would go with include_path in php.ini, there are some default paths already added which are commonly used by php extensions provided through the package management system. The paths may be different depending on which distribution you use. -- //Aho