Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 63699 invoked from network); 22 Jun 2006 15:37:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2006 15:37:57 -0000 Received: (qmail 57760 invoked by uid 500); 22 Jun 2006 15:37:51 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 57540 invoked by uid 500); 22 Jun 2006 15:37:50 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 57529 invoked by uid 99); 22 Jun 2006 15:37:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 08:37:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of hendrik.vanbelleghem@gmail.com designates 64.233.162.206 as permitted sender) Received: from [64.233.162.206] (HELO nz-out-0102.google.com) (64.233.162.206) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 08:37:46 -0700 Received: by nz-out-0102.google.com with SMTP id s18so454825nze for ; Thu, 22 Jun 2006 08:37:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kDi9sYohL3BhBs9YKclUAUmU/VAtVYB082YOkiLcceCMYTatU7cIUsRPxY6upHnBEqU88xnkT+tkxxEhdJjCjoa5fHIBbC4tsxeCrb6sGxSBsCf8/X62Mkdl55AnDuJ8n4nU4ANjO6cOQohJDm7MjB+UNqviaI6E99qTVted83Y= Received: by 10.36.252.49 with SMTP id z49mr2171650nzh; Thu, 22 Jun 2006 08:37:25 -0700 (PDT) Received: by 10.37.14.24 with HTTP; Thu, 22 Jun 2006 08:37:24 -0700 (PDT) Message-ID: <4e2034060606220837j618c430fg8dfaad2477cfff93@mail.gmail.com> Date: Thu, 22 Jun 2006 17:37:24 +0200 From: "Hendrik Van Belleghem" To: "Clinton Gormley" Subject: Re: Basic Help, RedHat Cc: "Tom Weber" , modperl@perl.apache.org In-Reply-To: <1150990042.24473.11.camel@obelix.traveljury.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7.0.1.0.2.20060622103742.020f4748@nytimes.com> <1150990042.24473.11.camel@obelix.traveljury.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tom, I've had no trouble with Red Hat packages and Apache or mod_perl in the past.. but last time I did that, RH9 was just out. I can recommend the following installation plan for Apache. It always worked for me, on various linux dists. http://www.delouw.ch/linux/apache.phtml There is also a XAMPP version for Linux.. XAMPP is pretty much a prepackaged apache + goodies. Good for a quick start (but I personally stick to official packages or compiling from source). HTH Hendrik On 6/22/06, Clinton Gormley wrote: > Hi Tom > > Here's the install script that I walk through to install Apache 2, > mod_perl 2 and libapreq. Done it on a number of machines including > redhat, and it works for me. > > You may get errors along the way because of missing libraries. Just > install them and repeat the last step. > > It installs apache to /opt/httpd.... and links it to /opt/apache/, so > you can stick your websites under /opt/apache, and when you want to > upgrade, just relink to the new directories in /opt/httpd.... > =============================================== > > ### For 64 bit, try LDFLAGS="-L/usr/lib64" > > MPM="prefork" > > SUFFIX="_${MPM}_perl_php" > > rm -Rf apache_and_friends > mkdir -p apache_and_friends/packages > cd apache_and_friends/packages > > # See http://httpd.apache.org/download.cgi > wget http://apache.rediris.es/httpd/httpd-2.0.58.tar.gz > > # See http://perl.apache.org/download/index.html > wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz > > # See http://httpd.apache.org/apreq/download.cgi > wget http://apache.rediris.es/httpd/libapreq/libapreq2-2.07.tar.gz > > cd .. > > tar -xzf packages/httpd* > tar -xzf packages/mod_perl* > tar -xzf packages/libapreq* > > APACHE=`echo httpd*` > > echo "INSTALLING to /opt/$APACHE$SUFFIX" > > cd $APACHE > > CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED" \ > ./configure --prefix=/opt/$APACHE$SUFFIX \ > --localstatedir=/opt/apache \ > --sysconfdir=/opt/apache/conf \ > --datadir=/opt/apache \ > --with-mpm=$MPM\ > --enable-cache=shared\ > --enable-deflate=shared\ > --enable-disk-cache=shared\ > --enable-file-cache=shared\ > --enable-info=shared\ > --enable-mem-cache=shared\ > --enable-rewrite=shared\ > --enable-dav=shared\ > --enable-auth-digest\ > --enable-ssl=shared\ > --enable-unique-id=shared\ > --enable-usertrack=shared > make > rm -Rf /opt/$APACHE$SUFFIX > make install > cd .. > > > > cd mod_perl-* > perl Makefile.PL \ > MP_AP_PREFIX=/opt/$APACHE$SUFFIX \ > MP_COMPAT_1X=0 > > > make > make test > make install > cd .. > > > cpan "ExtUtils::XSBuilder" > > cpan "Parse::RecDescent" > > cd libapreq* > perl Makefile.PL --with-apache2-apxs=/opt/$APACHE$SUFFIX/bin/apxs > make > make test > make install > > > ln -fs /opt/$APACHE$SUFFIX/* /opt/apache > ln -sf /opt/apache/bin/apachectl /usr/bin/apachectl > ln -sf /opt/apache/bin/apachectl /etc/rc.d/httpd > chkconfig httpd on > > perl -pi -e "s/ServerRoot \"\/opt\/$APACHE$SUFFIX\"/ServerRoot \"\/opt\/apache\"/" /opt/apache/conf/httpd.conf > > grep -qE "mod_perl.so" /opt/apache/conf/httpd.conf || \ > perl -pi -e 's!(modules/mod_apreq.so\s*\n)!$1LoadModule perl_module modules/mod_perl.so\n!' \ > /opt/apache/conf/httpd.conf > > > mkdir /opt/apache/conf/ssl.crt/ > mkdir /opt/apache/conf/ssl.key/ > cd /opt/apache/conf/ssl.key/ > openssl genrsa -out server.key 1024 > openssl req -new -days 1000 -key server.key -x509 -out ../ssl.crt/server.crt > > > > > > -- Hendrik Van Belleghem Spine - The backbone for your website - http://spine.sf.net