Füg mal folgende Zeilen zu deiner httpd.conf hinzu: (für Apache 2)
LoadModule php4_module "c:/dein/pfad/zu/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .php4 .php3 .phtml
Hierfür reicht ein normaler Editor und speichern Sie es in c:\apache\htdocs als phpinfo.php ab und rufen Sie es über Ihren Browser mit http://localhost/phpinfo.php auf. Bekommen Sie nun eine Seite mit der Versionsnummer von PHP zusehen hat alles geklappt.
dies ist ein auszug aus eurem einrichtungs Testserver für php und mysql. Bis zu diesem Punkt hat alles wunderbar geklappt. Jetz hab ich aber folgendes Problem:
wenn ich nun die site localhost/phpinfo.php in meinem Browser aufrufe, bringt er statt die Site das Download-Popup von Windows und fragt mich, wo ich das php-dokument speichern will.
Mit anderen Worten, ich kann keine php-dokumente mit meinem Browser anschauen!!!
ich ersuche um hilfe ! ich danke euch schonmal im Vorraus für die hoffentlich hilfreichen antworten.....
mfg nightfire
Füg mal folgende Zeilen zu deiner httpd.conf hinzu: (für Apache 2)
LoadModule php4_module "c:/dein/pfad/zu/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .php4 .php3 .phtml
The truth You hear may not be the truth You think it is
sorry ging leider nicht.......
hier mal der letzte abschnitt meiner httpd.conf
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .php4 .php3 .phtml
hab das teil also wie du gesagt hast, am ende eingefügt.....
wenn du noch was weisst, wäre ich dir verbunden
mfg nightfire
Wenn du das Modul lädst, dann brauchst du nicht vorher ne CGI Version einrichten.
Lösch mal diese 4 Zeilen:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
Zusätzlich musst du die Datei php4ts.dll nach c:\windows[winnt]\system32 kopieren...
The truth You hear may not be the truth You think it is
hallo!
genau dieses problem habe ich auch
anstatt das der browser die seite anzeigt
will er die php datei downloaden
habs gleich gemacht wie oben beschrieben
und es funktioniert noch immer nicht
wo liegt da der hacken??
lg notator
Weil der Mensch zählt!
Ist der Apache-Server gestartet?
Freedom for Mars!
hallo peter!
ja der is gestartet
und wenn ich schreibe zbs.
http://localhost/index2.php dann will der browser immer downloaden! witzig!
lg notator
Weil der Mensch zählt!
Hm, seltsam...
Weiß jetzt nicht, welcher Test-Server vom TP empfohlen wird (und bin jetzt ehrlich gesagt zu faul um nach dem Beitrag zu suchen), aber ich hab mir den "PHPTriad" runtergeladen, und damit klappte es sofort und ohne Probleme - obgleich ich mich in dem Bereich selber nicht wirklich gut auskenne...
Freedom for Mars!
irgenwann wirds schon klappen!!
mfg notator,
ps wie gehts dir überhaupt?? schon lange nichts mehr gehört!
Weil der Mensch zählt!
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)