Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP with apache2.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Fri Jan 27, 2006 6:37 am    Post subject: PHP with apache2. Reply with quote

How do I get PHP 4 or 5 to work with apache2?

Do I just need to edit /etc/conf.d/apache2 and add in:
Code:
APACHE2_OPTS="-D SSL -D PHP4"


Or is there more to it?
_________________
Core i7 2.67GHz with 12GB DDR3 RAM.
Back to top
View user's profile Send private message
keyson
l33t
l33t


Joined: 10 Jun 2003
Posts: 827
Location: Sweden

PostPosted: Fri Jan 27, 2006 6:57 am    Post subject: Reply with quote

Hi,

Yes. But the function depends on some use flags.
Think you have to use one of the mpm flags.
I use mpm-prefork.

So check tha flags on apache.
Code:
emerge -pv apache

and you se if any mpm flag is used.

Search the forum for apache php and mpm.
To check the function, make a file like 'test.php'
in that file enter.
Code:
<?phpinfo();?>

Now if you open this in a browser 'http://localhost/test.php' you should
get a page that indicate that it works.
Back to top
View user's profile Send private message
MrApples
Guru
Guru


Joined: 13 Dec 2002
Posts: 511

PostPosted: Fri Jan 27, 2006 7:10 am    Post subject: Reply with quote

first off you need to decide which php you are using, 4 or 5, dev-php/php or dev-lang/php respectively, then emerge that, and apache

then you need to set "-D PHP<4,5>" for whichever you chose

as for the mpm flags, i think that if there isnt one set, it defaults to one
_________________
http://www.whatsinyourbox.org -- Technology discussion, news, and more.
Back to top
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Fri Jan 27, 2006 1:10 pm    Post subject: Reply with quote

I see! Thank you both! I got it working now. :smile:
_________________
Core i7 2.67GHz with 12GB DDR3 RAM.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum