View previous topic :: View next topic |
Author |
Message |
D. M. P. inc Apprentice


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 |
|
 |
DopeGhoti Tux's lil' helper


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 |
|
 |
chief_misses_alot n00b


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 |
|
 |
zwiebel n00b


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 |
|
 |
chief_misses_alot n00b


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 |
|
 |
castrik n00b

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 |
|
 |
placeholder Advocate

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 |
|
 |
|