summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-September/008077.html
blob: 2bd17d9f394a84d9b3256512c68cc9e08ca692c3 (plain)
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
<!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=%3C201109150034.39912.r.h.michel%2Bmageia%40gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="008073.html">
   <LINK REL="Next"  HREF="008118.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] changing apache configuration handling</H1>
    <B>Renaud MICHEL</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20changing%20apache%20configuration%20handling&In-Reply-To=%3C201109150034.39912.r.h.michel%2Bmageia%40gmail.com%3E"
       TITLE="[Mageia-dev] changing apache configuration handling">r.h.michel+mageia at gmail.com
       </A><BR>
    <I>Thu Sep 15 00:34:39 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="008073.html">[Mageia-dev] changing apache configuration handling
</A></li>
        <LI>Next message: <A HREF="008118.html">[Mageia-dev] changing apache configuration handling
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8077">[ date ]</a>
              <a href="thread.html#8077">[ thread ]</a>
              <a href="subject.html#8077">[ subject ]</a>
              <a href="author.html#8077">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Hello
On mercredi 14 septembre 2011 at 10:06, Guillaume Rousse wrote :
&gt;<i> So, we have the following choice:
</I>&gt;<i> - change current behaviour, by keeping conditionals in configuration 
</I>&gt;<i> file. To use php, you have to install mod_php, and add -DHAVE_PHP5 in 
</I>&gt;<i> /etc/sysconfig/httpd. This means additional configuration is required, 
</I>&gt;<i> but also possibility to temporary disable without uninstalling.
</I>&gt;<i> 
</I>&gt;<i> - keep current behaviour, by removing conditionals in configuration 
</I>&gt;<i> file. This means no additional configuration needed, but also than 
</I>&gt;<i> installing implies usage.
</I>
How about the way it works on debian?

Their apache2.2-common package, which contains all the base configuration 
files, has a mods-available and a mods-enabled dirs in the apache conf dir 
(/etc/apache2 for debian).
Modules load command and specific configuration (if needed) are provided as 
*.load and *.conf files in the mods-available dir, then the a2enmod command 
is used to enable (and its counterpart e2dismod disables them) some mods by 
creating symlink in the mods-enabled dir.
The main apache2.conf file then has
Include mods-enabled/*.load
Include mods-enabled/*.conf
to load the actually enabled mods.
a2enmod also knows about modules dependencies via special comments in the 
*.load files.

Then there is a similar mechanism for sites installed by packages with 
sites-available and sites-enabled directories and a2ensite a2dissite 
commands.

see
<A HREF="http://packages.debian.org/squeeze/apache2.2-common">http://packages.debian.org/squeeze/apache2.2-common</A>
<A HREF="http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENMOD">http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENMOD</A>
<A HREF="http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENSITE">http://manpages.debian.net/cgi-bin/man.cgi?query=A2ENSITE</A>

-- 
Renaud Michel
</PRE>



























<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="008073.html">[Mageia-dev] changing apache configuration handling
</A></li>
	<LI>Next message: <A HREF="008118.html">[Mageia-dev] changing apache configuration handling
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8077">[ date ]</a>
              <a href="thread.html#8077">[ thread ]</a>
              <a href="subject.html#8077">[ subject ]</a>
              <a href="author.html#8077">[ 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>