Apache Server Configuration (Solaris Zone)

* The zone comes with apache2 already available * Follow the initial setup instructions from the ASF zone page (http://www.apache.org/dev/solaris-zones.html) * Create a SMF manifest for apache (so it can run as a service)

# mkdir /var/svc/manifest/application/web # vi /var/svc/manifest/application/web/apache.xml

* Add the following text

<?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<service_bundle type='manifest' name='apache'>

<service name='application/web/apache' type='service' version='1'>

</service> </service_bundle>

* Verify the validity of the xml file (command should run with no errors)

# svccfg -v validate apache.xml

* If you get a cryptic parse error you can try running the following to track it down

# xmllint --valid apache.xml

* Now import the manifest

# svccfg -v import apache.xml

* Check that the service was added (it should show it as disabled)

# svcs -v apache

* Now enable the service

# svcadm enable apache

* Verify that everything is started

# svcs -v apache should show enabled

* Check http://myfaces.zones.apache.org/

Apache_Server (last edited 2009-09-20 23:01:17 by localhost)