<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.nginx.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;feed=atom&amp;action=history</id>
		<title>Installing on Solaris 11 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;action=history"/>
		<updated>2013-05-20T01:49:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;diff=1808&amp;oldid=prev</id>
		<title>Admin: /* Installation */</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;diff=1808&amp;oldid=prev"/>
				<updated>2012-04-20T19:25:17Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Installation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:25, 20 April 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Installation =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Installation =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Please see [[Installing_on_Solaris_10_u5]] for a detailed walkthrough, this is the bare essentials for installing nginx on Solaris 11. Solaris 11 has much improved versions of PCRE and OpenSSL so it's not required to install them manually. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Please see [[Installing_on_Solaris_10_u5&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| Solaris 10u5&lt;/ins&gt;]] for a detailed walkthrough, this is the bare essentials for installing nginx on Solaris 11. Solaris 11 has much improved versions of PCRE and OpenSSL so it's not required to install them manually. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Install packages ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Install packages ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;diff=1800&amp;oldid=prev</id>
		<title>Cypres at 11:01, 19 April 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;diff=1800&amp;oldid=prev"/>
				<updated>2012-04-19T11:01:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 11:01, 19 April 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;!DOCTYPE service_bundle SYSTEM &amp;quot;/usr/share/lib/xml/dtd/service_bundle.dtd.1&amp;quot;&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;!DOCTYPE service_bundle SYSTEM &amp;quot;/usr/share/lib/xml/dtd/service_bundle.dtd.1&amp;quot;&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/del&gt;&amp;lt;service_bundle type='manifest' name='nginx'&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;service_bundle type='manifest' name='nginx'&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &lt;/del&gt;&amp;lt;service name='network/nginx' type='service' version='1'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/ins&gt;&amp;lt;service name='network/nginx' type='service' version='1'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;lt;create_default_instance enabled='false' /&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;lt;create_default_instance enabled='false' /&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;lt;single_instance /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;lt;single_instance /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cypres</name></author>	</entry>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;diff=1798&amp;oldid=prev</id>
		<title>Cypres: Created page with &quot;= Installation = Please see Installing_on_Solaris_10_u5 for a detailed walkthrough, this is the bare essentials for installing nginx on Solaris 11. Solaris 11 has much imp...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Installing_on_Solaris_11&amp;diff=1798&amp;oldid=prev"/>
				<updated>2012-04-19T10:57:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Installation = Please see &lt;a href=&quot;/Installing_on_Solaris_10_u5&quot; title=&quot;Installing on Solaris 10 u5&quot;&gt;Installing_on_Solaris_10_u5&lt;/a&gt; for a detailed walkthrough, this is the bare essentials for installing nginx on Solaris 11. Solaris 11 has much imp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Installation =&lt;br /&gt;
Please see [[Installing_on_Solaris_10_u5]] for a detailed walkthrough, this is the bare essentials for installing nginx on Solaris 11. Solaris 11 has much improved versions of PCRE and OpenSSL so it's not required to install them manually. &lt;br /&gt;
&lt;br /&gt;
== Install packages ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pkg install gcc-45&lt;br /&gt;
pkg install system/header&lt;br /&gt;
pkg install make&lt;br /&gt;
pkg install pcre&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fetch and compile nginx ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
wget http://nginx.org/download/nginx-1.0.15.tar.gz&lt;br /&gt;
tar xvzpf nginx-1.0.15.tar.gz&lt;br /&gt;
cd nginx-1.0.15&lt;br /&gt;
./configure --prefix=/opt/nginx --with-cpu-opt=&amp;quot;amd64&amp;quot; --with-ipv6 --with-http_ssl_module&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Startup script =&lt;br /&gt;
&lt;br /&gt;
Same as [[Installing_on_Solaris_10_u5]].&lt;br /&gt;
&lt;br /&gt;
Create the file /lib/svc/method/svc-nginx with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
NGINX_CMD=&amp;quot;/opt/nginx/sbin/nginx&amp;quot;&lt;br /&gt;
NGINX_CONF=&amp;quot;/opt/nginx/conf/nginx.conf&amp;quot;&lt;br /&gt;
RETVAL=0&lt;br /&gt;
start() {&lt;br /&gt;
   echo &amp;quot;Starting Nginx Web Server: \c&amp;quot;&lt;br /&gt;
   $NGINX_CMD -c $NGINX_CONF &amp;amp;&lt;br /&gt;
   RETVAL=$?&lt;br /&gt;
   [ $RETVAL -eq 0 ] &amp;amp;&amp;amp; echo &amp;quot;ok&amp;quot; || echo &amp;quot;failed&amp;quot;&lt;br /&gt;
   return $RETVAL&lt;br /&gt;
}&lt;br /&gt;
stop() {&lt;br /&gt;
   echo &amp;quot;Stopping Nginx Web Server: \c&amp;quot;&lt;br /&gt;
   NGINX_PID=`ps -ef |grep $NGINX_CMD |grep -v grep |awk '{print $2}'`&lt;br /&gt;
   kill $NGINX_PID&lt;br /&gt;
   RETVAL=$?&lt;br /&gt;
   [ $RETVAL -eq 0 ] &amp;amp;&amp;amp; echo &amp;quot;ok&amp;quot; || echo &amp;quot;failed&amp;quot;&lt;br /&gt;
   return $RETVAL&lt;br /&gt;
}&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
   start)&lt;br /&gt;
      start&lt;br /&gt;
      ;;&lt;br /&gt;
   stop)&lt;br /&gt;
      stop&lt;br /&gt;
      ;;&lt;br /&gt;
   restart)&lt;br /&gt;
      stop&lt;br /&gt;
      start&lt;br /&gt;
      ;;&lt;br /&gt;
   *)&lt;br /&gt;
      echo &amp;quot;Usage: $0 {start|stop|restart}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
esac&lt;br /&gt;
exit $RETVAL&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the manifest (almost same but correct typo in stability to &amp;quot;Stable&amp;quot; with a capital S, and new version number.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt; &lt;br /&gt;
&amp;lt;!DOCTYPE service_bundle SYSTEM &amp;quot;/usr/share/lib/xml/dtd/service_bundle.dtd.1&amp;quot;&amp;gt; &lt;br /&gt;
  &amp;lt;service_bundle type='manifest' name='nginx'&amp;gt; &lt;br /&gt;
    &amp;lt;service name='network/nginx' type='service' version='1'&amp;gt;&lt;br /&gt;
    &amp;lt;create_default_instance enabled='false' /&amp;gt; &lt;br /&gt;
    &amp;lt;single_instance /&amp;gt;&lt;br /&gt;
    &amp;lt;exec_method type='method' name='start' exec='/lib/svc/method/svc-nginx start' timeout_seconds='60'/&amp;gt;&lt;br /&gt;
    &amp;lt;exec_method type='method' name='stop' exec='/lib/svc/method/svc-nginx stop' timeout_seconds='60' /&amp;gt;&lt;br /&gt;
    &amp;lt;exec_method type='method' name='restart' exec='/lib/svc/method/svc-nginx restart' timeout_seconds='60' /&amp;gt; &lt;br /&gt;
    &amp;lt;stability value='Stable' /&amp;gt; &lt;br /&gt;
    &amp;lt;template&amp;gt; &lt;br /&gt;
      &amp;lt;common_name&amp;gt;&lt;br /&gt;
        &amp;lt;loctext xml:lang='C'&amp;gt; Nginx 1.0.15 &amp;lt;/loctext&amp;gt; &lt;br /&gt;
      &amp;lt;/common_name&amp;gt;&lt;br /&gt;
      &amp;lt;documentation&amp;gt; &lt;br /&gt;
        &amp;lt;manpage title='nginx' section='8' manpath='/usr/share/man' /&amp;gt; &lt;br /&gt;
      &amp;lt;/documentation&amp;gt;&lt;br /&gt;
    &amp;lt;/template&amp;gt;&lt;br /&gt;
  &amp;lt;/service&amp;gt;&lt;br /&gt;
&amp;lt;/service_bundle&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the permissions and import it&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
chown root:bin /lib/svc/method/svc-nginx &amp;amp;&amp;amp; chmod 555 /lib/svc/method/svc-nginx&lt;br /&gt;
chmod 444 /var/svc/manifest/network/nginx.xml&lt;br /&gt;
chown root:sys /var/svc/manifest/network/nginx.xml&lt;br /&gt;
svccfg -v import /var/svc/manifest/network/nginx.xml&lt;br /&gt;
svcadm enable nginx&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cypres</name></author>	</entry>

	</feed>