1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] changing apache configuration handling
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20changing%20apache%20configuration%20handling&In-Reply-To=%3C201109150126.18426.alien%40rmail.be%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="008192.html">
<LINK REL="Next" HREF="008085.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] changing apache configuration handling</H1>
<B>Maarten Vanraes</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20changing%20apache%20configuration%20handling&In-Reply-To=%3C201109150126.18426.alien%40rmail.be%3E"
TITLE="[Mageia-dev] changing apache configuration handling">alien at rmail.be
</A><BR>
<I>Thu Sep 15 01:26:18 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="008192.html">[Mageia-dev] MANDATORY READ : 7 days before misc unleashes CERBERUS !
</A></li>
<LI>Next message: <A HREF="008085.html">[Mageia-dev] systemd vs dm
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8078">[ date ]</a>
<a href="thread.html#8078">[ thread ]</a>
<a href="subject.html#8078">[ subject ]</a>
<a href="author.html#8078">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Op donderdag 15 september 2011 00:34:39 schreef Renaud MICHEL:
><i> Hello
</I>><i>
</I>><i> On mercredi 14 septembre 2011 at 10:06, Guillaume Rousse wrote :
</I>><i> > So, we have the following choice:
</I>><i> > - change current behaviour, by keeping conditionals in configuration
</I>><i> > file. To use php, you have to install mod_php, and add -DHAVE_PHP5 in
</I>><i> > /etc/sysconfig/httpd. This means additional configuration is required,
</I>><i> > but also possibility to temporary disable without uninstalling.
</I>><i> >
</I>><i> > - keep current behaviour, by removing conditionals in configuration
</I>><i> > file. This means no additional configuration needed, but also than
</I>><i> > installing implies usage.
</I>><i>
</I>><i> How about the way it works on debian?
</I>><i>
</I>><i> Their apache2.2-common package, which contains all the base configuration
</I>><i> files, has a mods-available and a mods-enabled dirs in the apache conf dir
</I>><i> (/etc/apache2 for debian).
</I>><i> Modules load command and specific configuration (if needed) are provided as
</I>><i> *.load and *.conf files in the mods-available dir, then the a2enmod command
</I>><i> is used to enable (and its counterpart e2dismod disables them) some mods by
</I>><i> creating symlink in the mods-enabled dir.
</I>><i> The main apache2.conf file then has
</I>><i> Include mods-enabled/*.load
</I>><i> Include mods-enabled/*.conf
</I>><i> to load the actually enabled mods.
</I>><i> a2enmod also knows about modules dependencies via special comments in the
</I>><i> *.load files.
</I>><i>
</I>><i> Then there is a similar mechanism for sites installed by packages with
</I>><i> sites-available and sites-enabled directories and a2ensite a2dissite
</I>><i> commands.
</I>><i>
</I>><i> see
</I>><i> <A HREF="http://packages.debian.org/squeeze/apache2.2-common">http://packages.debian.org/squeeze/apache2.2-common</A>
</I>><i> <A HREF="http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENMOD">http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENMOD</A>
</I>><i> <A HREF="http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENSITE">http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENSITE</A>
</I>
personally i prefer debian-style layout (it's even easy to change this as it's
a configure flag).
I would be all for moving to that kind of layout
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="008192.html">[Mageia-dev] MANDATORY READ : 7 days before misc unleashes CERBERUS !
</A></li>
<LI>Next message: <A HREF="008085.html">[Mageia-dev] systemd vs dm
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8078">[ date ]</a>
<a href="thread.html#8078">[ thread ]</a>
<a href="subject.html#8078">[ subject ]</a>
<a href="author.html#8078">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|