Optimal USE flag settings for web in Gentoo?

I have been testing and getting used to Gentoo in the past week or so. Love it!

I am trying to set up a server for:

web: apache, php… etc

email: postfix, sasl, imap, pop, smtp… etc

db: mysql

What's the best optimal USE flag settings for web-centric server setup. The current setup included in Caker's image is for general purpose…

Thank you…

6 Replies

This is what I have: USE="nls imap xml -gpm -X -gtk -gnome -alsa -qt GD mysql ssl maildir -xfree -kde apache2" This box is running apache/php/mysql for web and qmail/vpopmail/courier for email.

Here's what I've got:

maildir sasl -X -qt mysql apache2 imap -gpm -cups

I almost always use the –verbose argument when running emerge. It will display all the USE flags (and their values) for every package you specify. It looks like this:

root@linode root # emerge -vp apache

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/apache-2.0.49-r1  +berkdb -doc +gdbm -ipv6 -ldap -threads  0 kB

Total size of downloads: 0 kB

If you have gentoolkit installed, you can then do this

root@linode root # equery uses =net-www/apache-2.0.49-r1
[ Colour Code : set unset ]
[ Legend    : (U) Col 1 - Current USE flags        ]
[           : (I) Col 2 - Installed With USE flags ]

 U I [ Found these USE variables in : net-www/apache-2.0.49-r1 ]
 + + berkdb  : Adds support for sys-libs/db (Berkeley DB for MySQL)
 + + gdbm    : Adds support for sys-libs/gdbm (GNU database libraries)
 - - ldap    : Adds LDAP support (Lightweight Directory Access Protocol)
 - - threads : Enable thread support
 - - ipv6    : Adds support for IP version 6
 - - doc     : Adds extra documentation (API, Javadoc, etc)

If you need more info than equery provides, check out Gentoo Forums. You'll find everything there. Hope this helps.

Nice!! Thank you guys! This really helps!

This is what I've added to my make.conf

USE="apache2 cjk fam gd imagemagick imap maildir mysql sasl unicode -oss -alsa -apm -arts -avi -cups -encode -foomaticdb -gpm -gtk -gtk2 -imlib -kde -gnome -libg++ -mad -mikmod -motif -mpeg -oggvorbis -opengl -qt -quicktime -sdl -svga -truetype -X -xmms -xv"

-j

I'm not a Gentoo user, but I'm interested in why you gentoo users specify things like -gtk when you already have -X ? I would assume that not including X would mean X graphical libraires like gtk are automatically excluded as well …. no?

Bill Clinton

Everyone should be a gentoo user :) We specify- gtk also because some packages still require gtk even if -X is already specified. I can't name any package nor remember experiencing this but i know its possible. I have -gtk -X specified into my make.conf anyway.

For web, just make sure you have apache2 gd mysql ssl maildir -X -qt -gtk … these are the ones I added besides the default one that Chris provided.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct