Sie sind auf Seite 1von 7

Apache on Mandriva(rpm based)

There are so many 'how-tos' and documentation out there on the Internet for Centos/Fedrora, Suse
and Redhat that I've decide to use Mandriva in this instance.
1. ocate and insta!! the r"m. I wi!! #e usin$ the command !ine uti!ity urpmi that comes with
Mandriva. #urpmi is simi!ar to %y""er&Suse', yum&Red(at/Centos/Fedroa' and a"t-
$et/a"titude&)e#ian/*#untu'.
#urpmi apache
In order to satisfy the 'apache-mpm-prefork|apache-mpm-peruser' dependency,
one of the
following packages is needed:
1- apache-mpm-prefork-2.2.14-1md2!1!.!.i"#$: Implements a non-threaded, pre-
forking we%
serer &sta%le' &to install'
2- apache-mpm-peruser-2.2.14-1md2!1!.!.i"#$: Implements a hy%rid multi-
process,
multi-threaded we% serer &e(perimental' &to install'
)hat is your choice* &1-2' 1
+o satisfy dependencies, the following packages are going to %e installed:
,ackage -ersion .elease /rch
&medium 01ain media0'
apache-%ase 2.2.14 1md2!1!.! i"#$
apache-conf 2.2.14 1md2!1!.! i"#$
apache-modules 2.2.14 1md2!1!.! i"#$
apache-mpm-prefork 2.2.14 1md2!1!.! i"#$
li%apr-util1 1.2.3 1md2!1!.! i"#$
li%apr1 1.2.3 1md2!1!.! i"#$
2.214 of additional disk space will %e used.
#5"64 of packages will %e retrieed.
,roceed with the installation of the $ packages* &78n'
se!ect 'y'
+ou may need to u"date your Mandriva re"ository or ur"mi wi!! !oo, to your media C)/)-) drive.
urpmi.addmedia --distri% --mirrorlist
adding medium 01ain0
adding medium 01ain 9pdates0
adding medium 01ain +esting0 &ignored %y default'
adding medium 01ain 4ackports0 &ignored %y default'
adding medium 01ain de%ug0 &ignored %y default'
adding medium 01ain 9pdates de%ug0 &ignored %y default'
adding medium 01ain +esting de%ug0 &ignored %y default'
adding medium 01ain 4ackports de%ug0 &ignored %y default'
adding medium 0:ontri%0
adding medium 0:ontri% 9pdates0
adding medium 0:ontri% +esting0 &ignored %y default'
adding medium 0:ontri% 4ackports0 &ignored %y default'
adding medium 0:ontri% de%ug0 &ignored %y default'
adding medium 0:ontri% 9pdates de%ug0 &ignored %y default'
adding medium 0:ontri% +esting de%ug0 &ignored %y default'
adding medium 0:ontri% 4ackports de%ug0 &ignored %y default'
adding medium 0;on-free0
adding medium 0;on-free 9pdates0
adding medium 0;on-free +esting0 &ignored %y default'
adding medium 0;on-free 4ackports0 &ignored %y default'
adding medium 0de%ug<non-free<release0 &ignored %y default'
adding medium 0de%ug<non-free<updates0 &ignored %y default'
adding medium 0de%ug<non-free<testing0 &ignored %y default'
adding medium 0de%ug<non-free<%ackports0 &ignored %y default'
=1I..>.?I@+: media8main8release8media<info82!1!!125-1"!"4$-
synthesis.hdlist.cA
=1I..>.?I@+: media8main8updates8media<info82!1!!"!5-1"4223-
synthesis.hdlist.cA
=1I..>.?I@+: media8contri%8release8media<info82!1!!1!4-1!"$!"-
synthesis.hdlist.cA
=1I..>.?I@+: media8contri%8updates8media<info82!1!!"!3-132$1$-
synthesis.hdlist.cA
=1I..>.?I@+: media8non-free8release8media<info82!!311!$-!3234"-
synthesis.hdlist.cA
=1I..>.?I@+: media8non-free8updates8media<info82!1!!422-142"1$-
synthesis.hdlist.c
This is to u"date your media sources.
If you don't have the )-)/C) media avai!a#!e, then remove this re"ository usin$ the command
#urpmi.removemedia "Main media"
remoing medium 01ain media0
Then down!oad and insta!! a"ache
In order to satisfy the
'apache-mpm-peruser|apache-mpm-prefork|apache-mpm-rs%ac|apache-mpm-eent|
apache-mpm-itk|apache-mpm-prefork|
apache-mpm-rs%ac|apache-mpm-eent|apache-mpm-itk|apache-mpm-peruser|apache-
mpm-worker|apache-mpm-worker'
dependency, one of the following packages is needed:
1- apache-mpm-prefork-2.2.14-1.4md2!1!.!.i"#$: Implements a non-threaded,
pre-forking we%
serer &sta%le' &to install'
2- apache-mpm-eent-2.2.14-1.4md2!1!.!.i"#$: Implements a hy%rid multi-
threaded
multi-process we% serer &e(perimental' &to install'
2- apache-mpm-worker-2.2.14-1.4md2!1!.!.i"#$: Implements a hy%rid multi-
threaded
multi-process we% serer &e(perimental' &to install'
4- apache-mpm-peruser-2.2.14-1.4md2!1!.!.i"#$: Implements a hy%rid multi-
process,
multi-threaded we% serer &e(perimental' &to install'
"- apache-mpm-itk-2.2.14-1.4md2!1!.!.i"#$: Implements a non-threaded, pre-
forking we%
serer &e(perimental' &to install'
$- apache-mpm-rs%ac-2.2.14-1.4md2!1!.!.i"#$: Implements a non-threaded, pre-
forking we%
serer with .@/4: patch &sta%le' &to install'
)hat is your choice* &1-$' 1
+o satisfy dependencies, the following packages are going to %e installed:
,ackage -ersion .elease /rch
&medium 01ain0'
li%apr-util1 1.2.3 1md2!1!.! i"#$
li%apr1 1.2.3 1md2!1!.! i"#$
&medium 01ain 9pdates0'
apache-%ase 2.2.14 1.4md2!1!.! i"#$
apache-conf 2.2.14 1.2md2!1!.! i"#$
apache-modules 2.2.14 1.4md2!1!.! i"#$
apache-mpm-prefork 2.2.14 1.4md2!1!.! i"#$
2.214 of additional disk space will %e used.
#5564 of packages will %e retrieed.
,roceed with the installation of the $ packages* &78n' y
=1I..>.?I@+: media8main8release8li%apr1-1.2.3-1md2!1!.!.i"#$.rpm
=1I..>.?I@+: media8main8release8li%apr-util1-1.2.3-1md2!1!.!.i"#$.rpm
=1I..>.?I@+: media8main8updates8apache-conf-2.2.14-1.2md2!1!.!.i"#$.rpm
=1I..>.?I@+: media8main8updates8apache-modules-2.2.14-
1.4md2!1!.!.i"#$.rpm
=1I..>.?I@+: media8main8updates8apache-mpm-prefork-2.2.14-
1.4md2!1!.!.i"#$.rpm
=1I..>.?I@+: media8main8updates8apache-%ase-2.2.14-1.4md2!1!.!.i"#$.rpm
installing li%apr-util1-1.2.3-1md2!1!.!.i"#$.rpm li%apr1-1.2.3-
1md2!1!.!.i"#$.rpm
apache-conf-2.2.14-1.2md2!1!.!.i"#$.rpm apache-%ase-2.2.14-
1.4md2!1!.!.i"#$.rpm
apache-mpm-prefork-2.2.14-1.4md2!1!.!.i"#$.rpm apache-modules-2.2.14-
1.4md2!1!.!.i"#$.rpm
from 8ar8cache8urpmi8rpms
,reparing...
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
18$: li%apr1
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
28$: li%apr-util1
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
28$: apache-conf
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
48$: apache-%ase
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
"8$: apache-modules
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
$8$: apache-mpm-prefork
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
----------------------------------------------------------------------
1ore information on package apache-%ase-2.2.14-1.4md2!1!.!.i"#$
+he most significant changes with this release compared to apache up to
1andria ?inu( 2!!$.!, 2!!5.!, 2!!5.1, 2!!#.! and 2!!#.1
o mod<ssl has support for distcache, apr<memcache and @;I per default.
o +he @@? certificates and directories has %een moed to the new 8etc8pki
directory structure.
o +he @@? default host config file has %een moed from
8etc8httpd8modules.d841<mod<ssl.default-host.conf to
8etc8httpd8conf8hosts.d8!1<default<ssl<host.conf
o +he new htcacheclean su%package will monitor and clean the mod<pro(y
&mod<disk<cache' directories at gien interals in a daemoniAed fashion.
7ou can tune this in the 8etc8sysconfig8htcacheclean configuration file.
o +here are three new e(perimental 1,1's, the I+6, peruser and eent 1,1's.
9se these with caution %ecause of their e(perimental status. +he packages
are named:
- apache-mpm-eent
- apache-mpm-itk
- apache-mpm-peruser
,lease read the following files for more in-depth information a%out the
changes
in apache 2.2C upgrading.t(t and new<features<2<2.t(t
+he %est practise is to read the apache manual %efore sending in %ugreports,
please install apache-doc like so:
urpmi apache-doc
and then read the somewhat localiAed apache manual online at:
http:88localhost8manual8
+hanks in adance.
.egards 88 >den Driksson
----------------------------------------------------------------------
.. -erify that the r"ms have #een ista!!ed.
#rpm -qa | grep -i apache
apache-%ase-2.2.14-1.4md2!1!.!
apache-conf-2.2.14-1.2md2!1!.!
apache-mpm-prefork-2.2.14-1.4md2!1!.!
apache-modules-2.2.14-1.4md2!1!.!
/. -iew further information on your insta!!ed a"ache0 r"ms. +ou wi!! remem#er from the
FadaS,en$.com home"a$e that you can o#serve r"m "ac,a$es for any r"m #ased system usin$ the
same commands.
#rpm -qi apache-base apache-conf apache-modules apache-mpm-prefork
;ame : apache-%ase .elocations: &not relocata%le'
-ersion : 2.2.14 -endor: 1andria
.elease : 1.4md2!1!.! 4uild Eate: @at !$ 1ar 2!1!
1#:!":"5 F1+
Install Eate: 1on 1! 1ay 2!1! 1":!5:2# 4@+ 4uild Gost: titan.mandria.com
Froup : @ystem8@erers @ource .,1: apache-2.2.14-
1.4md2!1!.!.src.rpm
@iAe : 4$$2#2 ?icense: /pache ?icense
@ignature : E@/8@G/1, @at !$ 1ar 2!1! 1#:13:2! F1+, 6ey IE 3aa#d!d!224"#a3#
,ackager : 1andria ?inu( @ecurity +eam
9.? : http:88www.apache.org
@ummary : :ommon files and utilities for apache
Eescription :
+his package contains the apache utilities such as /pache 4ench &a%' for
stress
testing your apache installation and seeral tools for managing user
data%ases,
access control, the apache logs and more.
;ame : apache-conf .elocations: &not relocata%le'
-ersion : 2.2.14 -endor: 1andria
.elease : 1.2md2!1!.! 4uild Eate: +hu !5 Han 2!1!
12:12:2$ F1+
Install Eate: 1on 1! 1ay 2!1! 1":!5:2# 4@+ 4uild Gost: titan.mandria.com
Froup : @ystem8@erers @ource .,1: apache-conf-2.2.14-
1.2md2!1!.!.src.rpm
@iAe : 12"222 ?icense: /pache ?icense
@ignature : E@/8@G/1, +hu !5 Han 2!1! 12:14:21 F1+, 6ey IE 3aa#d!d!224"#a3#
,ackager : 1andria ?inu( @ecurity +eam
9.? : http:88www.mandria.com
@ummary : :onfiguration files for /pache
Eescription :
+his package contains configuration files for apache. It is necessary for
operation of the apache we%serer. Gaing those files into a separate modules
proides %etter customiAation for >D1s and I@,s, who can modify the look and
feel of the apache we%serer without haing to re-compile the whole suite to
change a logo or config file.
;ame : apache-modules .elocations: &not relocata%le'
-ersion : 2.2.14 -endor: 1andria
.elease : 1.4md2!1!.! 4uild Eate: @at !$ 1ar 2!1!
1#:!":"5 F1+
Install Eate: 1on 1! 1ay 2!1! 1":!5:2# 4@+ 4uild Gost: titan.mandria.com
Froup : @ystem8@erers @ource .,1: apache-2.2.14-
1.4md2!1!.!.src.rpm
@iAe : 531"22 ?icense: /pache ?icense
@ignature : E@/8@G/1, @at !$ 1ar 2!1! 1#:13:22 F1+, 6ey IE 3aa#d!d!224"#a3#
,ackager : 1andria ?inu( @ecurity +eam
9.? : http:88www.apache.org
@ummary : @tandard modules for apache
Eescription :
+his package contains standard modules for apache. It is reIuired
for normal operation of the we% serer.
;ame : apache-mpm-prefork .elocations: &not relocata%le'
-ersion : 2.2.14 -endor: 1andria
.elease : 1.4md2!1!.! 4uild Eate: @at !$ 1ar 2!1!
1#:!":"5 F1+
Install Eate: 1on 1! 1ay 2!1! 1":!5:23 4@+ 4uild Gost: titan.mandria.com
Froup : @ystem8@erers @ource .,1: apache-2.2.14-
1.4md2!1!.!.src.rpm
@iAe : 44!241 ?icense: /pache ?icense
@ignature : E@/8@G/1, @at !$ 1ar 2!1! 1#:13:24 F1+, 6ey IE 3aa#d!d!224"#a3#
,ackager : 1andria ?inu( @ecurity +eam
9.? : http:88www.apache.org
@ummary : Implements a non-threaded, pre-forking we% serer &sta%le'
Eescription :
+his 1ulti-,rocessing 1odule &1,1' implements a non-threaded, pre-forking we%
serer that handles reIuests in a manner similar to /pache 1.2. It is
appropriate for sites that need to aoid threading for compati%ility with
non-thread-safe li%raries. It is also the %est 1,1 for isolating each reIuest,
so that a pro%lem with a single reIuest will not affect any other.
+his 1,1 is ery self-regulating, so it is rarely necessary to adJust its
configuration directies. 1ost important is that 1a(:lients %e %ig enough to
handle as many simultaneous reIuests as you e(pect to receie, %ut small
enough
to assure that there is enough physical ./1 for all processes.
:heck for aaila%le /pache modules here: http:88nu(.se8apache8
+his package defaults to a ma(imum of 12# dynamically loada%le modules.
+his package defaults to a @erer?imit of 1!24.
7ou can change these alues at .,1 %uild time %y using for e(ample:
--define 'ma(modules "12' --define 'sererlimit 2!4#'
+he package was %uilt to support a ma(imum of 12# dynamically loada%le
modules.
+he package was %uilt with a @erer?imit of 1!24.
1. Modify the Server2dmin and the Server3ame directives in your htt"d.conf fi!e which is found in
/ec/hpd/conf/hpd.conf .
@erer;ame mandria.fadaskeng.com
Eocument.oot 08ar8www8html0
@erer/dmin skengKfadaskeng.com
if this is not done you may $et an error simi!ar to,
serice httpd start
@tarting httpd: httpd: :ould not relia%ly determine the serer's fully
Iualified domain name,
using 125.!.!.1 for @erer;ame

L >6 M
Thou$h the a"ache service wi!! start.
4. To verify that the htt"d daemon is runnin$
ps -au! | grep -i hp
5. The netstat command can a!so #e used to verify that the htt"d daemon is runnin$ where a"ache
!istens on "ort 46.
nesa -anl
/ctie Internet connections &serers and esta%lished'
,roto .ec-N @end-N ?ocal /ddress Ooreign /ddress
@tate
tcp ! ! 125.!.!.1:5$24 !.!.!.!:P
?I@+D;
tcp ! ! 1!.!.2.1":42"$4 132.1$#.1.12:22
D@+/4?I@GDE
tcp ! ! 125.!.!.1:5$24 125.!.!.1:$!245
+I1D<)/I+
tcp ! ! 125.!.!.1:5$24 125.!.!.1:$!242
+I1D<)/I+
tcp ! ! 125.!.!.1:5$24 125.!.!.1:$!24"
+I1D<)/I+
tcp ! ! 125.!.!.1:5$24 125.!.!.1:$!24$
+I1D<)/I+
tcp ! ! 125.!.!.1:5$24 125.!.!.1:$!244
+I1D<)/I+
tcp ! ! 125.!.!.1:5$24 125.!.!.1:$!24#
+I1D<)/I+
tcp ! ! :::#! :::P
?I@+D;
16. To view the com"i!ed modu!es in a"ache use the fo!!woin$ command
hpd -l
:ompiled in modules:
core.c
prefork.c
http<core.c
mod<so.c
11. -erify the run!eve! of the a"ache&htt"d daemon'
#chkconfig --lis hpd
httpd !:off 1:off 2:off 2:on 4:on ":on $:off 5:off
17. 3ote that !i,e most r"m #ased inu8 systems Mandriva defau!t ')ocumentRoot' is /var/www/htm!
simi!ar to Redhat,Fedora,Centos.
19. :"en a #rowser and "!ace the *R hp"//localhos/ in you #rowser, htt";//hostname/ from a
remote #rowser where hostname is the F<)3 of that host or its I= addess.

Das könnte Ihnen auch gefallen