Apache-MySQL-PHP from ports

Kevin D. Kinsey, DaleCo, S.P. kdk at daleco.biz
Wed Jun 9 08:10:20 PDT 2004


Grant Peel wrote:

>Hi all,
>
>TO this point, I have been installing everything from source. Starting with
>the new servers, which I am working on now, I would like to do as much as
>possible from ports.
>
>I have mysql installed correctly.
>
>I need now to install PHP and Apache.
>
>The source type install would require to run ./configure with a few options,
>then back to the PHP source dir, run ./configure with a few options, make,
>make install, then back to the apache dir, re ./configure, make, make
>install, etc etc.
>
>Since ports have patches and some Makefile options set, is it permissable to
>go to the Apache or PHP port dir, run the make, then rerun ./configure so as
>to emulate the steps above?
>
>  
>

Yes, but you'd defeat the point of it running all 3 steps automagically.

>Eventually, When it becomes time to comile apache, I will need to add the
>FrontPage patch as well. All this considered, woould I be better to keep
>installing all from source, or still try to stick to the ports method?
>  
>

I would think that defining the desired options in 
/usr/local/etc/php.conf would allow
you to get things configured as you like them with a one liner ("make 
install clean");
I tend to just use the defaults, though.  See make(1), make.conf(5), 
/usr/ports/mk/bsd.php.mk,
and /usr/local/etc/php.conf (now, whether or not you have the last two 
if you've
never done it from ports, I dunno....)

For FP, can't you just load the module?

Kevin Kinsey


More information about the freebsd-questions mailing list