This is a discussion on php module for Apache within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hi, I'm running a webserver with Gentoo and Apache, no problems But recently I've taught myself a little PHP, ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I'm running a webserver with Gentoo and Apache, no problems But recently I've taught myself a little PHP, so I made a photo gallery with PHP, and would like to put it on my server. A friend of mine said that I need to install a PHP module, and from my experience with SuSE Linux, there's a mod_php for Apache. Unfortunately, when I do "emerge -a mod_php", the Portage system demands me to install Xorg, which I don't want or need on my webserver... There are some required library's depending on that package, but I wonder why you have to install a (base) graphical system for using a PHP module? Also, can I avoid it some way by disabling some USE flags? Thanks, Jasper. |
| |||
| jasper wrote: > Hi, > > I'm running a webserver with Gentoo and Apache, no problems > But recently I've taught myself a little PHP, so I made a photo gallery > with PHP, and would like to put it on my server. > A friend of mine said that I need to install a PHP module, and from my > experience with SuSE Linux, there's a mod_php for Apache. > > Unfortunately, when I do "emerge -a mod_php", the Portage system demands > me to install Xorg, which I don't want or need on my webserver... > There are some required library's depending on that package, but I > wonder why you have to install a (base) graphical system for using a PHP > module? > Also, can I avoid it some way by disabling some USE flags? Try: USE="-qt -gtk -gtk2 -X" emerge php mod_php May have forgotten one or two, but you still get the drift... -- /ray |
| |||
| On Thu, 30 Jun 2005, Raymond Baastad wrote: > jasper wrote: >> Hi, >> >> I'm running a webserver with Gentoo and Apache, no problems >> But recently I've taught myself a little PHP, so I made a photo gallery >> with PHP, and would like to put it on my server. >> A friend of mine said that I need to install a PHP module, and from my >> experience with SuSE Linux, there's a mod_php for Apache. >> >> Unfortunately, when I do "emerge -a mod_php", the Portage system demands >> me to install Xorg, which I don't want or need on my webserver... >> There are some required library's depending on that package, but I wonder >> why you have to install a (base) graphical system for using a PHP module? >> Also, can I avoid it some way by disabling some USE flags? > > Try: > > USE="-qt -gtk -gtk2 -X" emerge php mod_php Assuming the OP never wants X, QT, etc. he should probably add these to his USE flags in /etc/make.conf |
| ||||
| Raymond Baastad enlightened us with: > USE="-qt -gtk -gtk2 -X" emerge php mod_php DO NOT use environment variables like that. It'll break the next time OP wants to upgrade those packages. Use /etc/make.conf, or /etc/portage/packages.use for package-specific USE flags. Also, OP only wants mod_php, and that is what should be emerged. Let Portage handle the dependencies. That way, if he ever wants to unmerge mod_php, php can be cleaned by Portage. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? Frank Zappa |