Was ist an der Apache Config Falsch

Apache, Lighttpd, nginx, Cherokee
Post Reply
phemy
Posts: 15
Joined: 2003-08-25 22:50
 

Was ist an der Apache Config Falsch

Post by phemy »

Ich habe mich jetzt hier durch jede Thease gelesen alles was man am Apache einstellen kann gemacht und jetzt geht php nicht mehr :( er zeigt es als txt datei an.

Distributionen Debian
Die error datei zeigt auch keinen Fehler an.

Code: Select all

#--+-=oOo===== Section 1: Global Environment =============oOo=-+-

	ServerType standalone
	ServerRoot "/etc/apache"
	ServerAdmin bubu@team-ad.de
	ServerName 192.168.250.10
	PidFile /var/run/apache.pid
	ScoreBoardFile /var/run/apache.scoreboard
	LockFile /var/lock/apache.lock
	Timeout 300
	KeepAlive On
	MaxKeepAliveRequests 100
	KeepAliveTimeout 15
	MaxClients 350 
	StartServers 10 
	MinSpareServers 50 
	MaxSpareServers 300 
	MaxRequestsPerChild 8000 
	ThreadsPerChild 50
	ServerSignature On
	HostnameLookups Off

#--+-=oOo===== Section 1.1: IP und Port addressen ========oOo=-+-

	<IfModule mod_ssl.c> 
	Listen 80 
	Listen 443 
	</IfModule>

	Port 80
	Listen 192.168.250.10
	Listen 192.168.250.10:80
 	BindAddress 192.168.250.10
	
	User www-data
	Group www-data

#--+-=oOo===== Section 1.2: Module =======================oOo=-+-

	LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
	LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
	LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
	LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
	LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
	LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
	LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
	LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
	LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
	LoadModule ssl_module /usr/lib/apache/1.3/mod_ssl.so 
	LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
	LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
	LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
	LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
	LoadModule speling_module /usr/lib/apache/1.3/mod_speling.so
	LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
	LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
	LoadModule access_module /usr/lib/apache/1.3/mod_access.so
	LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
	LoadModule bandwidth_module /usr/lib/apache/1.3/mod_bandwidth.so
	LoadModule sqlinclude_module /usr/lib/apache/1.3/mod_sqlinclude.so
	LoadModule gzip_module /usr/lib/apache/1.3/mod_gzip.so

#--+-=oOo===== Section 1.3: Schriftarten & Sprachen ======oOo=-+-

	AddCharset ISO-8859-1  .iso8859-1 .latin1
	AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
	AddCharset ISO-8859-3  .iso8859-3 .latin3
	AddCharset ISO-8859-4  .iso8859-4 .latin4
	AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
	AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
	AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
	AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
	AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
	AddCharset ISO-2022-JP .iso2022-jp .jis
	AddCharset ISO-2022-KR .iso2022-kr .kis
	AddCharset ISO-2022-CN .iso2022-cn .cis
	AddCharset Big5        .Big5       .big5
	AddCharset WINDOWS-1251 .cp-1251   .win-1251
	AddCharset CP866       .cp866
	AddCharset KOI8-r      .koi8-r .koi8-ru
	AddCharset KOI8-ru     .koi8-uk .ua
	AddCharset ISO-10646-UCS-2 .ucs2
	AddCharset ISO-10646-UCS-4 .ucs4
	AddCharset UTF-8       .utf8
	AddCharset GB2312      .gb2312 .gb 
	AddCharset utf-7       .utf7
	AddCharset utf-8       .utf8
	AddCharset big5        .big5 .b5
	AddCharset EUC-TW      .euc-tw
	AddCharset EUC-JP      .euc-jp
	AddCharset EUC-KR      .euc-kr
	AddCharset shift_jis   .sjis
	AddDefaultCharset on

#--+-=oOo===== Section 1.4: Ordnerrechte ================oOo=-+-

	ExtendedStatus On
	DocumentRoot /var/www
	<Directory />
    	    Options FollowSymLinks
    	    AllowOverride all
	</Directory>

	<Directory /var/www/>
	    Options -Indexes -FollowSymLinks MultiViews
	    AllowOverride all
	    Order allow,deny
	    Allow from all
	</Directory>

	<IfModule mod_dir.c>
	DirectoryIndex index.html index.htm index.php index.php3
	</IfModule>

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

	UseCanonicalName On

	<IfModule mod_mime.c>
	    TypesConfig /etc/mime.types
	</IfModule>

	DefaultType text/plain

	<IfModule mod_mime_magic.c>
    	    MIMEMagicFile /usr/share/misc/magic.mime
	</IfModule>

#--+-=oOo===== Section 2: Aliases&Modul zuweissungen ===oOo=-+-

<IfModule mod_alias.c>

    Alias /icons/ /usr/share/apache/icons/
    <Directory /usr/share/apache/icons>
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

</IfModule>


<IfModule mod_bandwidth.c>
	BandWidthModule On 
</IfModule>

<IfModule mod_autoindex.c>
   	IndexOptions FancyIndexing NameWidth=*
    	AddDescription "GZIP compressed document" .gz
   	AddDescription "tar archive" .tar
   	AddDescription "GZIP compressed tar archive" .tgz
    	ReadmeName README
    	HeaderName HEADER
    	IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>

<IfModule mod_mime.c>
    	AddEncoding x-compress Z
    	AddEncoding x-gzip gz tgz
    	AddLanguage en .en
    	AddLanguage de .de

<IfModule mod_negotiation.c>
       	 LanguagePriority en de
</IfModule>

    	AddType application/x-tar .tgz
	AddType application/x-httpd-php .php
	AddType application/x-httpd-php-source .phps
	AddType image/bmp .bmp
	AddType text/x-hdml .hdml
   	AddType text/html .shtml
	AddType text/vnd.wap.wml .wml 
	AddType image/vnd.wap.wbmp .wbmp 
	AddType application/vnd.wap.wmlc .wmlc 
	AddType text/vnd.wap.wmlscript .wmls 
	AddType application/vnd.wap.wmlscriptc .wmlsc 
	AddType text/html .shtml 
	AddHandler server-parsed .shtml 
	AddType text/x-server-parsed-html .shtml
	AddType text/html .shtm 
	AddHandler server-parsed .shtm
	AddType text/x-server-parsed-html .shtm

</IfModule>

<IfModule mod_gzip.c> 
	mod_gzip_on Yes 
	mod_gzip_minimum_file_size 300 
	mod_gzip_maximum_file_size 0 
	mod_gzip_maximum_inmem_size 100000 
	mod_gzip_item_include file .htm$ 
	mod_gzip_item_include file .html$ 
	mod_gzip_item_include file .shtml$ 
	mod_gzip_item_include file .shtm$ 
	mod_gzip_item_include file .jsp$ 
	mod_gzip_item_include file .php$ 
	mod_gzip_item_include file .pl$ 
	mod_gzip_item_include file .cgi$ 
	mod_gzip_item_include mime text/.* 
	mod_gzip_item_include mime ^application/x-httpd-php 
	mod_gzip_item_include mime httpd/unix-directory 
	mod_gzip_item_include handler ^perl-script$ 
	mod_gzip_item_include handler ^server-status$ 
	mod_gzip_item_include handler ^server-info$ 
	mod_gzip_item_exclude file .css$ 
	mod_gzip_item_exclude file .js$ 
	mod_gzip_item_exclude mime ^image/.* 
	mod_gzip_item_exclude file authorizationRequired.html 
	mod_gzip_item_exclude file fileNotFound.html 
	mod_gzip_item_exclude file internalServerError.html 
	mod_gzip_item_exclude file forbidden.html 
	mod_gzip_dechunk yes 
	mod_gzip_temp_dir /tmp 
	mod_gzip_keep_workfiles No 
	mod_gzip_can_negotiate yes 
</IfModule> 

</IfModule> 

<IfModule mod_spelling.c> 
	CheckSpelling On
</IfModule> 

<IfModule mod_throttle.c>
	ThrottlePolicy none
	<Location /throttle-status>
	SetHandler throttle-status
	</Location>
	ThrottleRuntimeFile /etc/apache/modthrottle 
</IfModule>

#--+-=oOo===== Section 2.1: Browser erkennung ============oOo=-+-

<IfModule mod_setenvif.c>
    	BrowserMatch "Mozilla/2" nokeepalive
	BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
	BrowserMatch "RealPlayer 4.0" force-response-1.0
	BrowserMatch "Java/1.0" force-response-1.0
	BrowserMatch "JDK/1.0" force-response-1.0
	BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
	BrowserMatch "^WebDrive" redirect-carefully
</IfModule>

#--+-=oOo===== Section 3: VirtualHosts & Ip addressen ===oOo=-+-

NameVirtualHost 192.168.250.10

<VirtualHost 192.168.250.10> 
	ServerName 192.168.250.10 
	ServerAlias 192.168.250.10 
	DocumentRoot /var/www/   
	php_admin_value open_basedir /var/www/ 
	php_admin_value upload_tmp_dir /var/www/phptmp 

<IfModule mod_bandwidth.c> 
<Directory /var/www/> 
	BandWidth all 65536 
</Directory> 
</IfModule> 

</VirtualHost> 

#--+-=oOo===== Section 4: Error´s ========================oOo=-+-

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
        <Directory "/etc/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
       </Directory>
  	Alias /error/ "/etc/www/error"

	ErrorLog /var/log/apache/error.log
	LogLevel warn
	LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %T %v" full
	LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %P %T" debug
	LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
	LogFormat "%h %l %u %t "%r" %>s %b" common
	LogFormat "%{Referer}i -> %U" referer
	LogFormat "%{User-agent}i" agent
	TransferLog "|rotatelogs /var/log/apache/access.log 86400"

    	ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    	ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    	ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    	ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    	ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    	ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    	ErrorDocument 410 /error/HTTP_GONE.html.var
    	ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    	ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    	ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    	ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    	ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    	ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    	ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    	ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    	ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    	ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>


#--+-=oOo===== ENDE ======================================oOo=-+-
redhorse
Posts: 9
Joined: 2003-10-20 00:01
 

Re: Was ist an der Apache Config Falsch

Post by redhorse »

hast du den apache selbst kompiliert oder die deb binaries genommen?

wenn selbst kompiliert:
hast du php wirklich als module installiert, hast du apx installiert?
jtb
Posts: 599
Joined: 2002-08-18 16:41
Location: Darmstadt
Contact:
 

Re: Was ist an der Apache Config Falsch

Post by jtb »

was steht im Error_log, was bei apachectl configtest?
phemy
Posts: 15
Joined: 2003-08-25 22:50
 

Re: Was ist an der Apache Config Falsch

Post by phemy »

Ich habe die ded von debian genommen.
und in den error logs steht kein fehler auch beim config test.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Was ist an der Apache Config Falsch

Post by Joe User »

die von Dir gepostete httpd.conf weist einige Fehler (überflüssiges </IfModule>, ungültige Werte für Direktiven, etc...) auf, welche Du zuerst beheben solltest, bevor wir hier wiedereinmal im Nebel stochern...
phemy
Posts: 15
Joined: 2003-08-25 22:50
 

Re: Was ist an der Apache Config Falsch

Post by phemy »

hab den fehler schon gefunden.

Und es sind keine module überflüssig alle werden irgentwo gebraucht.
es ist nicht die ganze Config deswegen seht ihr auch nicht wo die anderen module zum einsatz kommen.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Was ist an der Apache Config Falsch

Post by Joe User »

dennoch enthält Deine httpd.conf Fehler ala AddDefaultCharset on...
phemy
Posts: 15
Joined: 2003-08-25 22:50
 

Re: Was ist an der Apache Config Falsch

Post by phemy »

das steht schon lange nicht mehr drin.
und auch andere sachen habe ich raus genommen.
ach ja und es ist der apache 1 und nicht 2.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Was ist an der Apache Config Falsch

Post by Joe User »

Phemy wrote:das steht schon lange nicht mehr drin.
Fein.
Phemy wrote:ach ja und es ist der apache 1 und nicht 2.
Das ist in diesem Fall Wurscht ;)
Post Reply