From owner-freebsd-questions@FreeBSD.ORG Sun Aug 1 05:33:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C4CA16A4CE for ; Sun, 1 Aug 2004 05:33:26 +0000 (GMT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id C58B143D5C for ; Sun, 1 Aug 2004 05:33:25 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [69.27.131.0] ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.0); Sun, 1 Aug 2004 00:36:59 -0500 Message-ID: <410C80A0.6020805@daleco.biz> Date: Sun, 01 Aug 2004 00:33:20 -0500 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040712 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bob Kukla References: <001201c47785$bc07ccc0$6701a8c0@bob> In-Reply-To: <001201c47785$bc07ccc0$6701a8c0@bob> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2004 05:37:00.0963 (UTC) FILETIME=[9190D730:01C47789] cc: freebsd-questions@freebsd.org Subject: Re: Sorry--I'm Newbie - Best way to add php4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 05:33:26 -0000 Bob Kukla wrote: >Previous message had no subject,,, sorry for that > > > We are all newbies ... some are older newbies ... Even the "oldies" know that they're just "newbies with experience" ... ;-) >Hi, > >I am very new to BSD and web servers and have just recently installed the latest 5.2 version. I have installed Apache 1.3 from the FreeBSD ftp site and have added mod_dav successfully. The web server and webDAV are working fine. I now want to add php4 and mySQL capabilities. I have read some of the latest mail and am confused as to how to best go about it. I have never used php or mySQL before nor have I had it installed on a web server. What packages and in what sequence , if any, should I install ? Also, what does the number 20020429 at the end (/usr/local/lib/php/20020429 ) signify? Thanks in advance for your help! > >Bob Kukla > > I've no experience with mod_dav (in fact I just got done looking it up at google), so I can't say whether it will be affected, or not (I would suspect not, I tend to be an optimist....) but: [Read the lower section about MySQL before you do any installation ...] I generally just go to /usr/ports/lang/php4 and type "make install clean" as root. This gets me mod_php4, the PHP CLI, it even builds a CGI you can move to your cgi dir if you desire/need to. If it's your first time, then expect to go through a ncurses-based dialog (remember sysinstall?) where you will choose PHP extensions to be built. After that, it's a matter of the appropriate modifications to httpd.conf. I'd sure recommend that you cruise over to www.php.net and check out their documentation: it's well done, and they've some install "cheat sheets" for almost every variety of OS/webserver on the planet (well, many of them, like I said, I'm optimistic...) MySQL is similar. IIRC, it may be best to get MySQL going first. Like I said, the docs at php.net are good. I also like the boards at www.phpbuilder.com for PHP help and community.... HTH, Kevin Kinsey