Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP not working [Solved]
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
reub2000
Guru
Guru


Joined: 31 Jan 2004
Posts: 364

PostPosted: Sat Oct 29, 2005 6:18 pm    Post subject: PHP not working [Solved] Reply with quote

I want to use apache to help me make a php script. I've installed apache2, php, and mod_php, yet php doesn't work. I get a save as dialog whenever I try to view a php page.

My http.conf contains a line which looks like it should load the php module:
Include /etc/apache2/modules.d/*.conf

Why is php not working?

Edit: Solved by using dev-lang/php-5.0.5


Last edited by reub2000 on Fri Nov 04, 2005 10:35 am; edited 1 time in total
Back to top
View user's profile Send private message
Kurt Steiner
Bodhisattva
Bodhisattva


Joined: 01 Apr 2005
Posts: 1050
Location: Ostroleka, Polska

PostPosted: Sat Oct 29, 2005 6:53 pm    Post subject: Reply with quote

Do you have in your /etc/conf.d/apache2:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4"
?
Back to top
View user's profile Send private message
reub2000
Guru
Guru


Joined: 31 Jan 2004
Posts: 364

PostPosted: Sat Oct 29, 2005 10:49 pm    Post subject: Reply with quote

Kurt Steiner wrote:
Do you have in your /etc/conf.d/apache2:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4"
?
Added that, but it still doesn't work.
Back to top
View user's profile Send private message
abaelinor
n00b
n00b


Joined: 27 Aug 2005
Posts: 51

PostPosted: Sun Oct 30, 2005 1:34 am    Post subject: Reply with quote

aa

Last edited by abaelinor on Tue Oct 21, 2008 4:08 am; edited 1 time in total
Back to top
View user's profile Send private message
reub2000
Guru
Guru


Joined: 31 Jan 2004
Posts: 364

PostPosted: Sun Oct 30, 2005 1:52 am    Post subject: Reply with quote

djlosch wrote:
emerging php itself worked straight out of the box for me...

see if it's apache not working right.

put this in test.php
Code:

#!/usr/bin/php (or whatever your path is to php executable)
<?
echo('test worked');
?>


then at the cl, run ./test.php

You forgot the "chmod a+x text.php" step.

However, here is the output I got (Seems to work):
Code:
reub2000@reub2000 ~ $ ./test.php
test workedreub2000@reub2000 ~ $
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