Apache/2.2.4 (Win32) PHP/5.2.1: Leerer BODY-Tag ?!?

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache/2.2.4 (Win32) PHP/5.2.1: Leerer BODY-Tag ?!?

Postby M*I*B » 24. November 2007 10:35

Hallo liebe Leser/innen,

ich betreibe auf einem WIN2003x64 seit längerem die obige Kombination, welche bisher keine Probleme macht. Es laufen dort so Sachen wie das WBB, phpBB 2 & 3, MyPHPadmin, SQLdumper, ... problemlos.

Nun war ich für einen Freund auf der Suche nach einem brauchbaren CRM-System und habe mal einige bei Sourceforce gefunden und in der Form

physikalisch:
/{wwwroot}/test01
/{wwwroot}/test02
/{wwwroot}/test03

virtuell als Subdomänen:
t01.{domäne}
t02.{domäne}
t03.{domäne}

eingerichtet, um die mal unabhängig voneinander zu installieren und anzutesten. So weit, so gut ...

Die Installation per WebBrowser i.d.R. funktionierte (bis auf einen, der den SQLserver zum abschmieren bringt) reibungslos. Aber dann, wenn eigentlich alles laufen sollte, habe ich bei allen das Problem, das ich beim Aufruf der Startseite oder des AdminCenters eine leere Seite angezeigt bekomme. Unter FireFox ist bei Quellcode-Ansicht nichts, beim MSIE der Seitenheader mit leerem BodyTag zu sehen, also zwischen <BODY> und </BODY> steht nix...

In den Logfilez sind keine Fehler aufgetreten, weder im Apache, noch im PHP, noch im Systemlog. Im Gegenteil: Im Apache wird der AUfruf der index.php mit Code 200 (OK) quittiert.

Diverse Änderungen in der conf und der php.ini haben mich keinen Schritt weiter gebracht, so das ich hier bereits meine Zähne in die Tischkante geschlagen und resigniert habe :cry:


Was übersehe ich? Was mache ich falsch? Bin ich zu doof für diese Welt?

Ist hier jemand, der mich mal an die Hand nehmen kann und auf den richtigen Weg bringt, damit mein Zahnklemptner nicht noch mehr an mir verdient?!
M*I*B
 

Postby Scory » 24. November 2007 17:13

Vielleicht zeigst Du uns mal die allesentscheidenden Zeilen aus httpd.conf, wie Du die Virtuellen Hosts eingerichtet hast.

Und außerdem noch, wie die Domains den IPs zugewiesen werden (die hosts Datei).

Grüße
Scory
Scory
 

Postby M*I*B » 24. November 2007 18:04

... also ne hosts kann ich Dir nicht geben, da ich die nicht verwende; das regelt bind9 ;

Hier mal die httpd.conf (echte Pfade durch {blabla} ersetzt):
Code: Select all
ServerRoot "{blabla}/Apache"
Listen 0.0.0.0:80
ServerName localhost:80
# 'Main' server configuration
ServerAdmin admin@{blabla}
DocumentRoot "{blabla}"
NameVirtualHost *:80
ThreadsPerChild 128
MaxRequestsPerChild 0

#--->     LoadModule directives     <---#
LoadModule php5_module C:/Programme/PHP/php5apache2_2.dll
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

PHPIniDir {blabla}

<FilesMatch "^\.ht">
  Order allow,deny
  Deny from all
</FilesMatch>

<Files ~ "^\.ht">
  Order allow,deny
  Deny from all
</Files>

ErrorLog "{blabla}/APACHE/_global_error.log"
LogLevel warn

DefaultType text/plain

<Directory "{blabla}/_cgi-bin">
  Options FollowSymLinks ExecCGI
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

<Directory "{blabla}/AWStats/{blabla}">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Alias /awstatsclasses "{blabla}/classes/"
Alias /awstatscss "{blabla}css/"
Alias /awstatsicons "{blabla}/icon/"
ScriptAlias /awstats/ "{blabla}/cgi-bin/"

<IfModule dir_module>
  DirectoryIndex portal.php index.html index.htm index.php index.php3
</IfModule>

<IfModule log_config_module>
#  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
#  LogFormat "%h %l %u %t \"%r\" %>s %b" combined
  CustomLog "{blabla}/APACHE/_global_access.log" combined

  <IfModule logio_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  </IfModule>
</IfModule>

<IfModule alias_module>
  ScriptAlias /cgi-bin/ "{blabla}/_cgi-bin/"
</IfModule>

<IfModule mime_module>
  TypesConfig "conf/mime.types"

#--->     AddType directives     <---#
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php .php3
  AddType application/x-httpd-php .php4
  AddType application/x-httpd-php .php5
  AddType application/x-gzip .tgz
  AddType application/x-compress .Z
  AddType application/x-gzip .gz .tgz
  AddType text/html .shtml

  AddEncoding x-compress .Z
  AddEncoding x-gzip .gz .tgz
  AddHandler cgi-script .cgi
  AddHandler cgi-script .pl
  AddHandler cgi-script .perl
  AddHandler type-map var
  # AddOutputFilter INCLUDES .shtml
</IfModule>

Include "conf/default.conf"
Include "conf/vhosts.conf"
# Include "conf/mpm.conf"
Include "conf/multilang-errordoc.conf"
# Include "conf/autoindex.conf"
Include "conf/languages.conf"
# Include "conf/userdir.conf"
# Include "conf/info.conf"
# Include "conf/manual.conf"
# Include "conf/dav.conf"
# Include "conf/ssl.conf"

<IfModule ssl_module>
  SSLRandomSeed startup builtin
  SSLRandomSeed connect builtin
</IfModule>


Und hier ein Ausschnitt aus der vhosts.conf (sind alle rund 50 vhosts so aufgebaut und funktionsfähig):

Code: Select all
<VirtualHost *:80>
  ServerName t01.{blabla}.de
  DocumentRoot {blabla}/test_01
  ServerAdmin admin@{blabla}.de
  ErrorLog "{blabla}/APACHE/t01_error.log"
  CustomLog "{blabla}/APACHE/t01_access.log" combined
  ServerAlias www.t01.{blabla}.de
</VirtualHost>


Wie gesagt: Zugriff und korrekte Aufrufe sind alle da. die (i.d.R.) index.php wird korrekt aufgerufen und mit code 200 auch im accesslog bestätigt. Nur der gelieferte Body ist halt leer...
M*I*B
 

Postby Scory » 25. November 2007 15:40

Da sehe ich jetzts nicht auffälliges.

Was ist denn mit HTML Dateien - kommen die an? Was ist mit einer simplen Testdatei, wo nur phpinfo() drin steht:

Code: Select all
<?php
phpinfo();
?>


Ist es vielleicht ein PHP Problem?

Grüße
Scory
Scory
 

Postby M*I*B » 25. November 2007 16:18

... also PHPinfo und solche Sachen tun alle *SchulterZuck*
M*I*B
 

Postby Scory » 25. November 2007 16:40

M*I*B wrote:... also PHPinfo und solche Sachen tun alle *SchulterZuck*


Was im Klartext heißt, dass in diesem index.php (was auch immer da passieren soll) etwas schief läuft. Mußt Du ein bißchen debuggen (einfach mit echos im Quelltext).

Grüße
Scory

P.S.: Und schau auch, ob evlt. eine .htaccess nicht böse reinpfuscht.
Scory
 


Return to Apache

Who is online

Users browsing this forum: No registered users and 17 guests