View previous topic :: View next topic |
Author |
Message |
D. M. P. inc Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1686922912400c36140f35b.gif)
Joined: 29 Sep 2003 Posts: 228 Location: /home/dmpinc
|
Posted: Mon Jan 19, 2004 3:12 am Post subject: apache & mod_php |
|
|
i emerge apache mod_php
both are installed my apache works but when i do
<?php
phpinfo();
?>
but it wont show anything.
what is wrong?? am i missin anything?? _________________ Live And Learn. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DopeGhoti Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/585668284009d817d907b.gif)
Joined: 17 Jan 2004 Posts: 100 Location: Vermont, US
|
Posted: Mon Jan 19, 2004 3:41 am Post subject: |
|
|
Did you restart apache? _________________ A proud member of the No post left unanswered Club! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chief_misses_alot n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/5019209493fd78c8a9f49e.jpg)
Joined: 10 Dec 2003 Posts: 11
|
Posted: Mon Jan 19, 2004 6:45 am Post subject: Simliar problem |
|
|
I've had apache running for a while with no problems and I'm trying to get mod_php to serve up php pages for me. I'm attemping to get Gallery to run.
A friend reccomended putting "<? phpinfo(); ?>" into a "test.php" file and seeing if that will come up (to test php) when I do that it just returns a page with that text and nothing else on it.
I emerged Gallery and went to /"myip"/gallery/setup/ and it gave me the index.php on the screen, but the code and not the actual page for setting up php. I checked my apache.conf and the mod_php is enable to start, I'm running Apache 2.0.48 and I have emerged the latest mod_php to my server also.
I've never done anything with php before, I must be doing something wrong!
Any thoughts?
I've restarted apache a couple times since I started working on this, haven't found anything similar on other threads. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zwiebel n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/21280932713ff914ad3e006.jpg)
Joined: 14 Jun 2003 Posts: 9 Location: Hong Kong
|
Posted: Mon Jan 19, 2004 9:13 am Post subject: |
|
|
edit your /etc/conf.d/apache2 with
Code: | APACHE2_OPTS="-D PHP4" |
and then restart the apache service. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chief_misses_alot n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/5019209493fd78c8a9f49e.jpg)
Joined: 10 Dec 2003 Posts: 11
|
Posted: Mon Jan 19, 2004 2:23 pm Post subject: |
|
|
Quote: |
edit your /etc/conf.d/apache2 with
Code:
APACHE2_OPTS="-D PHP4"
and then restart the apache service.
|
When I set that option I get
Syntax error on line 20 of /etc/apache2/conf/modules.d/70_mod_php.conf:
Invalid command 'RequestHeader', perhaps mis-spelled or defined by a module not included in the server configuration
Upon restarting apache.
Line 20 of that file reads
RequestHeader unset If-Modified-Since
I re-emerged mod_php and it did the same thing. Any ideas? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
castrik n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Apr 2004 Posts: 31
|
Posted: Thu Aug 05, 2004 9:23 am Post subject: |
|
|
im also experiencing this problem, anyone got a solution? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
placeholder Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Thu Aug 05, 2004 10:15 am Post subject: |
|
|
Did you add 'AddType application/x-httpd-php .php .phtml' in the '<IfModule mod_mime.c>' section in /etc/apache2/commonapache2.conf? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|