Sie sind auf Seite 1von 11

Apache on Solaris 10

SAMP - Solaris Apache MySQL PHP/Perl


LAMP - Linux Apache MySQL PHP/Perl/Python
2 Versions (1.. ! 2.0."0# are inclu$e$ %ith the Solaris 10 $istri&ution
1. Apache can &e $o%nloa$e$ 'ro( sunfreeware.com or the si(pler alternati)e o' *pkg-get* &e use$.
Ho%e)er this is not necessary as Solaris 10 co(es %ith apache(&oth )ersions 1. ! 2.x#. + %oul$
reco((en$ usin, Solaris*s )en$or pac-a,es.
2. Ho%e)er 'eel 'ree to use alternati)e pac-a,es 'ro( Sun'ree%are an$ .last%a)e.or,. +n this ,ui$e +
%ill &e usin, the apache 2 that ca(e %ith the Solaris 10 /V/.
. Query apache is installe$ on your syste(.
#pkgchk -x | grep -i apache
SUNWaclg Apache Common Logging
SUNWapch2d Apache Web Server V2 Documentation
SUNWapch2r Apache Web Server V2 (root)
SUNWapch2u Apache Web Server V2 (usr)
SUNWapchd Apache Web Server Documentation
SUNWapchr Apache Web Server (root)
SUNWapchu Apache Web Server (usr)
+' this is not the case on your syste( then install apache 'ro( your /V/ or 0/. 1sin, *#prodreg* %ill
help i' you 'in$ the tas- o' installin, pac-a,es 'ro( /V//0/ $auntin,.
2ote that you %ill nee$ access to the 311 /es-top to use pro$re,.
#which prodreg
usrbinprodreg
. 4nce you ha)e installe$ the apache pac-a,es you (ay use the #pkginfo -l 'package'5 to o&tain
(ore in'or(ation on each pac-a,e. 6his is e7ui)alent to #rpm -qi 'package' on a Linux rp( &ase$
syste(.
Let*s loo- at the (ain pac-a,es contents.
#pkginfo -l SUNapchr SUNapch!d SUNapch!r SUNapchd SUNaclg SUNapch!"
SUNapch"
!"#$NS%& SUNWaclg
NA'(& Apache Common Logging
CA%(#)*+& s,stem
A*C-& i./0
V(*S$)N& /123*(V4222512512.126127
8AS(D$*& usr
V(ND)*& Sun 'icros,stems3 $nc1
D(SC& Apache Common Logging
!S%A'!& la9orge22252.20272:57
$NS%DA%(& Dec 72 222/ 25&.7
-)%L$N(& !lease contact ,our local service provider
S%A%US& completel, installed
;$L(S& . installed pathnames
2 shared pathnames
2 directories
.0 bloc<s used (appro=)
!"#$NS%& SUNWapch2d
NA'(& Apache Web Server V2 Documentation
CA%(#)*+& s,stem
A*C-& i./0
V(*S$)N& 77172123*(V4222>12712/127126
8AS(D$*&
V(ND)*& Sun 'icros,stems3 $nc1
D(SC& %he Apache -%%! Server Version 2 (documentation)
!S%A'!& s9?72@patch@=222/2277262.5/
$NS%DA%(& Dec 72 222/ 25&..
-)%L$N(& !lease contact ,our local service provider
S%A%US& completel, installed
;$L(S& ::6 installed pathnames
2 shared pathnames
25 directories
:>> e=ecutables
76.60 bloc<s used (appro=)
!"#$NS%& SUNWapch2r
NA'(& Apache Web Server V2 (root)
CA%(#)*+& s,stem
A*C-& i./0
V(*S$)N& 77172123*(V4222>12712/127126
8AS(D$*&
V(ND)*& Sun 'icros,stems3 $nc1
D(SC& %he Apache -%%! server program Version 2 (root components)
!S%A'!& s9?72@patch@=222/2.2/262:72
$NS%DA%(& Dec 72 222/ 25&..
-)%L$N(& !lease contact ,our local service provider
S%A%US& completel, installed
;$L(S& .2. installed pathnames
/ shared pathnames
76 directories
70 e=ecutables
7077 bloc<s used (appro=)
!"#$NS%& SUNWapch2u
NA'(& Apache Web Server V2 (usr)
CA%(#)*+& s,stem
A*C-& i./0
V(*S$)N& 77172123*(V4222>12712/127126
8AS(D$*&
V(ND)*& Sun 'icros,stems3 $nc1
D(SC& %he Apache -%%! Server Version 2 (usr components)
!S%A'!& s9?72@patch@=222/2.2/262:2/
$NS%DA%(& Dec 72 222/ 25&..
-)%L$N(& !lease contact ,our local service provider
S%A%US& completel, installed
;$L(S& >>/ installed pathnames
2 shared pathnames
6> directories
260 e=ecutables
7756> bloc<s used (appro=)
!"#$NS%& SUNWapchd
NA'(& Apache Web Server Documentation
CA%(#)*+& s,stem
A*C-& i./0
V(*S$)N& 77172123*(V4222>12712/127126
8AS(D$*&
V(ND)*& Sun 'icros,stems3 $nc1
D(SC& %he Apache -%%! server (71.1=) (documentation)
!S%A'!& s9?72@patch@=222/2222262:27
$NS%DA%(& Dec 72 222/ 25&..
-)%L$N(& !lease contact ,our local service provider
S%A%US& completel, installed
;$L(S& >>6 installed pathnames
2 shared pathnames
.. directories
.>2 e=ecutables
752:6 bloc<s used (appro=)
!"#$NS%& SUNWapchr
NA'(& Apache Web Server (root)
CA%(#)*+& s,stem
A*C-& i./0
V(*S$)N& 77172123*(V4222>12712/127126
8AS(D$*&
V(ND)*& Sun 'icros,stems3 $nc1
D(SC& %he Apache -%%! server program (71.1=) (root components)
!S%A'!& s9?72@patch@=222/2.2/262:70
$NS%DA%(& Dec 72 222/ 25&..
-)%L$N(& !lease contact ,our local service provider
S%A%US& completel, installed
;$L(S& .2. installed pathnames
77 shared pathnames
> lin<ed 9iles
2. directories
. e=ecutables
::2 bloc<s used (appro=)
!"#$NS%& SUNWapchu
NA'(& Apache Web Server (usr)
CA%(#)*+& s,stem
A*C-& i./0
V(*S$)N& 77172123*(V4222>12712/127126
8AS(D$*&
V(ND)*& Sun 'icros,stems3 $nc1
D(SC& %he Apache -%%! server program (71.1=) (usr components)
!S%A'!& s9?72@patch@=222/2222262/2.
$NS%DA%(& Dec 72 222/ 25&..
-)%L$N(& !lease contact ,our local service provider
S%A%US& completel, installed
;$L(S& 26: installed pathnames
> shared pathnames
57 directories
22/ e=ecutables
>:22 bloc<s used (appro=)
2otice that there is the apache ser)er )ersion 1. an$ )ersion 2.
8or the apache 2 ser)er contents
pkgchk -# SUNapch!r
etc
etcapache2
etcapache2highper9ormance@std1con9
etcapache2highper9ormance1con9
etcapache2httpd@std1con9
etcapache2httpd1con9@e=ample
etcapache2magic
etcapache2mime1t,pes
etcapache2ssl@std1con9
etcapache2ssl1con9
lib
libsvc
libsvcmethod
libsvcmethodhttp@apache2
var
varapache2
varapache2build
varapache2buildaprArules1m<
varapache2buildcon9ig1nice
varapache2buildcon9igAvars1m<
varapache2buildinstdso1sh
varapache2buildlibrar,1m<
varapache2buildlibtool
varapache2buildltlib1m<
varapache2buildma<eAe=ports1a?<
varapache2buildma<eAvarAe=port1a?<
varapache2buildm<dir1sh
varapache2buildprogram1m<
varapache2buildrules1m<
varapache2buildspecial1m<
varapache2cgi@bin
varapache2cgi@binprintenv
varapache2cgi@bintest@cgi
varapache2error
varapache2error-%%!A8ADA#A%(WA+1html1var
varapache2error-%%!A8ADA*(BU(S%1html1var
varapache2error-%%!A;)*8$DD(N1html1var
varapache2error-%%!A#)N(1html1var
varapache2error-%%!A$N%(*NALAS(*V(*A(**)*1html1var
varapache2error-%%!AL(N#%-A*(BU$*(D1html1var
varapache2error-%%!A'(%-)DAN)%AALL)W(D1html1var
varapache2error-%%!AN)%A;)UND1html1var
varapache2error-%%!AN)%A$'!L('(N%(D1html1var
varapache2error-%%!A!*(C)ND$%$)NA;A$L(D1html1var
varapache2error-%%!A*(BU(S%A(N%$%+A%))ALA*#(1html1var
varapache2error-%%!A*(BU(S%A%$'(A)U%1html1var
varapache2error-%%!A*(BU(S%AU*$A%))ALA*#(1html1var
varapache2error-%%!AS(*V$C(AUNAVA$LA8L(1html1var
varapache2error-%%!AUNAU%-)*$C(D1html1var
varapache2error-%%!AUNSU!!)*%(DA'(D$AA%+!(1html1var
varapache2error-%%!AVA*$AN%AALS)AVA*$(S1html1var
varapache2error*(AD'(
varapache2errorcontact1html1var
varapache2errorinclude
varapache2errorincludebottom1html
varapache2errorincludespacer1html
varapache2errorincludetop1html
varapache2htdocs
varapache2htdocsapacheApb1gi9
varapache2htdocsapacheApb1png
varapache2htdocsapacheApb21gi9
varapache2htdocsapacheApb21png
varapache2htdocsapacheApb2Aani1gi9
varapache2htdocsinde=1html1ca
varapache2htdocsinde=1html1cD1iso//>6@2
varapache2htdocsinde=1html1de
varapache2htdocsinde=1html1d<
varapache2htdocsinde=1html1ee
varapache2htdocsinde=1html1el
varapache2htdocsinde=1html1en
varapache2htdocsinde=1html1es
varapache2htdocsinde=1html1et
varapache2htdocsinde=1html19r
varapache2htdocsinde=1html1he1iso//>6@/
varapache2htdocsinde=1html1hr1iso//>6@2
varapache2htdocsinde=1html1it
varapache2htdocsinde=1html1Ea1iso2222@Ep
varapache2htdocsinde=1html1<o1euc@<r
varapache2htdocsinde=1html1lb1ut9/
varapache2htdocsinde=1html1nl
varapache2htdocsinde=1html1nn
varapache2htdocsinde=1html1no
varapache2htdocsinde=1html1po1iso//>6@2
varapache2htdocsinde=1html1pt
varapache2htdocsinde=1html1pt@br
varapache2htdocsinde=1html1ru1cp@72>7
varapache2htdocsinde=1html1ru1cp/00
varapache2htdocsinde=1html1ru1iso@ru
varapache2htdocsinde=1html1ru1<oi/@r
varapache2htdocsinde=1html1ru1ut9/
varapache2htdocsinde=1html1sv
varapache2htdocsinde=1html1var
varapache2htdocsinde=1html1Dh@cn1gb2.72
varapache2htdocsinde=1html1Dh@t?1big>
varapache2icons
varapache2icons*(AD'(
varapache2icons*(AD'(1html
varapache2iconsa1gi9
varapache2iconsa1png
varapache2iconsalert1blac<1gi9
varapache2iconsalert1blac<1png
varapache2iconsalert1red1gi9
varapache2iconsalert1red1png
varapache2iconsapacheApb1gi9
varapache2iconsapacheApb1png
varapache2iconsapacheApb21gi9
varapache2iconsapacheApb21png
varapache2iconsapacheApb2Aani1gi9
varapache2iconsbac<1gi9
varapache2iconsbac<1png
varapache2iconsball1gra,1gi9
varapache2iconsball1gra,1png
varapache2iconsball1red1gi9
varapache2iconsball1red1png
varapache2iconsbinar,1gi9
varapache2iconsbinar,1png
varapache2iconsbinhe=1gi9
varapache2iconsbinhe=1png
varapache2iconsblan<1gi9
varapache2iconsblan<1png
varapache2iconsbomb1gi9
varapache2iconsbomb1png
varapache2iconsbo=71gi9
varapache2iconsbo=71png
varapache2iconsbo=21gi9
varapache2iconsbo=21png
varapache2iconsbro<en1gi9
varapache2iconsbro<en1png
varapache2iconsburst1gi9
varapache2iconsburst1png
varapache2iconsc1gi9
varapache2iconsc1png
varapache2iconscomp1blue1gi9
varapache2iconscomp1blue1png
varapache2iconscomp1gra,1gi9
varapache2iconscomp1gra,1png
varapache2iconscompressed1gi9
varapache2iconscompressed1png
varapache2iconscontinued1gi9
varapache2iconscontinued1png
varapache2iconsdir1gi9
varapache2iconsdir1png
varapache2iconsdis<img1gi9
varapache2iconsdis<img1png
varapache2iconsdo?n1gi9
varapache2iconsdo?n1png
varapache2iconsdvi1gi9
varapache2iconsdvi1png
varapache2icons91gi9
varapache2icons91png
varapache2icons9older1gi9
varapache2icons9older1open1gi9
varapache2icons9older1open1png
varapache2icons9older1png
varapache2icons9older1sec1gi9
varapache2icons9older1sec1png
varapache2icons9or?ard1gi9
varapache2icons9or?ard1png
varapache2iconsgeneric1gi9
varapache2iconsgeneric1png
varapache2iconsgeneric1red1gi9
varapache2iconsgeneric1red1png
varapache2iconsgeneric1sec1gi9
varapache2iconsgeneric1sec1png
varapache2iconshand1right1gi9
varapache2iconshand1right1png
varapache2iconshand1up1gi9
varapache2iconshand1up1png
varapache2iconsicon1sheet1gi9
varapache2iconsicon1sheet1png
varapache2iconsimage71gi9
varapache2iconsimage71png
varapache2iconsimage21gi9
varapache2iconsimage21png
varapache2iconsimage.1gi9
varapache2iconsimage.1png
varapache2iconsinde=1gi9
varapache2iconsinde=1png
varapache2iconsla,out1gi9
varapache2iconsla,out1png
varapache2iconsle9t1gi9
varapache2iconsle9t1png
varapache2iconslin<1gi9
varapache2iconslin<1png
varapache2iconsmovie1gi9
varapache2iconsmovie1png
varapache2iconsp1gi9
varapache2iconsp1png
varapache2iconspatch1gi9
varapache2iconspatch1png
varapache2iconspd91gi9
varapache2iconspd91png
varapache2iconspie21gi9
varapache2iconspie21png
varapache2iconspie71gi9
varapache2iconspie71png
varapache2iconspie21gi9
varapache2iconspie21png
varapache2iconspie.1gi9
varapache2iconspie.1png
varapache2iconspie51gi9
varapache2iconspie51png
varapache2iconspie>1gi9
varapache2iconspie>1png
varapache2iconspie01gi9
varapache2iconspie01png
varapache2iconspie:1gi9
varapache2iconspie:1png
varapache2iconspie/1gi9
varapache2iconspie/1png
varapache2iconsportal1gi9
varapache2iconsportal1png
varapache2iconsps1gi9
varapache2iconsps1png
varapache2iconsFuill1gi9
varapache2iconsFuill1png
varapache2iconsright1gi9
varapache2iconsright1png
varapache2iconsscre?71gi9
varapache2iconsscre?71png
varapache2iconsscre?21gi9
varapache2iconsscre?21png
varapache2iconsscript1gi9
varapache2iconsscript1png
varapache2iconssmall
varapache2iconssmallbac<1gi9
varapache2iconssmallbac<1png
varapache2iconssmallbinar,1gi9
varapache2iconssmallbinar,1png
varapache2iconssmallbinhe=1gi9
varapache2iconssmallbinhe=1png
varapache2iconssmallblan<1gi9
varapache2iconssmallblan<1png
varapache2iconssmallbro<en1gi9
varapache2iconssmallbro<en1png
varapache2iconssmallburst1gi9
varapache2iconssmallburst1png
varapache2iconssmallcomp71gi9
varapache2iconssmallcomp71png
varapache2iconssmallcomp21gi9
varapache2iconssmallcomp21png
varapache2iconssmallcompressed1gi9
varapache2iconssmallcompressed1png
varapache2iconssmallcontinued1gi9
varapache2iconssmallcontinued1png
varapache2iconssmalldir1gi9
varapache2iconssmalldir1png
varapache2iconssmalldir21gi9
varapache2iconssmalldir21png
varapache2iconssmalldoc1gi9
varapache2iconssmalldoc1png
varapache2iconssmall9or?ard1gi9
varapache2iconssmall9or?ard1png
varapache2iconssmallgeneric1gi9
varapache2iconssmallgeneric1png
varapache2iconssmallgeneric21gi9
varapache2iconssmallgeneric21png
varapache2iconssmallgeneric.1gi9
varapache2iconssmallgeneric.1png
varapache2iconssmallimage1gi9
varapache2iconssmallimage1png
varapache2iconssmallimage21gi9
varapache2iconssmallimage21png
varapache2iconssmallinde=1gi9
varapache2iconssmallinde=1png
varapache2iconssmall<e,1gi9
varapache2iconssmall<e,1png
varapache2iconssmallmovie1gi9
varapache2iconssmallmovie1png
varapache2iconssmallpatch1gi9
varapache2iconssmallpatch1png
varapache2iconssmallps1gi9
varapache2iconssmallps1png
varapache2iconssmallrainbo?1gi9
varapache2iconssmallrainbo?1png
varapache2iconssmallsound1gi9
varapache2iconssmallsound1png
varapache2iconssmallsound21gi9
varapache2iconssmallsound21png
varapache2iconssmalltar1gi9
varapache2iconssmalltar1png
varapache2iconssmallte=t1gi9
varapache2iconssmallte=t1png
varapache2iconssmalltrans9er1gi9
varapache2iconssmalltrans9er1png
varapache2iconssmallun<no?n1gi9
varapache2iconssmallun<no?n1png
varapache2iconssmalluu1gi9
varapache2iconssmalluu1png
varapache2iconssound71gi9
varapache2iconssound71png
varapache2iconssound21gi9
varapache2iconssound21png
varapache2iconssphere71gi9
varapache2iconssphere71png
varapache2iconssphere21gi9
varapache2iconssphere21png
varapache2iconstar1gi9
varapache2iconstar1png
varapache2iconste=1gi9
varapache2iconste=1png
varapache2iconste=t1gi9
varapache2iconste=t1png
varapache2iconstrans9er1gi9
varapache2iconstrans9er1png
varapache2iconsun<no?n1gi9
varapache2iconsun<no?n1png
varapache2iconsup1gi9
varapache2iconsup1png
varapache2iconsuu1gi9
varapache2iconsuu1png
varapache2iconsuuencoded1gi9
varapache2iconsuuencoded1png
varapache2icons?orld71gi9
varapache2icons?orld71png
varapache2icons?orld21gi9
varapache2icons?orld21png
varapache2logs
varapache2pro=,
varsvc
varsvcmani9est
varsvcmani9estnet?or<
varsvcmani9estnet?or<http@apache21=ml
9. Veri'y the state o' the apache ser)ice
$#c$ -a | grep -i apache
legac,Arun AprA2: lrc&etcrc.AdS>2apache
disbaled AprA2: svc&net?or<http&apache2
". :ou coul$ create the http$.con' 'ile &y copyin,5 %etc%apache!%httpd&conf-
example to %etc%apache!%httpd&conf
#cp %etc%apache!%httpd&conf-example %etc%apache!%httpd&conf
2ote that there are t%o /etc/apache/ an$ /etc/apache2/ $irectories 'or the apache con'i,uration 'iles5
ho%e)er in this case + %ill &e usin, apache2.
;. 6he httpd&conf is too co(plex to explain here5 su''ice to say + %ill con'i,ure the &asic $irecti)es to
,et apache %or-in,. 6o $o this up$ate the *Ser#erName* an$ the *Ser#erAdmin* $irecti)es 'or the
(ain ser)er in your /etc/apache2/http$.con' 'ile. <$it your http$.con' 'or your 'ile %hether usin,
apache2 or apache 1..
.elo% are the $irecti)es 'or one o' (y Solaris 10 &oxes.
ServerName siDDla19adas<eng1com
Document*oot Gvarapache2htdocsG
ServerAdmin s<engH9adas<eng1com
2ote that the /ocu(ent =oot is %here apache loo-s 'or it*s content. +ts in$ex.php or in$ex.ht(l 'ile.
.y $e'ault its
varapache2htdocs @ solaris 72
var???html @ Centos*edhat;edora s,stems
srv???htdocs @ Suse
var???htdocs @ Debian
>. 6he next tas- is to ena&le the apache ser)er.
#$#cadm ena'le apache!
#$#c$ -l apache!
9mri svc&net?or<http&apache2
name Apache 2 -%%! server
enabled true
state online
ne=tAstate none
stateAtime : April 2272 7/&2.&7/ W(S%
log9ile varsvclognet?or<@http&apache21log
restarter svc&s,stemsvcrestarter&de9ault
contractAid 00
dependenc, reFuireAallerror svc&milestonenet?or<&de9ault (online)
dependenc, reFuireAallnone svc&s,stem9iles,stemlocal&de9ault (online)
dependCenc, optionalAallerror svc&s,stem9iles,stemauto9s&de9ault
(online)
2ote the apache2 lo, 'ile location.
varsvclognet?or<@http&apache21log
6he content 'or an apache2 lo, 'ile one o' (y sun &ox loo-s li-e the 'ollo%in,.
I Dec 72 2>&72&27 Disabled1 J
I Dec 72 2>&72&27 *ereading con9iguration1 J
I ;eb 5 72&26&57 (nabled1 J
I ;eb 5 72&26&57 (=ecuting start method (Glibsvcmethodhttp@apache2
startG) J
I ;eb 5 72&26&5. 'ethod GstartG e=ited ?ith status 2 J
I ;eb 5 72&2>&22 Stopping because service restarting1 J
I ;eb 5 72&2>&22 (=ecuting stop method (Glibsvcmethodhttp@apache2
stopG) J
I ;eb 5 72&2>&22 'ethod GstopG e=ited ?ith status 2 J
I ;eb 5 72&2>&22 (=ecuting start method (Glibsvcmethodhttp@apache2
startG) J
I ;eb 5 72&2>&22 'ethod GstartG e=ited ?ith status 2 J
I ;eb / 76&26&57 Disabled1 J
I ;eb / 76&.2&26 (=ecuting start method (Glibsvcmethodhttp@apache2
startG) J
I ;eb / 76&.2&.6 'ethod GstartG e=ited ?ith status 2 J
I ;eb 2/ 27&52&>6 (=ecuting start method (Glibsvcmethodhttp@apache2
startG) J
I ;eb 2/ 27&5.&7: 'ethod GstartG e=ited ?ith status 2 J
I 'ar . 7>&26&7. (=ecuting start method (Glibsvcmethodhttp@apache2
startG) J
I 'ar . 7>&26&2: 'ethod GstartG e=ited ?ith status 2 J
I 'ar 22 7>&2>&27 (=ecuting start method (Glibsvcmethodhttp@apache2
startG) J
I 'ar 22 7>&2>&.2 'ethod GstartG e=ited ?ith status 2 J
I Apr : 7/&2.&72 (=ecuting start method (Glibsvcmethodhttp@apache2
startG) J
I Apr : 7/&2.&7/ 'ethod GstartG e=ited ?ith status 2 J
Also note the $epencies 'or apache2 on Solaris 10. ?here a net%or- a$aptor an$ local 'ilesyste( are
re7uire$. Ho%e)er auto's is optional.
dependenc, reFuireAallerror svc&milestonenet?or<&de9ault (online)
dependenc, reFuireAallnone svc&s,stem9iles,stemlocal&de9ault (online)
dependenc, optionalAallerror svc&s,stem9iles,stemauto9s&de9ault (online)
@. Veri'y that the apache $ae(on is runnin, &y usin, net$tat. Ha)e a loo- at the netstat ,ui$e 'or
'urther tips on usin, netstat on Solaris
#net$tat -anP tcp | grep ()
K1.2:/2 K1K 2 2 567>2 2 L$S%(N
K1/2 K1K 2 2 567>2 2 L$S%(N
72:1212171.2/26 K1K 2 2 567>2 2 L$S%(N
K1/2 K1K 2 2 567>2 2 L$S%(N
A. 4pen your &ro%ser an$ place the 'ollo%in, 1=L in it http*%%localho$t%man"al an$ the $e'ault
apache pa,e can &e )ie%e$ usin, http*%%localho$t%.
.arrin, any 'ire%all restrictions you shoul$ &e a&le to )ie% the apache $e'ault pa,e 'ro( a re(ote
syste(.
1sin, the +P or /2S na(e 'or your Solaris 10 &ox.

Das könnte Ihnen auch gefallen