On 1 Jul 2006 at 0:05, Edward C. Cheadle wrote:

> One thing I am working through is how to handle dependencies.  I
> wanted to have php5, MySQL 5, and apache 2.X. But when I went to
> install the system talked about apache 1.3 when installing php5.   If
> I want the latest of each package how would an experienced FreeBSDer
> do. Build all from scratch?   Do people run production stuff from
> Ports installed and compiled, or do they download, configure the make
> and do it from scratch. 

The FreeBSD Ports tree will handle all of the dependencies for you.  
I would recommend PHP4 over PHP5.  And PostgreSQL over any version of 
MySQl for that matter... ;)

cd /usr/ports/www/apache13
make install clean

That will download the sources, apply any patches, configure it for 
FreeBSD, compile it, install it, and then clean up.

Then install your database.

Then install the version of PHP that you want.  Install that from 
lang/php4 in the ports tree.  Be sure to check apache-module in the 
configuration options.  That's option 3 IIRC.  You may also want to 
install lang/php4-extensions.  Be sure to check the option for the DB 
of your choice.

FWIW: all of this can automated.  I use a port-like Makefile to setup 
a new server to run the FreshPorts website or FreeBSD Diary. That 
install all the things I need.

A note about your port options: /var/db/port is where your compile-
time settings are stored.

I never compile from scratch if there is a port available.  With the 
port, someone else has already gone through all the headache and 
trouble associated with putting the right things in the right place.  
The advantages of the port tree should not be underestimated.  Using 
a port ensure that when/if you need to remove the port, it will be 
removed completely and correctly.  Similary, when you need to 
upgrade, there are automated tools availble to do this for you.  They 
will handle all the dependences and keep you running.


> Anyway I installed cvsup, rebuilt the world and the kernel and
> everything is working great.  I am looking into what firewalls trying
> to decide the best way to go.   I may install samba and some backup sw
> like bacula, but I am taking it slow working through the issues and
> trying to automate the process.  FreeBSD is working great so I think I
> am sticking with it for awhile. 

Good.

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php


_______________________________________________
gubug mailing list
[email protected]
https://gubug.org/mailman/listinfo/gubug

Reply via email to