components/apache2/Solaris/apache2.1m.sunman
changeset 1346 ebb3e4503fed
parent 1331 0d14e812ca53
child 1356 c6521b210fd9
equal deleted inserted replaced
1345:ee87318d9935 1346:ebb3e4503fed
     1 '\" te
     1 '\" te
     2 .\" Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
     2 .\" Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
     3 .TH apache2 1M "May 2013" "SunOS 5.12" "System Administration Commands"
     3 .TH apache2 1M "May 2011" "SunOS 5.11" "System Administration Commands"
     4 .SH NAME
     4 .SH NAME
     5 apache2 \- Apache HTTP Server Version 2 overview
     5 apache2 \- Apache HTTP Server Version 2 overview
     6 .SH SYNOPSIS
     6 .SH SYNOPSIS
     7 .LP
     7 .LP
     8 .nf
     8 .nf
    17 files, and documentation.
    17 files, and documentation.
    18 .sp
    18 .sp
    19 .LP
    19 .LP
    20 Both 32-bit and 64-bit versions of the servers are installed. It also
    20 Both 32-bit and 64-bit versions of the servers are installed. It also
    21 includes two of the most popular MPMs - Prefork and Worker.
    21 includes two of the most popular MPMs - Prefork and Worker.
    22 .sp
       
    23 Apache 2 can be enabled by authorized user within the service
       
    24 management facility (SMF), using the following fault management
       
    25 resource identifier (FMRI):
       
    26 .sp
       
    27 .in +2
       
    28 .nf
       
    29 svc:/network/http:apache22
       
    30 .fi
       
    31 .in -2
       
    32 .sp
       
    33 Available SMF properties are listed in the following table:
       
    34 .sp
       
    35 .TS
       
    36 tab(^G) allbox;
       
    37 cw(2.750000i)| cw(2.750000i)
       
    38 lw(2.750000i)| lw(2.750000i).
       
    39 SMF Property Name^Value 
       
    40 httpd/server_type^prefork (default) or worker 
       
    41 httpd/enable_64bit^true or false(default)
       
    42 httpd/startup_options^valid apachectl options
       
    43 .TE
       
    44 .SH FILES
    22 .SH FILES
    45 .sp
    23 .sp
    46 .LP
    24 .LP
    47 The following files specify the installation locations for Apache 2:
    25 The following files specify the installation locations for Apache 2:
    48 .LP
    26 .LP
    85 .ad
    63 .ad
    86 .sp .6
    64 .sp .6
    87 .RS 4n
    65 .RS 4n
    88 Contains server configuration files. A newly-installed server
    66 Contains server configuration files. A newly-installed server
    89 contains a default \fBhttpd.conf\fR file. This is the main configuration file.
    67 contains a default \fBhttpd.conf\fR file. This is the main configuration file.
    90 .sp
       
    91 If there is need to use different main configuration file (e.g. to run
       
    92 multiple Apache 2 instances), it's possible by providing Apache '-f'
       
    93 option via SMF property httpd/startup_options.
       
    94 .RE
    68 .RE
    95 
    69 
    96 .sp
    70 .sp
    97 .ne 2
    71 .ne 2
    98 .mk
    72 .mk
   119 .sp .6
    93 .sp .6
   120 .RS 4n
    94 .RS 4n
   121 File for specifying the environment settings which the server uses at
    95 File for specifying the environment settings which the server uses at
   122 startup. This is the user-editable version of the 
    96 startup. This is the user-editable version of the 
   123 /usr/apache2/[version]/bin/envvars file. 
    97 /usr/apache2/[version]/bin/envvars file. 
   124 .sp
       
   125 Note that this is default path to envvars file only in case where main
       
   126 configuration file is in directory /etc/apache2/[version]/2.2/. If this
       
   127 is not the case Apache 2 will look for envvars file in the same
       
   128 directory where is main configuration file.
       
   129 .RE
    98 .RE
   130 
    99 
   131 .sp
   100 .sp
   132 .ne 2
   101 .ne 2
   133 .mk
   102 .mk
   412 .sp
   381 .sp
   413 The location of the cache can also be changed by changing the proxy
   382 The location of the cache can also be changed by changing the proxy
   414 configuration in the \fBhttpd.conf\fR file.
   383 configuration in the \fBhttpd.conf\fR file.
   415 .RE
   384 .RE
   416 
   385 
   417 .SH EXAMPLES
       
   418 .LP
       
   419 \fBExample 1 \fRTo enable 64-bit server
       
   420 .sp
       
   421 
       
   422 .in +2
       
   423 .nf
       
   424 # \fBsvccfg -s apache22 setprop httpd/enable_64bit=false\fR
       
   425 # \fBsvcadm refresh apache22\fR
       
   426 # \fBsvcadm enable apache22\fR
       
   427 .fi
       
   428 .in -2
       
   429 .sp
       
   430 
       
   431 .LP
       
   432 \fBExample 2 \fRTo switch to worker server type
       
   433 .sp
       
   434 
       
   435 .in +2
       
   436 .nf
       
   437 # \fBsvccfg -s apache22 setprop httpd/server_type=worker\fR
       
   438 # \fBsvcadm refresh apache22\fR
       
   439 # \fBsvcadm restart apache22\fR
       
   440 .fi
       
   441 .in -2
       
   442 .sp
       
   443 
       
   444 .LP
       
   445 \fBExample 3 \fRCreate new SMF apache instance
       
   446 .sp
       
   447 .LP
       
   448 This expects that valid configuration exists in
       
   449 /var/myapache/httpd.conf and it has altered all relevant directives
       
   450 against default apache instance (e.g. PidFile, Listen, DocumentRoot,
       
   451 ErrorLog and CustomLog).
       
   452 .sp
       
   453 .in +2
       
   454 .nf
       
   455 # \fBcp /lib/svc/manifest/network/http-apache22.xml my-apache22.xml\fR
       
   456 .sp
       
   457 Edit my-apache22.xml and rename instance name to my-apache22.
       
   458 
       
   459 # \fBsvccfg import my-apache22.xml\fR
       
   460 # \fBsvccfg -s my-apache22 setprop httpd/startup_options=\\("-f" "/var/myapache/httpd.conf"\\)\fR
       
   461 # \fBsvcadm refresh my-apache22\fR
       
   462 .fi
       
   463 .in -2
       
   464 .sp
       
   465 
       
   466 .SH SEE ALSO
   386 .SH SEE ALSO
   467 .sp
   387 .sp
   468 .LP
   388 .LP
   469 \fBattributes(5)\fR, \fBhttpd(8)\fR, apachectl(8)
   389 \fBattributes(5)\fR, \fBhttpd(8)\fR, apachectl(8)
   470 .sp
   390 .sp
   471 .LP
   391 .LP
   472 http://httpd.apache.org/docs/
   392 http://www.apache.org
   473 .SH NOTES
   393 .SH NOTES
   474 .sp
   394 .sp
   475 .LP
   395 .LP
   476 In addition to the documentation and man pages included with Solaris,
   396 In addition to the documentation and man pages included with Solaris,
   477 more information is available at http://httpd.apache.org/\&.
   397 more information is available at http://www.apache.org\&.
   478 .sp
   398 .sp
   479 .LP
   399 .LP
   480 The Apache 2 man pages are provided with the programming modules. To
   400 The Apache 2 man pages are provided with the programming modules. To
   481 view the manual pages for the Apache 2 modules with the man command, add \fB/usr/apache2/[version]/man\fR to the MANPATH environment variable.
   401 view the manual pages for the Apache 2 modules with the man command, add \fB/usr/apache2/[version]/man\fR to the MANPATH environment variable.
   482 See \fBman(1)\fR for more information. Running \fBcatman(1M)\fR on
   402 See \fBman(1)\fR for more information. Running \fBcatman(1M)\fR on