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 |
22 .SH FILES |
44 .SH FILES |
23 .sp |
45 .sp |
24 .LP |
46 .LP |
25 The following files specify the installation locations for Apache 2: |
47 The following files specify the installation locations for Apache 2: |
26 .LP |
48 .LP |
93 .sp .6 |
119 .sp .6 |
94 .RS 4n |
120 .RS 4n |
95 File for specifying the environment settings which the server uses at |
121 File for specifying the environment settings which the server uses at |
96 startup. This is the user-editable version of the |
122 startup. This is the user-editable version of the |
97 /usr/apache2/[version]/bin/envvars file. |
123 /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. |
98 .RE |
129 .RE |
99 |
130 |
100 .sp |
131 .sp |
101 .ne 2 |
132 .ne 2 |
102 .mk |
133 .mk |
381 .sp |
412 .sp |
382 The location of the cache can also be changed by changing the proxy |
413 The location of the cache can also be changed by changing the proxy |
383 configuration in the \fBhttpd.conf\fR file. |
414 configuration in the \fBhttpd.conf\fR file. |
384 .RE |
415 .RE |
385 |
416 |
|
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 |
386 .SH SEE ALSO |
466 .SH SEE ALSO |
387 .sp |
467 .sp |
388 .LP |
468 .LP |
389 \fBattributes(5)\fR, \fBhttpd(8)\fR, apachectl(8) |
469 \fBattributes(5)\fR, \fBhttpd(8)\fR, apachectl(8) |
390 .sp |
470 .sp |
391 .LP |
471 .LP |
392 http://www.apache.org |
472 http://httpd.apache.org/docs/ |
393 .SH NOTES |
473 .SH NOTES |
394 .sp |
474 .sp |
395 .LP |
475 .LP |
396 In addition to the documentation and man pages included with Solaris, |
476 In addition to the documentation and man pages included with Solaris, |
397 more information is available at http://www.apache.org\&. |
477 more information is available at http://httpd.apache.org/\&. |
398 .sp |
478 .sp |
399 .LP |
479 .LP |
400 The Apache 2 man pages are provided with the programming modules. To |
480 The Apache 2 man pages are provided with the programming modules. To |
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. |
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. |
402 See \fBman(1)\fR for more information. Running \fBcatman(1M)\fR on |
482 See \fBman(1)\fR for more information. Running \fBcatman(1M)\fR on |