Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Optimal USE flag settings for web in Gentoo?

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Author Message
shunchu



Joined: 18 Apr 2004
Posts: 19

Posted: Wed May 19, 2004 12:25 pm    Post subject: 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...
Back to top  
anderiv



Joined: 27 Apr 2004
Posts: 129

Posted: Wed May 19, 2004 1:23 pm    Post subject:  

This is what I have: Code: 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.
Back to top  
lurkus



Joined: 23 Mar 2004
Posts: 18
Location: Texas

Posted: Wed May 19, 2004 4:10 pm    Post subject:  

Here's what I've got:


Code: 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:

Code: 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
Code: 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.
Back to top  
shunchu



Joined: 18 Apr 2004
Posts: 19

Posted: Wed May 19, 2004 4:29 pm    Post subject:  

Nice!! Thank you guys! This really helps!
Back to top  
wazdog



Joined: 10 Nov 2003
Posts: 57
Location: Japan

Posted: Thu May 20, 2004 1:07 am    Post subject:  

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

Code:
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
Back to top  
Bill Clinton



Joined: 23 Nov 2003
Posts: 79

Posted: Thu May 20, 2004 5:02 am    Post subject:  

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
Back to top  
mastabog



Joined: 03 Apr 2004
Posts: 64

Posted: Thu May 20, 2004 7:11 am    Post subject:  

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.
Back to top  
 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Page 1 of 1