Optimal USE flag settings for web in Gentoo?
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
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.
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.
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
Bill Clinton
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.