> Our Apache installation will have both prefork and wokrer mpm binaries. The > default > server "httpd" will use prefork mpm model. The one that uses worker mpm model > will be > named as httpd.worker. To choose between these servers, we can use one of the > following > > 1. set HTTPD variable within /usr/apache2/bin/envvars. > envvars is already sourced within apachectl. This is applicable when > invoked > as SMF service as Apache smf service internally invokes apachectl.
Do other Apache packages on other OS vendors use this file to chose prefork versus worker? If not, I definitely would suggest not adding this as the SMF property should be sufficient. And even if this method is used with other vendors, I would question where OpenSolaris should offer this knob unless it's a well documented option for Apache. In addition, /usr may be read-only so if this really is meant to be a configuration point, the file really needs to live somewhere else. > 2. use a smf property for the svc:/network/http:apache2 service. > This works when Apache is started as a SMF service. So maybe that's my confusion - in what other ways will the Apache daemon be started? > 3. use a different (new) file "/etc/default/httpd" to define HTTPD variable > and modify apachectl > to source this file. > /etc/default is a deprecated method of storing configuration > information. Hence not recommended. We definitely should not provide such an option. >> - There was discussion of adding a 'build' directory. Closure? > > Correction...we are not adding "build" directory. We are moving "build" > directory > currently under /var/apache2 to /usr/apache2 directory. > Reason: apxs expects the build directory to be under "%PREFIX%" which is, in > our case, > "/usr/apache2" dir. What are the contents of the "build" directory used for and is it expected that users will be changing the contents of it? Also, is this something whose contents might be different on a per-zone basis? If so, then leaving it under /var/apache2 and perhaps providing a symbolic link from /usr/apache2 is a solution. dsc
