yoyo writes: > but install will > cp .libs/libphp5.so /usr/apache2/libexec/libphp5.so > Installing PHP CLI binary: /usr/local/bin/ > Installing PHP CLI man page: /usr/local/man/man1/ > Installing build environment: /usr/local/lib/php/build/ > Installing header files: /usr/local/include/php/ > Installing helper programs: /usr/local/bin/ > ...... > > i try to chmod +w /usr,but /usr can't be modified.what can i do? > in global zone i install php successful.
There are two models for non-global zones, termed "sparse root" and "whole root." In the sparse root model -- the default for zonecfg's "create" -- the zone's configuration includes /lib, /platform, /sbin, and /usr as inherit-pkg-dir entries. This means that these four directories are mounted as read-only copies (lofs) of the global zone. As documented in the zonecfg(1M) man page: inherit-pkg-dir Directory inherited from the global zone. Software pack- ages whose contents have been transferred into that directory are inherited in read-only mode by the non- global zone and the non-global zone's packaging database is updated to reflect those packages. Such resources are not modifiable or removable once a zone has been installed with zoneadm. In the whole root model -- "create -b" -- you get your own local, writable file systems in the non-global zone, but at the expense of copying everything over. It's much slower to create and manage zones like that. An alternative is to make /usr/local writable inside the zone by adding an explicit lofs mount of read-write storage. In fact, in searching on google for this very issue, the Zones FAQ is the first hit, and it has this entry: http://www.opensolaris.org/os/community/zones/faq/#cfg_io_usrlocal -- James Carlson, Solaris Networking <[EMAIL PROTECTED]> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org