<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hack Admin &#187; apache</title>
	<atom:link href="http://www.hackadmin.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackadmin.com</link>
	<description></description>
	<lastBuildDate>Tue, 16 Mar 2010 21:31:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Implement htaccess with MySQL</title>
		<link>http://www.hackadmin.com/2010/03/16/how-to-implement-htaccess-with-mysql/</link>
		<comments>http://www.hackadmin.com/2010/03/16/how-to-implement-htaccess-with-mysql/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 21:31:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Aashish]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=275</guid>
		<description><![CDATA[Article by Aashish
# yum install httpd* mysql* -y
*** Install Module Needed for Authentication from MySQL databases. ***
# yum install mod_auth_mysql -y
*** Create a database which contains a table holding the username and passwd ***
#mysql -u root -p
password:
mysql> create database httpd;
mysql> use httpd;
mysql> create user &#8216;apache&#8217;@'localhost&#8217; identified by &#8216;apache&#8217;;
mysql> create table users( user_name char(30) NOT NULL, [...]]]></description>
			<content:encoded><![CDATA[<p>Article by <a href="http://www.hackadmin.com/aashish/">Aashish</a></p>
<p># yum install httpd* mysql* -y</p>
<p>*** Install Module Needed for Authentication from MySQL databases. ***</p>
<p># yum install mod_auth_mysql -y</p>
<p>*** Create a database which contains a table holding the username and passwd ***</p>
<p>#mysql -u root -p<br />
password:</p>
<p>mysql> create database httpd;<br />
mysql> use httpd;<br />
mysql> create user &#8216;apache&#8217;@'localhost&#8217; identified by &#8216;apache&#8217;;<br />
mysql> create table users( user_name char(30) NOT NULL, user_passwd char(30), user_group char(30)<br />
NOT NULL, PRIMARY KEY(user_name));<br />
mysql> grant all privileges on *.* to &#8216;apache&#8217;@'localhost&#8217; with GRANT option;<br />
mysql> INSERT INTO users VALUES (&#8217;testuser&#8217;, ENCRYPT(&#8217;testpass&#8217;), &#8216;user&#8217;);<br />
mysql> INSERT INTO users VALUES (&#8217;admin&#8217;, ENCRYPT(&#8217;testpass&#8217;), &#8216;group&#8217;);<br />
mysql> quit</p>
<p># service mysqld restart</p>
<p># vim /etc/httpd/conf/httpd.conf</p>
<p><Directory /var/www/html><br />
AuthName &#8220;MySQL group authenticated zone&#8221;<br />
AuthType Basic<br />
AuthMYSQLEnable on<br />
AuthMySQLUser apache<br />
AuthMySQLPassword apache<br />
AuthMySQLDB httpd<br />
AuthMySQLUserTable users<br />
AuthMySQLNameField user_name<br />
AuthMySQLPasswordField user_passwd<br />
AuthMySQLGroupField user_group<br />
require group admin /or/ require valid-user<br />
</Directory></p>
<p># service httpd restart</p>
<p>enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2010/03/16/how-to-implement-htaccess-with-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Apache Modules and Their Functions</title>
		<link>http://www.hackadmin.com/2010/02/18/apache-modules-and-their-functions/</link>
		<comments>http://www.hackadmin.com/2010/02/18/apache-modules-and-their-functions/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 18:04:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Aashish]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=249</guid>
		<description><![CDATA[Apache is a powerful and widely-used World-Wide Web (Web) server. One of its strengths is that the modules that it is made of are customizable according to the user's requirements. Ashish Kumar discusses the benefits and the process of customization, along with a brief introduction to some useful modules.]]></description>
			<content:encoded><![CDATA[<p>Article by <a href="http://www.hackadmin.com/aashish/">Aashish</a></p>
<p><strong style="color: #333333;"><span style="font-size: medium;">Apache Performance Modules</span></strong><br style="color: #333333;" /><br style="color: #333333;" /><span style="color: #333333;">Apache is a powerful and widely-used World-Wide Web (Web) server. One of its strengths is that the modules that it is made of are customizable according to the user&#8217;s requirements. Ashish Kumar discusses the benefits and the process of customization, along with a brief introduction to some useful modules.</span><br style="color: #333333;" /><br style="color: #333333;" /></p>
<p><span id="more-249"></span><br />
<span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"> </span></p>
<h2 style="color: #333333;">List of Standard Modules</h2>
<p style="color: #333333;">This appendix (alphabetically) lists of all of the standard modules that are part of the current (version 1.3.x) Apache distribution. Table 1 the modules that are compiled-in by default and Table 2 lists the ones which are not.</p>
<table style="color: #333333;" border="1">
<tbody>
<tr>
<th>MODULE</th>
<th>FUNCTION</th>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_access</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Host based access control</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_actions</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Filetype/method-based script execution</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_alias</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Aliases and redirects</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_asis</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">The .asis file handler</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">User authentication using text files</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_autoindex</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Automatic directory listings</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_cgi</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Invoking CGI scripts</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_dir</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Basic directory handling</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_env</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Passing of environments to CGI scripts</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_imap</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">The imagemap file handler</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_include</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Server-parsed documents</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_isapi</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Windows ISAPI extension support</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_log_config</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">User-configurable logging</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_mime</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Determining document types using file extension</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_negotiation</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Content negotiation</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_setenvif</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Set environment variables based on client information</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_status</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Server status display</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_userdir</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">User home directories</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_unique_id</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Generate unique request identifier for every request</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_usertrack</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">User tracking using Cookies</td>
</tr>
</tbody>
</table>
<p><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"> </span></p>
<p style="color: #333333;">Table 1. Apache Standard Modules Compiled-In by Default.</p>
<table style="color: #333333;" border="1">
<tbody>
<tr>
<th>MODULE</th>
<th>FUNCTION</th>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth_anon</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Anonymous user authentication, FTP-style</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth_db</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">User authentication using Berkeley DB files</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth_dbm</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">User authentication using DBM files</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_cern_meta</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Support for HTTP header metafiles</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_digest</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">MD5 authentication</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_example</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Demonstrates Apache API</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_expires</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Apply Expires: headers to resources</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_headers</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Add arbitrary HTTP headers to resources</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_info</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Server configuration information</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_log_agent</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Logging of user agents</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_log_referer</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Logging of document references</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_mime_magic</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Determining document types using &#8220;magic numbers&#8221;</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_mmap_static</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Mapping files into memory for faster serving</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_proxy</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Caching proxy abilities</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_rewrite</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Powerful URI-to-filename mapping using regular expressions</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_so</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Experimental support for loading modules (DLLs on Windows) at runtime (not compiled-in the UNIX distribution)</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_speling</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Automatically correct minor typos in URLs</td>
</tr>
</tbody>
</table>
<p style="color: #333333;">Table 2. Apache Standard Modules Not Compiled-In by Default.</p>
<h2 style="color: #333333;"><a style="color: #005488;" name="126daf85273bb1e9_126dacf4e92051a1_app2"></a>Appendix II : List of Nonstandard Modules</h2>
<p style="color: #333333;">This appendix is a list of some nonstandard Apache modules. The selection is biased towards modules for programming language support and Web site administration. See Table 3.</p>
<table style="color: #333333;" border="1">
<tbody>
<tr>
<th>MODULE</th>
<th>FUNCTION</th>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">apache_ssl</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">SSL extensions for Apache</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_bandwidth</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Limit bandwidth based on number of connections</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_cint</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Embedded C/C++ interpreter module for apache</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Chili!ASP</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Active Server Pages module</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">ColdFusion Module</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Interface to the ColdFusion application server (Windows NT only)</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Cookie Authentication</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Fake Basic authentication using Cookies</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">dir_log_module</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Implements per-directory logging</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Distributed Permanence Control Apache Module</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Module designed to work with RCS and CVS to encourage the permanence of document version/editions on the Web</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">FastCGI</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Keeps CGI processes alive to avoid per-hit forks</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">GIF Counter</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Basic GIF counter</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Hotwired Mod_include</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Hotwired extensions to mod_include</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Indexer</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Configurable directory listing module</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Java Wrapper Module</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Enables execution of Java applications as CGI directly</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_allowdev</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Restricts access to filespace more efficiently</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth_ldap</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Apache LDAP authentication module</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth_mysql</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mySQL authentication module</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth_udp</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">External authentication using UDP</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_cgisock</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Socket implementation of the CGI</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_format</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Formats C, C++, and Java source code using HTML</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_gunzip</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">On-the-fly decompression of HTML documents</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_hosts_access</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Allows you to use the hosts.allow and hosts.deny files to configure access to Apache</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_javascript</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">JavaScript module (ECMA-262)</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_jserv</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Java servlet interface</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_neoinclude</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">NeoWebScript &#8211; Tcl scripting extension</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_perl</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Embeds Perl language interpreter and provides a Perl interface to the server API</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_ssl</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Free Apache interface to SSLeay</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_weborb</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Directly invokes CORBA-objects to handle CGI requests</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_auth_msql</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Basic authentication with the mSQL database</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">parselog</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Perl script to parse and store logs by server and date</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">PHP</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Server-side scripting language with extensive database support</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">mod_pyapache</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Embedded Python language interpreter</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">TalentSoft WebPlus (Web+)</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Web+ (WebPlus) application development tool/database middleware. Supports Linux, Apache API, mySQL, miniSQL, PostgreSQL, etc.</td>
</tr>
<tr>
<td style="margin: 0px; font-family: arial,sans-serif; color: #000000;" valign="top">WebCounter</td>
<td style="margin: 0px; font-family: arial,sans-serif;" valign="top">Page counter</td>
</tr>
</tbody>
</table>
<p><br style="color: #333333;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2010/02/18/apache-modules-and-their-functions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding A Custom Built Apache Installation to chkconfig</title>
		<link>http://www.hackadmin.com/2009/07/15/adding-a-custom-built-apache-installation-to-chkconfig/</link>
		<comments>http://www.hackadmin.com/2009/07/15/adding-a-custom-built-apache-installation-to-chkconfig/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 23:18:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apachectrl]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=151</guid>
		<description><![CDATA[A few simple tips on setting up apachectrl with chkconfig in a non-standard, packaged version of apache. ]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s lots of reasons to steer away from a nicely packaged version of apache.  Most recently I needed to do this for a custom build of curl and cAres, but whatever your reason, you&#8217;ll find yourself with an apachectrl that&#8217;s not quite ready to be used with chkconfig.</p>
<p>The fix is really simple, chkconfig wants to see 2 lines in your apachectrl that tell it what it is and what to do with it.  At that point, chkconfig will recognize the service as your script name.  So here it is:</p>
<p><span id="more-151"></span></p>
<ol>
<li>Add the following lines to the top of the apachectrl script that you&#8217;ll find in the apache2/bin directory of your install.#!/bin/sh<br />
#<br />
<em># chkconfig: 35 85 15<br />
# description: Apache is a World Wide Web server.</em><br />
#<br />
# Licensed to the Apache Software Foundation (ASF) under one or more</p>
<p>The first line:<br />
# chkconfig: 35 85 15<br />
The 35 tells chkconfig you want the service running at run level 3 and run level 5.<br />
The 85 is the start priority.<br />
The 15 is the stop priority.</p>
<p>The second line:<br />
# description: Apache is a World Wide Web server.<br />
This is merely a description of the service.<br />
*note* Both lines start with a comment &#8220;#&#8221; (pound sign).</li>
<li>Once your lines are in place you can move or link your apachectrl to /etc/init.d/httpd</li>
<li>Once the script is in /etc/init.d/ you can run the following command to make it all go:<br />
<code>chkconfig httpd on</code>(this is of course assuming that you named the script in /etc/init.d/  &#8220;httpd&#8221;, if you named the script &#8220;chuck&#8221; then you&#8217;ll run: chkconfig chuck on, I think you get the point).</li>
</ol>
<p>That is all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/07/15/adding-a-custom-built-apache-installation-to-chkconfig/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
