<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Apache 2.0.x installation - Revision history</title>
		<link>https://www.slackwiki.com/index.php?title=Apache_2.0.x_installation&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.40.0</generator>
		<lastBuildDate>Wed, 08 Apr 2026 16:09:26 GMT</lastBuildDate>
		<item>
			<title>Erik: Copy from old</title>
			<link>https://www.slackwiki.com/index.php?title=Apache_2.0.x_installation&amp;diff=74&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=Apache_2.0.x_installation&amp;diff=74&amp;oldid=prev</guid>
			<description>&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Notice =&lt;br /&gt;
&lt;br /&gt;
This article is obsolete; Slackware 12.0 includes Apache 2 by default (the httpd package). This information is kept here for users of older versions of Slackware.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Sometimes one needs Apache 2.0.x in Slackware, which comes with Apache 1.3.x by default. Apache 2.0.x is necessary for example for Subversion repository setup or for recent mod_python modules.&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites:'''&lt;br /&gt;
*checkinstall (from &amp;lt;tt&amp;gt;extra&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*mm from http://www.ossp.org/pkg/lib/mm/&lt;br /&gt;
&lt;br /&gt;
So, first go to http://httpd.apache.org/download.cgi and grab the latest &amp;lt;tt&amp;gt;httpd-2.0.x.tar.bz2&amp;lt;/tt&amp;gt; file and unpack it:&lt;br /&gt;
 tar xfvj httpd-2.0.x.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Execute following script in directory just above your unpacked httpd-2.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
build_apache() {&lt;br /&gt;
&lt;br /&gt;
cd httpd-*&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt;&amp;gt; config.layout &amp;lt;&amp;lt;EOF&lt;br /&gt;
#   Layout for Slackware Linux&lt;br /&gt;
&amp;lt;Layout Slackware&amp;gt;&lt;br /&gt;
    prefix:        /usr&lt;br /&gt;
    exec_prefix:   \${prefix}&lt;br /&gt;
    bindir:        \${prefix}/bin&lt;br /&gt;
    sbindir:       \${prefix}/sbin&lt;br /&gt;
    libdir:        \${prefix}/lib&lt;br /&gt;
    libexecdir:    \${prefix}/lib/apache2&lt;br /&gt;
    mandir:        \${prefix}/man&lt;br /&gt;
    sysconfdir:    /etc/apache2&lt;br /&gt;
    datadir:       /var/www&lt;br /&gt;
    iconsdir:      \${datadir}/icons&lt;br /&gt;
    htdocsdir:     \${datadir}/htdocs&lt;br /&gt;
    manualdir:     \${datadir}/manual&lt;br /&gt;
    cgidir:        \${datadir}/cgi-bin&lt;br /&gt;
    includedir:    \${prefix}/include/apache2&lt;br /&gt;
    localstatedir: /var&lt;br /&gt;
    runtimedir:    \${localstatedir}/run&lt;br /&gt;
    logfiledir:    \${localstatedir}/log/apache2&lt;br /&gt;
    proxycachedir: \${localstatedir}/cache/apache2&lt;br /&gt;
    infodir:       \${exec_prefix}/share/info&lt;br /&gt;
    installbuilddir: \${datadir}/build&lt;br /&gt;
    errordir:      \${datadir}/error&lt;br /&gt;
&amp;lt;/Layout&amp;gt;&lt;br /&gt;
EOF&lt;br /&gt;
./configure --enable-layout=Slackware \&lt;br /&gt;
            --enable-module=most \&lt;br /&gt;
        --enable-mods-shared=most \&lt;br /&gt;
        --enable-ssl=shared \&lt;br /&gt;
                --enable-mime-magic \&lt;br /&gt;
                --enable-expires \&lt;br /&gt;
                --enable-headers \&lt;br /&gt;
                --enable-usertrack \&lt;br /&gt;
                --enable-cgi \&lt;br /&gt;
                --enable-vhost-alias \&lt;br /&gt;
                --enable-speling \&lt;br /&gt;
                --enable-so \&lt;br /&gt;
                --enable-rewrite \&lt;br /&gt;
                --enable-deflate \&lt;br /&gt;
                --enable-dav \&lt;br /&gt;
                --enable-dav-fs \&lt;br /&gt;
                --enable-proxy&lt;br /&gt;
&lt;br /&gt;
make clean&lt;br /&gt;
time nice make&lt;br /&gt;
&lt;br /&gt;
su -c &amp;quot;checkinstall -y&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
create_scripts() {&lt;br /&gt;
cat &amp;gt; rc.httpd &amp;lt;&amp;lt;EOF&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#&lt;br /&gt;
# Start the Apache web server&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;\$1&amp;quot; in&lt;br /&gt;
   'start')&lt;br /&gt;
      /usr/sbin/apachectl start ;;&lt;br /&gt;
   'stop')&lt;br /&gt;
      /usr/sbin/apachectl stop ;;&lt;br /&gt;
   'restart')&lt;br /&gt;
      /usr/sbin/apachectl restart ;;&lt;br /&gt;
   *)&lt;br /&gt;
      echo &amp;quot;usage \$0 start|stop|restart&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
EOF&lt;br /&gt;
chmod 755 rc.httpd&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; apache2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
/var/log/apache2/*_log {&lt;br /&gt;
    sharedscripts&lt;br /&gt;
    monthly&lt;br /&gt;
    rotate 6&lt;br /&gt;
    create&lt;br /&gt;
    compress&lt;br /&gt;
    postrotate&lt;br /&gt;
    /bin/kill -HUP `cat /var/run/httpd.pid 2&amp;gt; /dev/null` 2&amp;gt; /dev/null || true&lt;br /&gt;
    endscript&lt;br /&gt;
}&lt;br /&gt;
EOF&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
build_apache&lt;br /&gt;
create_scripts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script will get the job done. It will compile and install Apache 2.0.x together with the startup scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</description>
			<pubDate>Tue, 02 Jun 2009 03:16:38 GMT</pubDate>
			<dc:creator>Erik</dc:creator>
			<comments>https://www.slackwiki.com/Talk:Apache_2.0.x_installation</comments>
		</item>
</channel></rss>