View previous topic :: View next topic |
Author |
Message |
azote Guru
Joined: 17 Sep 2002 Posts: 415
|
Posted: Thu Mar 20, 2003 5:06 pm Post subject: apache2 and mod_php not executing files |
|
|
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 |
|
|
chris4linux Apprentice
Joined: 13 Nov 2002 Posts: 210 Location: Germany
|
Posted: Mon Mar 24, 2003 9:04 pm Post subject: |
|
|
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 |
|
|
azote Guru
Joined: 17 Sep 2002 Posts: 415
|
Posted: Mon Mar 24, 2003 9:54 pm Post subject: |
|
|
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 |
|
|
ahammer n00b
Joined: 31 Mar 2003 Posts: 1 Location: Switzerland
|
Posted: Mon Mar 31, 2003 7:30 pm Post subject: Re: apache2 and mod_php not executing files |
|
|
[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 |
|
|
dolbz Tux's lil' helper
Joined: 29 Mar 2003 Posts: 138 Location: Nuneaton,UK
|
Posted: Tue Apr 01, 2003 10:07 pm Post subject: |
|
|
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 |
|
|
vibhor n00b
Joined: 16 Jun 2003 Posts: 1
|
|
Back to top |
|
|
|