Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2004 16:05:04 -0600
From:      Nathan Kinkade <nkinkade@ub.edu.bz>
To:        RazorOnFreeBSD <yann.luppo@attglobal.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Apache php mysql
Message-ID:  <20040527220504.GA21801@gentoo-npk.bmp.ub>
In-Reply-To: <003201c443ee$8286db50$0f01a8c0@razor>
References:  <003201c443ee$8286db50$0f01a8c0@razor>

next in thread | previous in thread | raw e-mail | index | archive | help

--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:

<?php
	phpinfo();
?>

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040527220504.GA21801>