Nach Update auf Apache 2.0.46 --> httpd2-worker

Apache, Lighttpd, nginx, Cherokee
Post Reply
stevil
Posts: 14
Joined: 2002-10-23 21:18
 

Nach Update auf Apache 2.0.46 --> httpd2-worker

Post by stevil »

hab meinen rootie frisch initialisieren lassen, nun hab ich suse 8.1
alle alten RPM packete runtergeschmissen und nur mit suse RPMs gearbeitet...soweit hab ich alle packete problemlos installiert bekommen:

- Apache 2.0.46
- MySQL 4.0.13
- PHP 4.3.1

ich arbeite mit webmin 1.10

nun wollt ich den apache starten, da kam folgende meldung:
Fehler beim Starten von Apache :
Starting httpd2 (worker) Syntax error on line 5 of /etc/httpd/confixx_vhost.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration

The command line was:
/usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf

..failed
ich denke mir das hat was mit PHP zu tun, sicher bin ich mir allerdings nicht.
den apache starte ich über :
/usr/sbin/httpd2-prefork
ansonsten gab es probleme mit einem Threadsafe, MPM irgendwas, das mein neues PHP nicht mit dem apache arbeitenwürde.


was habe ich falsch gemacht, bzw wer kann mir helfen das PHP und Apache2 zusammen laufen? danke!!
hbaes
Posts: 70
Joined: 2002-10-08 21:04
 

Re: Nach Update auf Apache 2.0.46 --> httpd2-worker

Post by hbaes »

kannste bitte mal dein httpd.conf (ohne Kommentare) posten ?
stevil
Posts: 14
Joined: 2002-10-23 21:18
 

Re: Nach Update auf Apache 2.0.46 --> httpd2-worker

Post by stevil »

gerne
ach ja nochwas...mir ist aufgefallen, das ich die includeten dateien nicht verändern kann...wenn ich zB in der suse_loadmodule.conf die LoadModule Anweisung für php reinschreiben will, wird sie nach der fehlermeldung genau die zeile wieder gelöscht :(

ServerRoot "/srv/www"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
#LockFile /var/log/apache2/accept.lock
</IfModule>
</IfModule>

#

<IfModule !mpm_netware.c>
<IfModule !perchild.c>
#ScoreBoardFile /var/log/apache2/apache_runtime_status
</IfModule>
</IfModule>

<IfModule !mpm_netware.c>
PidFile /var/run/httpd2.pid
</IfModule>

TimeOut 300
KeepAlive on


MaxKeepAliveRequests 100


KeepAliveTimeout 15

<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>

# worker MPM
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

# perchild MPM
<IfModule perchild.c>
AcceptMutex fcntl
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>

# WinNT MPM
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>

# BeOS MPM
<IfModule beos.c>
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
</IfModule>

# NetWare MPM
<IfModule mpm_netware.c>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
</IfModule>

# OS/2 MPM
<IfModule mpmt_os2.c>
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
#34.56.78:80
Listen *:80

#
# Dynamic Shared Object (DSO) Support
Include /etc/apache2/suse_loadmodule.conf

# Then we set some other options according to the settings in /etc/sysconfig/apache2.
#Include /etc/apache2/suse_misc.conf


#
# ExtendedStatus controls whether Apache will generate "full" status
#ExtendedStatus On

### Section 2: 'Main' server configuration
#

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
#

User wwwrun
Group nogroup
</IfModule>
</IfModule>

ServerAdmin x@xxx.de

#ServerName new.host.name:80

UseCanonicalName Off

DocumentRoot "/srv/www/htdocs"


<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/srv/www/htdocs">

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory>



<IfModule mod_userdir.c>


UserDir public_html

<Directory /home/*/public_html>

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>

<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>

</Directory>

</IfModule>

DirectoryIndex index.html index.html.var index.htm index.php

AccessFileName .htaccess

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

TypesConfig /etc/apache2/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile /etc/apache2/magic
</IfModule>

HostnameLookups Off

#EnableMMAP off

#EnableSendfile off

ErrorLog /var/log/apache2/error_log

LogLevel warn

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

# You need to enable mod_logio.c to use %I and %O
#LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio

CustomLog /var/log/apache2/access_log common

#CustomLog /var/log/apache2/access_log combined

ServerTokens OS

ServerSignature On

Alias /icons/ "/usr/share/apache2/icons/"

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

Alias /manual "/usr/share/apache2/manual"

<Directory "/usr/share/apache2/manual">
Options Indexes FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

<IfModule mod_cgid.c>
#Scriptsock /var/run/cgisock
</IfModule>

<Directory "/srv/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>


IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html


IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz


DefaultLanguage de


AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage he .he
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cs .cz .cs
AddLanguage ru .ru
AddLanguage zh-TW .zh-tw
AddLanguage hr .hr

LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw

ForceLanguagePriority Prefer Fallback



AddDefaultCharset ISO-8859-1

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
# For russian, more than one charset is used (depends on client, mostly):
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

AddType application/x-tar .tgz
AddType image/x-icon .ico

AddHandler type-map var


Alias /error/ "/usr/share/apache2/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/usr/share/apache2/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en cs de es fr it nl sv pt-br ro
ForceLanguagePriority Prefer Fallback
</Directory>

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_UNSUPPORTED_MEDIA_TYPE.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>


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
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully

<IfDefine STATUS>
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
</IfModule>
</IfDefine>

<IfDefine INFO>
<IfModule mod_info.c>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from localhost
</Location>
</IfModule>
</IfDefine>


#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
# Order deny,allow
# Deny from all
# Allow from .example.com
#</Proxy>


# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On




#</IfModule>

<IfModule mod_ssl.c>
Include /etc/apache2/ssl.conf
</IfModule>

#
# Use name-based virtual hosting.
#
#NameVirtualHost *


#
# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM package to drop in their
# configuration snippet.
#
Include /etc/apache2/conf.d/*.conf


#Include /etc/apache2/suse_include.conf

## CONFIXX
<Directory "/home/www/confixx/html">
AllowOverride all
</Directory>

Include /etc/httpd/confixx_vhost.conf
# ^- Dieser Eintrag sollte unbedingt am Ende der Datei bleiben
# besser nicht ganz ans Ende, sonst funktioniert der 'gesperrt'-VHost nicht!

<VirtualHost 217.160.140.227:80>
ServerName confixx.p15106952.pureserver.info

# Server nur ueber HTTPS konfigurieren:
# RedirectPermanent / https://confixx.p15106952.pureserver.info/
# /reg/-URLs gehen damit nicht

CustomLog /var/log/httpd/p15106952.pureserver.info_access.log "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i""
ErrorLog /var/log/httpd/p15106952.pureserver.info_error.log
#User confixx
#Group users
DocumentRoot /home/www/confixx/html
php_admin_value safe_mode_exec_dir /home/www/confixx/bin
php_admin_value upload_tmp_dir /home/www/confixx/tmp
ScriptAlias /cgi-bin/ /home/www/confixx/html/cgi-bin/
</VirtualHost>
Last edited by stevil on 2003-07-15 16:44, edited 1 time in total.
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: Nach Update auf Apache 2.0.46 --> httpd2-worker

Post by sascha »

Stevil: welchen Teil von
kannste bitte mal dein httpd.conf (ohne Kommentare) posten ?
hast du nicht verstanden? :evil:
stevil
Posts: 14
Joined: 2002-10-23 21:18
 

Re: Nach Update auf Apache 2.0.46 --> httpd2-worker

Post by stevil »

narf...falsches copy&paste gemacht, sorry, is ohne kommentare nun...
Post Reply