View previous topic :: View next topic |
Author |
Message |
reub2000 Guru
Joined: 31 Jan 2004 Posts: 364
|
Posted: Sat Oct 29, 2005 6:18 pm Post subject: PHP not working [Solved] |
|
|
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 |
|
|
Kurt Steiner Bodhisattva
Joined: 01 Apr 2005 Posts: 1050 Location: Ostroleka, Polska
|
Posted: Sat Oct 29, 2005 6:53 pm Post subject: |
|
|
Do you have in your /etc/conf.d/apache2: Code: | APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4" | ? |
|
Back to top |
|
|
reub2000 Guru
Joined: 31 Jan 2004 Posts: 364
|
Posted: Sat Oct 29, 2005 10:49 pm Post subject: |
|
|
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 |
|
|
abaelinor n00b
Joined: 27 Aug 2005 Posts: 51
|
Posted: Sun Oct 30, 2005 1:34 am Post subject: |
|
|
aa
Last edited by abaelinor on Tue Oct 21, 2008 4:08 am; edited 1 time in total |
|
Back to top |
|
|
reub2000 Guru
Joined: 31 Jan 2004 Posts: 364
|
Posted: Sun Oct 30, 2005 1:52 am Post subject: |
|
|
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 |
|
|
|