Apache + PHP3

Locked
Message
Author
Linuxfreund

Apache + PHP3

#1 Post by Linuxfreund »

Hallo !

Hat jemand eine Idee, warum bei mir das PHP3 nicht richtig funktioniert; das Apachemodul habe ich doch aktiviert und in der /etc/httpd/httpd.conf
habe ich auch diese Einträge
--------------------
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP3 module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
#
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml
AddType application/x-httpd-php3 .html
AddType application/x-httpd-php3 .htmls
#

gemacht. Es sollte jetzt doch eigentlich alles funktionieren.

Die Test.php3 gibt jedoch nur folgendes Resultat:
"<?"
"phpinfo"
"?>

;-(

Bei Klick uf embedded Perl erscheint das hier -- und da steht doch bei serversoft: PHP/3

------------------
%ENV:
SERVER_SOFTWARE = Apache/1.3.9 (Unix) PHP/3.0.12 ( hier steht doch PHP3 ;-?)

GATEWAY_INTERFACE = CGI/1.1
DOCUMENT_ROOT = /usr/local/httpd/htdocs
REMOTE_ADDR = 127.0.0.1
SERVER_PROTOCOL = HTTP/1.0
SERVER_SIGNATURE =
Apache/1.3.9 Server at xxxx Port xx

REQUEST_METHOD = GET
HTTP_REFERER = http://localhost/
QUERY_STRING =
HTTP_USER_AGENT = Mozilla/4.61 [en] (X11; I; Linux 2.2.10 i686)
PATH = /sbin:/usr/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde/bin
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_CONNECTION = Keep-Alive
REMOTE_PORT = xxxx
SERVER_ADDR = 127.0.0.1
HTTP_ACCEPT_LANGUAGE = en
SCRIPT_NAME = /cgi-bin/test.pl
HTTP_ACCEPT_ENCODING = gzip
SCRIPT_FILENAME = /usr/local/httpd/cgi-bin/test.pl
SERVER_NAME = xxx
REQUEST_URI = /cgi-bin/test.pl
HTTP_ACCEPT_CHARSET = iso-8859-1,*,utf-8
SERVER_PORT = xx
HTTP_HOST = localhost
SERVER_ADMIN = xxx
---------------------------

Bin für jeden Hinweis dankbar
Linuxfreund

Sven Boernemeyer

Re: Apache + PHP3

#2 Post by Sven Boernemeyer »

Hallo Linuxfreund,

ich kann im Moment keinen groben Fehler feststellen. Ich kann Dir allerdings erst Uebermorgen weiterhelfen <img src="http://www.pro-linux.de/Images/Sad.gif" border="0" align="middle">( Ich poste Dir dann mal meine Konfig. Sie funktioniert absolut einwandfrei ! Ich denke das liegt bei Dir an Deiner Perl-Umgebung <img src="http://www.pro-linux.de/Images/Happy.gif" border="0" align="middle">

Gruss und CYa Freitag

Sven

mailto: linuxpenguin@gmx.li

LiNUX - May The Source Be With You <img src="http://www.pro-linux.de/Images/Wilk.gif" border="0" align="middle">

linuxfreund
Posts: 13
Joined: 24. Aug 1999 15:22

Re: Apache + PHP3

#3 Post by linuxfreund »

Hi Sven !

Danke für Dein schnelles Posting !

Ich werde meine Perlkonfiguration (ich glaube ich muß das auch noch zu Apache linken) überprüfen. <img src="http://www.pro-linux.de/Images/Wilk.gif" border="0" align="middle">)

In hoffnungsvoller Erwartung Deiner Apacheconf

Linuxfre<img src="http://www.pro-linux.de/Images/Wilk.gif" border="0" align="middle">nd

Locked