From owner-freebsd-questions Thu May 10 20: 1:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailout2-0.nyroc.rr.com (mailout2-1.nyroc.rr.com [24.92.226.165]) by hub.freebsd.org (Postfix) with ESMTP id E207037B422 for ; Thu, 10 May 2001 20:01:51 -0700 (PDT) (envelope-from justin@shiningsilence.com) Received: from roc-24-169-96-227.rochester.rr.com (roc-24-169-96-227.rochester.rr.com [24.169.96.227]) by mailout2-0.nyroc.rr.com (8.11.2/RoadRunner 1.03) with SMTP id f4B2xpd19300; Thu, 10 May 2001 22:59:55 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: Justin C Sherrill To: Peter Kok , "freebsd-questions@FreeBSD.ORG" Subject: Re: apache, php4, mod_php Date: Thu, 10 May 2001 23:04:49 -0400 X-Mailer: KMail [version 1.2] References: <3AFAE623.C0B4C71A@hotmail.com> In-Reply-To: <3AFAE623.C0B4C71A@hotmail.com> MIME-Version: 1.0 Message-Id: <01051023044900.14783@roc-24-169-96-227.rochester.rr.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday 10 May 2001 15:04, Peter Kok wrote: > Hi all > > Does anyone have experience to install apache and php4 by tarball (not > by port)? > Could you give me the guide or website? Here is what I did recently - note: this is not a shell script, so don't try to run it as such. It is just a lifelike simulation, so that the comments are obvious. I'm including the steps for MySQL cause you or someone else may want it in the future - if you don't, just omit all references to it. This is a pretty close approximation of what's on php.net for installation, so when in doubt, refer to: http://www.php.net/manual/en/install.unix.php ################################################ # download apache 1 from http://www.apache.com/dist gunzip apache_1.3.19.tar.gz tar xvf apache_1.3.19.tar # download php from http://www.php.net/downloads.php gunzip php-4.0.5.tar.gz tar xvf php-4.0.5.tar # install mysql-server from /usr/ports/databases ## the procedure cd apache_1.3.19 # if you want to install somewhere else other than # /usr/local/apache, change this # line and the one below on the second configure. ./configure --prefix=/usr/local/apache cd ../php-4.0.5 # some explanation: # --with-mysql=/usr/local -> if you want to use any mysql functions # -> you must specify location if you want to also reach mysql # with php3 or perl on that machine # -> otherwise, you can use --with-mysql # this line probably wraps ./configure --with-mysql=/usr/local --with-apache=../apache_1.3.19 --enable-track-vars make make install cd ../apache_1.3.19 # this line probably wraps ./configure --activate-module=src/modules/php4/libphp4.a --prefix=/usr/local/apache make make install cd ../php-4.0.5 cp php.ini-dist /usr/local/lib/php.ini # edit /usr/local/apache/cnf/httpd.conf to allow php schipts to run - # search that file for "php" and you'll see how. # all done. # start up apache with /usr/local/apache/bin/apachectl start # if you want it going on startup # place an executable file called apache.sh in /usr/local/rc.d with # the correct steps in it to start apache - if # you installed mysql, you can use the scripts in there for mysql # as an example as how to lay it out, or "man rc". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message