From owner-freebsd-questions@FreeBSD.ORG Thu May 27 15:09:04 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 35BC716A4CE for ; Thu, 27 May 2004 15:09:04 -0700 (PDT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id B694243D1F for ; Thu, 27 May 2004 15:09:02 -0700 (PDT) (envelope-from nkinkade@fastmail.fm) X-Sasl-enc: 8v+zY6fsw/OkrxdEdDtb3w 1085695516 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id 0931FBE93D9; Thu, 27 May 2004 18:05:16 -0400 (EDT) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1BTSzo-0000Mq-Tp; Thu, 27 May 2004 16:05:04 -0600 Date: Thu, 27 May 2004 16:05:04 -0600 From: Nathan Kinkade To: RazorOnFreeBSD Message-ID: <20040527220504.GA21801@gentoo-npk.bmp.ub> Mail-Followup-To: RazorOnFreeBSD , freebsd-questions@freebsd.org References: <003201c443ee$8286db50$0f01a8c0@razor> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oYrjhH26xX5Rz9aF" Content-Disposition: inline In-Reply-To: <003201c443ee$8286db50$0f01a8c0@razor> User-Agent: Mutt/1.5.6i Sender: cc: freebsd-questions@freebsd.org Subject: Re: Apache php mysql X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2004 22:09:04 -0000 --oYrjhH26xX5Rz9aF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 27, 2004 at 03:28:31PM +0200, RazorOnFreeBSD wrote: > Hi everyone, >=20 > I'd need some ressources to be sure how to install apache, php, mysql > on my FreeBSD box. This is the first time I do it, so I don't really > know how to configure the thing. I followed instructions from apache > and php to install those but it's not really easy for me to understand > how to install MySQL server from their website.... Apache and php > installations seemed to worked out fine but I surely have files to > configure now, but I don't know which ones... It would be great if > someone knows any ressource about all this setup online? For > information I have FreeBSD 4.9-STABLE, Apache 2.0.49, PHP 4.3.6, MySQL > 4.0.20. >=20 > Thanks. > razor. Installing MySQL should be as easy: # cd /usr/ports/database/mysql40-server/ # make install This should automatically install the mysql-client as a dependency. There are lots of tutorials online about configuring Apache to work with PHP. Just do a few web searches for something like "apache php configure", or "apache php setup", or even just "apache php". Quickly, you'll need to add some lines like these to you httpd.conf file: LoadModule php4_module libexec/apache/libphp4.so AddType application/x-httpd-php .php These lines may not be exact for your setup. To test whether PHP is working create a file in your webroot (probably /usr/local/www/data) with only this in it: If PHP is working you'll get a pretty page back with a lot of information about PHP. Nathan --oYrjhH26xX5Rz9aF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAtmYQO0ZIEthSfkkRApmPAJ9/334Dy3RNpSiqFvBUbS9D3dWzLwCg7uAv SffSqiyN2Cc31oZYrpmYzfs= =Gcvn -----END PGP SIGNATURE----- --oYrjhH26xX5Rz9aF--