Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 and php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Tue Aug 02, 2005 8:24 pm    Post subject: apache2 and php Reply with quote

I emerged apache and got it working. I had php in my USE. It doesn't seem to work though. Is there some PHP config step I need to do? Or maybe it's an apache configuration issue. I made a simple index.php, but it doesn't seem to want to read it as php code. It just outputs it like a text file.

<?php

echo "<html><body>Test</body></html>";

?>

It prints out just that on the page though.
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Tue Aug 02, 2005 8:37 pm    Post subject: Reply with quote

It's well documented throughout the forums, but here you go.

vi /etc/conf.d/apache2
Change:
APACHE2_OPTS=""
to
APACHE2_OPTS="-D PHP4"
Back to top
View user's profile Send private message
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Tue Aug 02, 2005 8:45 pm    Post subject: Reply with quote

Thanks. I looked on the forums but was mainly finding somewhat similar, but still unrelated posts. Thanks for taking the time. I figured it was something like that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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