Shanti Subramanyam - PAE wrote:
> There has been a lot of discussion about file layout for apache in
> pre-fork/MPM mode. But what about PHP ? Are we planning on building
> multiple versions of PHP for the 2 modes (with/without threading support) ?
> Are there any plans to build a fastcgi version of PHP ?
>
> Even if you don't do these multiple versions now, it is good to keep
> them in mind while designing a file layout for PHP.
>
> Thanks
> Shanti
The directory layout for PHP5 (as per PSARC/2007/168) follows the Perl model:
/usr/php5/<Major>.<Minor>.<Micro>/
/usr/php5/
doc -> [version]/doc
etc -> /etc/php5
include -> [version]/include
lib -> [version]/lib
man -> [version]/man
modules -> [version]/modules
share -> [version]/share
</QUOTE>
This allows for multiple concurrent versions of PHP5, and subsequent versions,
to coexist.
PHP6 (when it is released) could easily follow the same structure:
/usr/php6/<Major>.<Minor>.<Micro>
/usr/php6/
doc -> [version]/doc
etc -> /etc/php5
include -> [version]/include
lib -> [version]/lib
man -> [version]/man
modules -> [version]/modules
share -> [version]/share
--Stefan
--
Stefan Teleman
Sun Microsystems, Inc.
Stefan.Teleman at Sun.COM