<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Eschew Obfuscation: Automatically starting Apache with chkconfig</title>
    <link>http://blog.maxdunn.com/articles/2007/03/20/automatically-starting-apache-with-chkconfig</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Max Dunn's Personal Blog</description>
    <item>
      <title>Automatically starting Apache with chkconfig</title>
      <description>&lt;p&gt;It is interesting that Apache 2.2 doesn&amp;#8217;t include a startup script that is compatible with the Linux &amp;#8216;chkconfig&amp;#8217; command. Here is how you fix this:&lt;/p&gt;


	&lt;p&gt;First, add this information to the top of /usr/local/apache2/bin/apachectl:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  \
#              It is used to serve HTML files and CGI.&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Then change to /etc/init.d and do:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;sudo ln -s /usr/local/apache2/bin/apachectl httpd
sudo /sbin/chkconfig --add httpd
sudo /sbin/chkconfig --level 2345 httpd on&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;That&amp;#8217;s it! Now Apache will start when the computer starts up.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:44:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:2d674003-05e4-4bd7-ab22-c6e138c8da61</guid>
      <author>Max Dunn</author>
      <link>http://blog.maxdunn.com/articles/2007/03/20/automatically-starting-apache-with-chkconfig</link>
      <category>Tech Tips</category>
    </item>
    <item>
      <title>"Automatically starting Apache with chkconfig" by ajlyon</title>
      <description>&lt;p&gt;Useful hint.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 11:44:26 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:1911c9b4-2d0a-4b37-abe3-0e777806084b</guid>
      <link>http://blog.maxdunn.com/articles/2007/03/20/automatically-starting-apache-with-chkconfig#comment-660</link>
    </item>
    <item>
      <title>"Automatically starting Apache with chkconfig" by spadefinger</title>
      <description>&lt;p&gt;Thank you.&lt;/p&gt;</description>
      <pubDate>Wed, 09 Jan 2008 12:01:53 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:8e67cb7a-ff7e-493e-8000-f9ae4e2c4c00</guid>
      <link>http://blog.maxdunn.com/articles/2007/03/20/automatically-starting-apache-with-chkconfig#comment-458</link>
    </item>
  </channel>
</rss>
