You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by René Rosche <re...@gmx.de> on 2002/05/23 23:54:49 UTC
Virtual Hosts + PHP
Hallo,
ich habe unter Windows 2000 und Apache Virtual Hosts eingerichtet.
Wenn ich diese Hosts jetzt aufrufe erhalte ich biem Zugriff auf PHP-seiten
die Meldung
500 miss configuriert Apache
Wenn ich über localhost/... die Seiten aufrufen funktioniert alles.
In der httpd.conf sind folgende Einträge:
PHP:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php.exe"
Virtel Host:
<VirtualHost testseite>
ServerAdmin webmaster@testseite
DocumentRoot C:/server/Apache/htdocs/test
ServerName testseite
</VirtualHost>
In die Host Tabelle sind die Hosts eingetragen.
Kann mir jemand helfen wie ich PHP zum Laufen bekommen unten den virtual
Hosts?
Danke
Gruß
René
Re: Virtual Hosts + PHP
Posted by Jochen Metzger <j....@steptown.com>.
Hi,
müßte ein Hinweis auf eine fehlerhafte Konfiguration sein (ein
500er).Internal Server Error.
> > Wenn ich diese Hosts jetzt aufrufe erhalte ich biem Zugriff auf
PHP-seiten
> die Meldung
> 500 miss configuriert Apache
>
Am besten mal in dein error_log reinschauen,was da drin steht. Bei Windows
98 muß dazu der Apache erst einmal gestoppt werden, damit man das aktuelle
Log sieht.
Was steht da drin zu diesem Zugriff....
Re: Re: Virtual Hosts + PHP
Posted by "timon.roth" <ti...@bluewin.ch>.
probiers mal mit grübeln in der php.ini datei
( ev. defaultmimetype überprüfen text/html )
default_mimetype = "text/html"
> Hallo,
>
> funktioniert nicht,
>
> in der eerorLog ist folgender EIntrag: Premature end of script headers
> .../php.exe
>
>
> Gruß
>
> René
>
> -----
> > in der HTTPD-Conf datei fehlt das ScriptAlias
> > Gemäss der PHP Installationsanleitung sieht das so aus
> >
> > ScriptAlias /php/ "c:/php/"
> > AddType application/x-httpd-php .php
> > Action application/x-httpd-php "/php/php.exe"
> >
> > > Hallo,
> > >
> > > ich habe unter Windows 2000 und Apache Virtual Hosts eingerichtet.
> > >
> > > Wenn ich diese Hosts jetzt aufrufe erhalte ich biem Zugriff auf
> > PHP-seiten
> > > die Meldung
> > > 500 miss configuriert Apache
> > >
> > > Wenn ich über localhost/... die Seiten aufrufen funktioniert alles.
> > >
> > > In der httpd.conf sind folgende Einträge:
> > >
> > > PHP:
> > >
> > > AddType application/x-httpd-php .php
> > > AddType application/x-httpd-php-source .phps
> > > Action application/x-httpd-php "/php/php.exe"
> > >
> > > Virtel Host:
> > >
> > > <VirtualHost testseite>
> > > ServerAdmin webmaster@testseite
> > > DocumentRoot C:/server/Apache/htdocs/test
> > > ServerName testseite
> > > </VirtualHost>
> > >
> > > In die Host Tabelle sind die Hosts eingetragen.
> > >
> > > Kann mir jemand helfen wie ich PHP zum Laufen bekommen unten den
virtual
> > > Hosts?
> > >
> > > Danke
> > >
> > > Gruß
> > >
> > > René
> > >
> > >
> > >
>
> --------------------------------------------------------------------------
> > > Apache HTTP Server Mailing List "users-de"
> > > unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> > > sonstige Anfragen an users-de-help@httpd.apache.org
> > >
>
> --------------------------------------------------------------------------
> > >
> >
> >
>
> --------------------------------------------------------------------------
> > Apache HTTP Server Mailing List "users-de"
> > unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> > sonstige Anfragen an users-de-help@httpd.apache.org
>
> --------------------------------------------------------------------------
> >
>
>
> --------------------------------------------------------------------------
> Apache HTTP Server Mailing List "users-de"
> unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> sonstige Anfragen an users-de-help@httpd.apache.org
> --------------------------------------------------------------------------
>
RE: Re: Virtual Hosts + PHP
Posted by "[christian-bieser.net]" <ma...@christian-bieser.net>.
vergleich mal deine php einstellungen mit den hier aufgeführten :
http://www.christian-bieser.net/wamp_php2.html
was die vh's betrifft weiß ich auch keinen rat. funkt bei mir nur mit
localhost (normla und ssl) und dem rechnernamen.
anmerkung: die einstellungen für die 'php.ini' sind noch nicht vollständig,
werden aber demnächst upgedatet !
grüße,
Christian
-----Original Message-----
From: René Rosche [mailto:ReneRosche@gmx.de]
Sent: Friday, May 24, 2002 7:19 PM
To: users-de@httpd.apache.org
Subject: Fwd: Re: Virtual Hosts + PHP
Hallo,
funktioniert nicht,
in der eerorLog ist folgender EIntrag: Premature end of script headers
.../php.exe
Gruß
René
-----
> in der HTTPD-Conf datei fehlt das ScriptAlias
> Gemäss der PHP Installationsanleitung sieht das so aus
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> > Hallo,
> >
> > ich habe unter Windows 2000 und Apache Virtual Hosts eingerichtet.
> >
> > Wenn ich diese Hosts jetzt aufrufe erhalte ich biem Zugriff auf
> PHP-seiten
> > die Meldung
> > 500 miss configuriert Apache
> >
> > Wenn ich über localhost/... die Seiten aufrufen funktioniert alles.
> >
> > In der httpd.conf sind folgende Einträge:
> >
> > PHP:
> >
> > AddType application/x-httpd-php .php
> > AddType application/x-httpd-php-source .phps
> > Action application/x-httpd-php "/php/php.exe"
> >
> > Virtel Host:
> >
> > <VirtualHost testseite>
> > ServerAdmin webmaster@testseite
> > DocumentRoot C:/server/Apache/htdocs/test
> > ServerName testseite
> > </VirtualHost>
> >
> > In die Host Tabelle sind die Hosts eingetragen.
> >
> > Kann mir jemand helfen wie ich PHP zum Laufen bekommen unten den virtual
> > Hosts?
> >
> > Danke
> >
> > Gruß
> >
> > René
> >
> >
> >
> --------------------------------------------------------------------------
> > Apache HTTP Server Mailing List "users-de"
> > unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> > sonstige Anfragen an users-de-help@httpd.apache.org
> >
> --------------------------------------------------------------------------
> >
>
>
> --------------------------------------------------------------------------
> Apache HTTP Server Mailing List "users-de"
> unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> sonstige Anfragen an users-de-help@httpd.apache.org
> --------------------------------------------------------------------------
>
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------
Fwd: Re: Virtual Hosts + PHP
Posted by René Rosche <Re...@gmx.de>.
Hallo,
funktioniert nicht,
in der eerorLog ist folgender EIntrag: Premature end of script headers
.../php.exe
Gruß
René
-----
> in der HTTPD-Conf datei fehlt das ScriptAlias
> Gemäss der PHP Installationsanleitung sieht das so aus
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> > Hallo,
> >
> > ich habe unter Windows 2000 und Apache Virtual Hosts eingerichtet.
> >
> > Wenn ich diese Hosts jetzt aufrufe erhalte ich biem Zugriff auf
> PHP-seiten
> > die Meldung
> > 500 miss configuriert Apache
> >
> > Wenn ich über localhost/... die Seiten aufrufen funktioniert alles.
> >
> > In der httpd.conf sind folgende Einträge:
> >
> > PHP:
> >
> > AddType application/x-httpd-php .php
> > AddType application/x-httpd-php-source .phps
> > Action application/x-httpd-php "/php/php.exe"
> >
> > Virtel Host:
> >
> > <VirtualHost testseite>
> > ServerAdmin webmaster@testseite
> > DocumentRoot C:/server/Apache/htdocs/test
> > ServerName testseite
> > </VirtualHost>
> >
> > In die Host Tabelle sind die Hosts eingetragen.
> >
> > Kann mir jemand helfen wie ich PHP zum Laufen bekommen unten den virtual
> > Hosts?
> >
> > Danke
> >
> > Gruß
> >
> > René
> >
> >
> >
> --------------------------------------------------------------------------
> > Apache HTTP Server Mailing List "users-de"
> > unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> > sonstige Anfragen an users-de-help@httpd.apache.org
> >
> --------------------------------------------------------------------------
> >
>
>
> --------------------------------------------------------------------------
> Apache HTTP Server Mailing List "users-de"
> unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> sonstige Anfragen an users-de-help@httpd.apache.org
> --------------------------------------------------------------------------
>
Re: Virtual Hosts + PHP
Posted by "timon.roth" <ti...@bluewin.ch>.
in der HTTPD-Conf datei fehlt das ScriptAlias
Gemäss der PHP Installationsanleitung sieht das so aus
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
> Hallo,
>
> ich habe unter Windows 2000 und Apache Virtual Hosts eingerichtet.
>
> Wenn ich diese Hosts jetzt aufrufe erhalte ich biem Zugriff auf PHP-seiten
> die Meldung
> 500 miss configuriert Apache
>
> Wenn ich über localhost/... die Seiten aufrufen funktioniert alles.
>
> In der httpd.conf sind folgende Einträge:
>
> PHP:
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
> Action application/x-httpd-php "/php/php.exe"
>
> Virtel Host:
>
> <VirtualHost testseite>
> ServerAdmin webmaster@testseite
> DocumentRoot C:/server/Apache/htdocs/test
> ServerName testseite
> </VirtualHost>
>
> In die Host Tabelle sind die Hosts eingetragen.
>
> Kann mir jemand helfen wie ich PHP zum Laufen bekommen unten den virtual
> Hosts?
>
> Danke
>
> Gruß
>
> René
>
>
> --------------------------------------------------------------------------
> Apache HTTP Server Mailing List "users-de"
> unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
> sonstige Anfragen an users-de-help@httpd.apache.org
> --------------------------------------------------------------------------
>