"Timmy" <Timmy14.TakeThisOut@Nomail.com> wrote in message
news:1951550.mIN4ISxyXL@FreeBSD...
> Hello!
>
> Hey, I want to setup apache on my computer I have FreeBSD. And while I was
> looking at the install instructions I come across this..I've searched
> around for differnt things on geting apache up and running.
>
> +++
> "the idea here is this.. The ports collection is layed out that if you try
> to install a port that is dependent upon another port, it will first
> install the dependencie then configure it to go with the port that called
> it.. (php in our case will call apache and configure it). PHP will also
> try
> for Mysql although I like to install it first so PHP can find it upon
> install and will configure itself for your system. Check out the Mysql
> install guide for help regarding installing Mysql. This being said, we
> move
> on assuming that Mysql is installed"
> +++
Not sure where you got this from, but I would find another source.
>
> Why would I need to install Mysql? Can I not just port mod_php4 and then
> install apache?
As far as I remember (from last time I installed php from a port), PHP
depends on the mysql-client port for its built in mysql_* functions.
mysql-client is just the C library and commandline tool for communicating
with MySQL. I don't think the PHP port will insist on you installing
mysql-server, which is the port containing the actual mysql server
application.
The idea with ports is to make the job of installing something easy by
installing the dependencies for you. If you want finer control over what
exactly is installed, build the packages yourself, or check what make
options the port gives you (many ports have a NOX11 option for example). A
description on how to do this is available in the FreeBSD handbook at
freebsd.org.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Newbie Question