home

server setup

Just notes on my server setups:

# emerge –sync

# emerge -av portage

vi /etc/make.conf

add the line:

USE=”-X -gnome -kde -qt -alsa -dvd apache2 mpm-prefork postgresql mysql”

# emerge -av apache

# emerge -av postgresql mysql

Time for PHP 5:

# vi /etc/portage/package.use

Add the line:

=dev-lang/php-5.0.5-r1 ~x86 dba bcmath cli curl gd pdo-external pear pcre session simplexml soap

And whatever else goodies you want — these are just my preferences. They are:

dba required by berkley db
bcmath for encryption algorithms — openID comes to mind
cli for the command line interface to php, being able to type #php echo “yo world!”
gd for the graphics libraries
pdo-external is the PECL PDO package for DB Abstraction (similar but not the same as PEAR)
pear (and prce necessary) for the PEAR repository for PHP extensions
session for session handling — default written to file, modified to store in db
simplexml to accompany xml2 libs for parsing the DOMs and other XML files
soap for making SOAP calls to big fat web services

I think you can also plop

ACCEPT_KEYWORDS=”~x86″

into your /etc/make.conf instead

but then you’re bound to install some experimental dependent packages. Using the very specific package.use is preferred.

let her run:

# emerge -av dev-lang/php