Mailinglist Archive: opensuse-de (7975 mails)
| < Previous | Next > |
Re[2]: PHP - Apache - php wird nicht interpretiert... PART2
- From: Peter Steffek <nospam@xxxxxxxxxx>
- Date: Sun, 14 Apr 2002 15:16:58 +0200
- Message-id: <1851940786.20020414151658@xxxxxxxxxx>
Hallo Kevin,
Sunday, April 14, 2002, 2:58:01 AM, you wrote:
KLH> Am Samstag 13 April 2002 16:05 pm, schrieb Peter Steffek:
KLH> Peter,
KLH> Wie sehen die "IfModules" aus? Hier ist ein Beispiel fuer mod_php3.c
KLH> und mod_php4.c :
KLH> <IfModule mod_php3.c>
KLH> AddType application/x-httpd-php3 .php3
KLH> AddType application/x-httpd-php3-source .phps
KLH> AddType application/x-httpd-php3 .phtml
KLH> </IfModule>
KLH> #
KLH> # And for PHP 4.x, use:
KLH> #
KLH> <IfModule mod_php4.c>
KLH> AddType application/x-httpd-php .php
KLH> AddType application/x-httpd-php .php4
KLH> AddType application/x-httpd-php-source .phps
KLH> </IfModule>
Sieht bei mir genau so aus habe aber zusätzlich ein AddType
application/x-httpd-php .phpx
KLH> Was haben Sie im "LoadModules" Teil? Vielleicht brauchen Sie etwas wie:
Bei mir gibt es KEIN load Module und KEIN add Module BEZÜGLICH PHP !!!
Habe aber nachfolgenden Block hinter dem DUMMYSSL Block
<IfDefine DUMMYSSL>
LoadModule ssl_module
</IfDefine>
eingefügt [in der http.conf]
KLH> <IfDefine PHP4>
KLH> LoadModule php4_module /usr/lib/apache/libphp4.so
KLH> </IfDefine>
KLH> <IfDefine PHP>
KLH> LoadModule php3_module /usr/lib/apache/libphp3.so
KLH> </IfDefine>
anschliessend rcapache stop und rcapache start
Starting httpd [ SSL PHP4 PERL Jserv] done
[Startet also ohne fehler ein rcapache status ---> running]
KLH> Probieren Sie auch mal /etc/init.d/apache full-status
Habe ich gemacht, ach diesem Aufruf kommt:
Usage: /etc/init.d/apache
{start|stop|status|try-restart|force-reload|relode|probe}
Hier noch mein test.php file
--- CUT ----
<?php
/*
* Display PHP information
*/
phpinfo();
?>
--- CUT ----
PROBLEM besteht weiterhin
PHP wird nicht ausgeführt
Sobald ich http://192.168.0.3/test.php im internen Netz aufrufe will mein
browser die
Datei speichern.
Gruss
Peter
4 Weeks and 1 Day Linux user going to LAMP the world.
Sunday, April 14, 2002, 2:58:01 AM, you wrote:
KLH> Am Samstag 13 April 2002 16:05 pm, schrieb Peter Steffek:
Hallo LISTE,
Habe auch das Problem, dass mein apache keine php seiten
interpretiert [Suse7.2 prof].
Beim Starten von apache [SSL, PHP4, PERL, JServ ] -->
DONE keine Fehlermeldungen
sobald ich die test.php seite aufrufe will mein browser
die datei speichern.
In der error_log von apache steht: nichts
In der access_log von apache: "GET /test.php HTTP/1.1"
304 -
irgendwie springt der PHP phraser nicht an.
------------- HTTPD.CONF -----------------
in der httpd.conf steht bei den LoadModule und bei
AddModule keine PHP MODULE !!!!
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml
index.php index.php4 index.php3 </IfModule>
Der <IfModule mod_php3.c> und der <IfModule mod_php4.c>
BLOCK ist auch vollständig da
---------------------------------------------------
Wer kann helfen ???
Danke
Peter 4 Wochen LINUX user (noch happy)
KLH> Peter,
KLH> Wie sehen die "IfModules" aus? Hier ist ein Beispiel fuer mod_php3.c
KLH> und mod_php4.c :
KLH> <IfModule mod_php3.c>
KLH> AddType application/x-httpd-php3 .php3
KLH> AddType application/x-httpd-php3-source .phps
KLH> AddType application/x-httpd-php3 .phtml
KLH> </IfModule>
KLH> #
KLH> # And for PHP 4.x, use:
KLH> #
KLH> <IfModule mod_php4.c>
KLH> AddType application/x-httpd-php .php
KLH> AddType application/x-httpd-php .php4
KLH> AddType application/x-httpd-php-source .phps
KLH> </IfModule>
Sieht bei mir genau so aus habe aber zusätzlich ein AddType
application/x-httpd-php .phpx
KLH> Was haben Sie im "LoadModules" Teil? Vielleicht brauchen Sie etwas wie:
Bei mir gibt es KEIN load Module und KEIN add Module BEZÜGLICH PHP !!!
Habe aber nachfolgenden Block hinter dem DUMMYSSL Block
<IfDefine DUMMYSSL>
LoadModule ssl_module
</IfDefine>
eingefügt [in der http.conf]
KLH> <IfDefine PHP4>
KLH> LoadModule php4_module /usr/lib/apache/libphp4.so
KLH> </IfDefine>
KLH> <IfDefine PHP>
KLH> LoadModule php3_module /usr/lib/apache/libphp3.so
KLH> </IfDefine>
anschliessend rcapache stop und rcapache start
Starting httpd [ SSL PHP4 PERL Jserv] done
[Startet also ohne fehler ein rcapache status ---> running]
KLH> Probieren Sie auch mal /etc/init.d/apache full-status
Habe ich gemacht, ach diesem Aufruf kommt:
Usage: /etc/init.d/apache
{start|stop|status|try-restart|force-reload|relode|probe}
Hier noch mein test.php file
--- CUT ----
<?php
/*
* Display PHP information
*/
phpinfo();
?>
--- CUT ----
PROBLEM besteht weiterhin
PHP wird nicht ausgeführt
Sobald ich http://192.168.0.3/test.php im internen Netz aufrufe will mein
browser die
Datei speichern.
Gruss
Peter
4 Weeks and 1 Day Linux user going to LAMP the world.
| < Previous | Next > |