Unix Technical Forum

php module for Apache

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, ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 11:09 AM
jasper
 
Posts: n/a
Default php module for Apache

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 11:09 AM
Raymond Baastad
 
Posts: n/a
Default Re: php module for Apache

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 11:10 AM
Whoever
 
Posts: n/a
Default Re: php module for Apache


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 11:10 AM
Sybren Stuvel
 
Posts: n/a
Default Re: php module for Apache

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:55 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com