Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 and mod_php not executing files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
azote
Guru
Guru


Joined: 17 Sep 2002
Posts: 415

PostPosted: Thu Mar 20, 2003 5:06 pm    Post subject: apache2 and mod_php not executing files Reply with quote

ok... My *.php files are tno being execution...

it prompts to SAVE as ....

how do I know id mod_php is being loaded ...

?
I have in my /etc/apache2/conf/apache2.conf the line
Code:
LoadModule php4_module    extramodules/libphp4.so


and starts the server with no problem ...

I also have the

APACHE_OPTS="-D SSL -D PHP4

in the init.d

what could be wrong..?
thanks!
_________________
contact me -> azote@mail.i2p

What do you want to emerge today?

if you think that a person is normal, it is because you do not know them well
Back to top
View user's profile Send private message
chris4linux
Apprentice
Apprentice


Joined: 13 Nov 2002
Posts: 210
Location: Germany

PostPosted: Mon Mar 24, 2003 9:04 pm    Post subject: Reply with quote

I belive thar php doesn't work with apache 2.x in the moment....(look@apache.org)

- Chris
_________________
NOTICE: alloc: /dev/null: filesystem full
Back to top
View user's profile Send private message
azote
Guru
Guru


Joined: 17 Sep 2002
Posts: 415

PostPosted: Mon Mar 24, 2003 9:54 pm    Post subject: Reply with quote

uhm.. weird..
_________________
contact me -> azote@mail.i2p

What do you want to emerge today?

if you think that a person is normal, it is because you do not know them well
Back to top
View user's profile Send private message
ahammer
n00b
n00b


Joined: 31 Mar 2003
Posts: 1
Location: Switzerland

PostPosted: Mon Mar 31, 2003 7:30 pm    Post subject: Re: apache2 and mod_php not executing files Reply with quote

[quote="azote"]ok... My *.php files are tno being execution...

it prompts to SAVE as ....

how do I know id mod_php is being loaded ...

?
I have in my /etc/apache2/conf/apache2.conf the line [code]LoadModule php4_module extramodules/libphp4.so
[/code]

and starts the server with no problem ...

thanks![/quote]

Hi, i've just startet with gentoo on PPC. But i'm running
apache 2.0.43 combined with php 4.2.3 based on x86.

I've got 2 entries in my httpd.conf:
- LoadModule php4_module modules/libphp4.so
- AddType application/x-httpd-php .php

the latter entry defines the php extension. Perhaps you've missed this line.
(the module path may differ from your installation)

You can get server-infos by enabling the server-info:
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from your.domain
</Location>
After that, type http://servername/server-info. See, if you can
find any PHP-Infos...

One last possibility is, that php was compiled for apache 1.x and
not apache 2.x. My working compilation is:
# ./configure --with-apxs2=/opt/apache2/bin/apxs --enable-module=so
_________________
Yours
Armin Hammer
Back to top
View user's profile Send private message
dolbz
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2003
Posts: 138
Location: Nuneaton,UK

PostPosted: Tue Apr 01, 2003 10:07 pm    Post subject: Reply with quote

PHP does work with apache2 but only as a shared module. I have succesfully run apache2 in this configuration. I worked from the guide below:

http://www10.brinkster.com/ssruprai/comphp.asp


Dolbz
Back to top
View user's profile Send private message
vibhor
n00b
n00b


Joined: 16 Jun 2003
Posts: 1

PostPosted: Mon Jun 16, 2003 12:49 pm    Post subject: Reply with quote

see this post https://forums.gentoo.org/viewtopic.php?p=205119#205119

i used the exact thing and it worked right away (after a apache2 restart :-) )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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