source: content/web/apache/apache-config.xml@ da23cf6a

10.0 10.1 11.0 11.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/test-20220226
Last change on this file since da23cf6a was 512e06f9, checked in by Igor Živković <igor@…>, 19 years ago

update to PostgreSQL-7.3.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1059 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.0 KB
Line 
1<sect2>
2<title>Configuring Apache</title>
3
4<sect3>
5<title>Config files</title>
6
7<para><filename>/etc/apache/*</filename></para>
8
9</sect3>
10
11<sect3><title>Configuration Information</title>
12
13<para>The main configuration file is called
14<filename>httpd.conf</filename>. See
15<ulink url="http://httpd.apache.org/docs-2.0/configuring.html"/> for detailed
16instructions on customizing your Apache <acronym>HTTP</acronym>
17server.</para>
18
19<para>To automate the running of Apache, use the following command to
20create the init.d script:</para>
21
22<screen><userinput><command>cat &gt; /etc/rc.d/init.d/apache &lt;&lt; "EOF"
23#!/bin/bash
24
25source /etc/sysconfig/rc
26source $rc_functions
27
28case "$1" in
29 start)
30 echo "Starting Apache daemon..."
31 /usr/sbin/apachectl -k start
32 evaluate_retval
33 ;;
34
35 stop)
36 echo "Stopping Apache daemon..."
37 /usr/sbin/apachectl -k stop
38 evaluate_retval
39 ;;
40
41 restart)
42 echo "Restarting Apache daemon..."
43 /usr/sbin/apachectl -k restart
44 evaluate_retval
45 ;;
46
47 status)
48 statusproc /usr/sbin/httpd
49 ;;
50
51 *)
52 echo "Usage: $0 {start|stop|restart|status}"
53 exit 1
54 ;;
55esac
56EOF
57chmod 755 /etc/rc.d/init.d/apache</command></userinput></screen>
58
59<para>Create the symbolic links to this file in the relevant
60<filename class="directory">rc.d</filename> directory
61with the following commands:</para>
62
63<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
64ln -sf ../init.d/apache ../rc0.d/K28apache &amp;&amp;
65ln -sf ../init.d/apache ../rc1.d/K28apache &amp;&amp;
66ln -sf ../init.d/apache ../rc2.d/K28apache &amp;&amp;
67ln -sf ../init.d/apache ../rc3.d/S32apache &amp;&amp;
68ln -sf ../init.d/apache ../rc4.d/S32apache &amp;&amp;
69ln -sf ../init.d/apache ../rc5.d/S32apache &amp;&amp;
70ln -sf ../init.d/apache ../rc6.d/K28apache</command></userinput></screen>
71
72</sect3>
73
74</sect2>
Note: See TracBrowser for help on using the repository browser.