[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFC: Paths for PHP extensions and libraries



hi piotr,

On Fri, Jul 22, 2005 at 12:43:50PM +0200, Piotr Roszatycki wrote:
> My proposition:
> 
> include_path = 
> ".:/etc/php:/usr/local/share/php/5.1:/usr/share/php5:/usr/share/php/5.1:/usr/share
> /php:/usr/local/share/php"

this seems like a pretty reasonable method as a general rule, though
i'm not sure we'll see a php5.1 any time soon in unstable :)

> extension_dir = 
> "/usr/lib/php/5.1/20041030:/usr/local/lib/php/5.1:/usr/local/lib/php"

again, seems pretty reasonable, though i don't know as much about
what will happen if a non-forwards-compatible binary is found in
the versionaless directory.  any idea?

> . : current directory at the begining
> /etc/php : locally installed libraries, can be considered as conffiles.
> /usr/local/share/php/5.1 : locally installed libraries only for PHP5.1
> /usr/share/php5 : system libraries which requires at least PHP5
> /usr/share/php/5.1 : bundled PEAR libraries, other packages can install newer 
> version to the previous directory
> /usr/share/php : libraries for PHP4 or any PHP5
> /usr/local/share/php : libraries installed by hand with `pear install'

an idea: instead of /usr/share/php/5.1 what about
/usr/share/php5.1? that way /usr/share/php won't get polluted with
version numbers as well as library directories.

> For extensions:
> 
> /usr/lib/php/5.1/NNNNNNN : bundled extensions or installed with dpkg
> /usr/local/lib/php/5.1 : locally installed packages
> /usr/local/lib/php : locally installed packages with `pear install'
> 
> Other paths:
> 
> VERSION=5.1 (or VERSION=5.0 for php5 or VERSION=4.3 for php4)
> 
> /etc/php$VERSION/$SAPI : place for php.ini 
> /var/run/php$VERSION : PID file for FastCGI server
> /var/lib/php/$VERSION : session temporary files
> /usr/lib/php/$VERSION : extensions and other arch-depended files
> /usr/share/php/$VERSION : bundled libraries and other arch-independed files
> /usr/include/php/$VERSION : include files

same comments about the php/$VERSION vs php$VERSION.


	sean

-- 

Attachment: signature.asc
Description: Digital signature


Reply to: