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

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ckwall
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 163

PostPosted: Sun Aug 18, 2002 9:42 pm    Post subject: Help with PHP Reply with quote

I am trying to set up the apache and php for squirel mail. I have the apache installed and working, but apparantly the PHP is not working correctly. I created the test.php, but the results on the page are:
<? phpinfo(); ?>

Could anyone please help?
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sun Aug 18, 2002 9:43 pm    Post subject: Reply with quote

Moving from D.E. to Networking & Security.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sun Aug 18, 2002 9:45 pm    Post subject: Re: Help with PHP Reply with quote

ckwall wrote:
I created the test.php, but the results on the page are:
<? phpinfo(); ?>

That's precisely what gets output to the browser? If so, you haven't told Apache to use the PHP module to interpret files ending in .php.

Have a look at the PHP documentation on how to install php in apache. Specifically, look for the "AddType" and "LoadModule" sections to make sure you have those entered correctly in your httpd.conf.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
ckwall
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 163

PostPosted: Sun Aug 18, 2002 10:34 pm    Post subject: Reply with quote

found the issue. Sorry to waste everyones time.
the APACHE_OPTS="-D SSL -D PHP4" line in the conf.d had a # in front of it that I missed.
Thanks all
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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