Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache & mod_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
D. M. P. inc
Apprentice
Apprentice


Joined: 29 Sep 2003
Posts: 228
Location: /home/dmpinc

PostPosted: Mon Jan 19, 2004 3:12 am    Post subject: apache & mod_php Reply with quote

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
View user's profile Send private message
DopeGhoti
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2004
Posts: 100
Location: Vermont, US

PostPosted: Mon Jan 19, 2004 3:41 am    Post subject: Reply with quote

Did you restart apache?
_________________
A proud member of the No post left unanswered Club!
Back to top
View user's profile Send private message
chief_misses_alot
n00b
n00b


Joined: 10 Dec 2003
Posts: 11

PostPosted: Mon Jan 19, 2004 6:45 am    Post subject: Simliar problem Reply with quote

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
View user's profile Send private message
zwiebel
n00b
n00b


Joined: 14 Jun 2003
Posts: 9
Location: Hong Kong

PostPosted: Mon Jan 19, 2004 9:13 am    Post subject: Reply with quote

edit your /etc/conf.d/apache2 with

Code:
APACHE2_OPTS="-D PHP4"


and then restart the apache service.
Back to top
View user's profile Send private message
chief_misses_alot
n00b
n00b


Joined: 10 Dec 2003
Posts: 11

PostPosted: Mon Jan 19, 2004 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
castrik
n00b
n00b


Joined: 16 Apr 2004
Posts: 31

PostPosted: Thu Aug 05, 2004 9:23 am    Post subject: Reply with quote

im also experiencing this problem, anyone got a solution?
Back to top
View user's profile Send private message
placeholder
Advocate
Advocate


Joined: 07 Feb 2004
Posts: 2500

PostPosted: Thu Aug 05, 2004 10:15 am    Post subject: Reply with quote

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