PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache+php



dirk16
16.06.02, 19:19
Ich habe mir SuSE 8.0 installiert und bekomme den Apache-Server nicht zum laufen.Es erscheint in der error_log folgenden Meldung:

PHP Fatal error:Unable to start session mm module in Unknown on line 0

Wenn ich über Webmin den Apache starte erscheint folgende Meldung:

Starting httpd [ PERL PHP4 Python ZopeKeepHomes ]stty: standard input: Invalid argument
..failed

Ich habe keine Ahnung was mm module sein soll. Bei SuSE in der Support-Datenbank habe ich auch nichts gefunfen. Vielleicht kann mir hier jemand weiterhelfen.

CU Dirk

stefaan
16.06.02, 19:34
Servus!

Apache-rpm und PHP-rpm raus und nach http://www.baach.de installieren. :D

Grüße, Stefan

dirk16
16.06.02, 21:14
Danke für Deine Antwort Stefaan.

Nur hatte ich nicht vor die Sachen wieder zu entfernen, da ich ja eigentlich davon ausgehe, dass eine neue Installation der Distri doch eigentlich auch sauber compiliert wird. Es kann doch nicht sein, dass SuSE eine nicht gelungene Distri verkauft / ins Netz setzt und man hinterher seine Komponenten wieder entfernen und danach nochmals neu einspielen kann. Oder wie soll ich dass jetzt verstehen.

Gibt es denn keine andere Lösung???

Danke nochmals.

Dirk

piet
16.06.02, 22:24
Hi Dirk,

ich habe auch Probleme gehabt Apache und PHP zum laufen zu kriegen. Ich habe beide Pakete deinstalliert und dann zuerst den Apache und danach PHP einzeln hintereinander mit Yast installiert. Wahrscheinlich gibts da doch kleine Macken wenn man es zugleich draufspielt.

Wie ich sehe hast du Perl, Python und ZopeKeepHomes (<-- kenn ich leider nicht) auch drauf gemacht. Die Pakete solltest du natürlich vorher auch deinstallieren.

grüsse,
piet

dirk16
17.06.02, 16:22
Hallo Piet,

Danke für die Antwort. Ich werde es mal probieren und dann hier wieder kund tun, wie es gelaufen ist.

CU Dirk

dirk16
17.06.02, 18:53
Also ich habe jetzt beides deinstalliert und danach zunächst den Apache installiert. Den habe ich dann gestartet und er lief, obwohl über Webmin die gleiche Fehlermeldung kam, wie schon vorher jedoch ohne [PHP]. Im error_log stand zumindest keine Fehlermeldung mehr, welche vorher mit installiertem PHP da stand. Aber er lief mal soweit, dass man die SuSE-Startseite sehen konnte.
Danach habe ich nun PHP installiert und der Apache läuft jetzt nicht mehr. Gleiche Fehlermeldung wie vorher über Webmin (diesmal wieder mit [PHP]) und nun auch wieder im error_log.
Also was kann ich nun noch tun.

Was bedeutet denn 'stty: standard input: Invalid argument' in der Webmin-Fehlermeldung beim Start vom Apache.

Für Anregungen wäre ich sehr dankbar.

CU Dirk

dirk16
19.06.02, 18:45
Hallo nochmals,

ich wollte nur nochmals wissen, ob jemand evtl. neue Erkenntnisse hat, was z.B. diese Fehlermeldungen bedeuten. Ich jedenfalls bin bis jetzt nicht weiter gekommen mit meinem Problem.

CU Dirk

quinte17
20.06.02, 08:00
kann sein dass du eine falsche config file hast...
wie wäre es wenn du einfach mal bei suse vorbeischaust und dir evtl ein neueres paket herunterlädst? (sollte nun draußen sein da ja neuer apache rauskam mit security fix)

cu ;)

dirk16
20.06.02, 17:10
dies mit dem Update hat nichts gebracht. Habe weiterhin eine Fehlermeldung:

Führe /etc/init.d/apache start aus ...

Starting httpd [ Midgard PERL PHP4 ]

PHP Fatal error: Unable to start session mm module in Unknown on line 0
..failed

wobei ich nach dem Deinstallieren und wieder neu installieren nun komischerweise dieses [ Midgard ] noch zusätzlich mit beim starten habe, weis nicht was das ist und woher das kommt.

Dirk

dirk16
20.06.02, 18:43
Ich habe mich mal so durch einige Dateien gewühlt. In der /etc/init.d/apache steht da irgend wo folgendes:

if stty -a | grep -q -- -echo\ ; then
# this means that apache was still waiting for a passphrase to be entered
stty echo
echo;echo
echo An SSL passphrase has not been entered within ${HTTPD_START_TIMEOUT:-<not set>} seconds.
echo To increase this timeout, adjust HTTPD_START_TIMEOUT in /etc/sysconfig/apache .
# this surely means that apache won't start, despite it looked good to startproc
rc_failed 1
rc_status -v1
rc_exit
else
rc_failed $ret
rc_status -v
fi

kann da irgend wo ein Fehler drin sein ??? Ich kenne mich leider nicht ganz so aus mit der Syntax.

CU Dirk

dirk16
22.06.02, 12:19
Also ich bin wieder ein wenig weiter gekommen.
Ohne installiertem PHP4 bzw. mod_php läuft der Apache. Er bringt mir jedoch immernoch die Fehlermeldung "starting httpd [ PERL ] stty: standard input: Invalid argument" wenn ich ihn über Webmin starte.

Midgard ist übrigens jetzt auch deinstalliert.

Ich habe mal in diversen News-Foren gestöbert und festgestellt, dass dieses Problem bei anderen auch aufgetreten ist (SuSE 8.0 Apache+PHP4) hat denn irgenwer nunschon mal eine normale SuSE 8.0-Installation mit Apache+PHP4 hinbekommen?
Ich habe nach der Installation keine Veränderungen in den diversen Config-Files vorgenommen, da ich davon augegangen bin, dass die soweit bei der Erstinstallation stimmen sollten.

Cu Dirk

dunervst
22.06.02, 12:32
Den Fehler hatte ich auch, ich bin hingegangen und habe in der httpd.conf die Zeile ind der er das mm Modul laden will einfach mit einer # rausgenómmen und alles läuft einwandfrei.

pitu
22.06.02, 15:35
Der Fehler ist ein Bug in php, es wird auch in den PHP-Mailinglisten dikutiert. Wie der derzeitige stand ist, weiss ich nicht. Betroffen sind eigentlich fast alle Distributionen.

PHP wurde irgenwie mit einer option --enable-mm oder so compiliert.

@dunervst.
In der httpd.conf? ich habe ein solche modul leider nicht ...

pitu

dirk16
22.06.02, 15:49
also ich kann in meiner httpd.conf keinen Eintrag finden, indem ein Modul names mm_modul geladen wird. Habe zwr mal diese mmap_static Modul auskommentiert ---> hat jedoch nichts gebracht.
Ich poste mal hier meine httpd.conf, vielleicht findet da jemand einen Ansatzpunkt.


ServerType standalone


ServerRoot "/usr/local/httpd"


LockFile /var/lock/subsys/httpd/httpd.accept.lock


PidFile /var/run/httpd.pid

ScoreBoardFile /var/run/httpd.scoreboard

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

MinSpareServers 1
MaxSpareServers 1

StartServers 1

MaxClients 150

#Listen 3000
#Listen 12.34.56.78:80

#BindAddress *

LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so
LoadModule vhost_alias_module /usr/lib/apache/mod_vhost_alias.so
LoadModule env_module /usr/lib/apache/mod_env.so
LoadModule define_module /usr/lib/apache/mod_define.so
LoadModule config_log_module /usr/lib/apache/mod_log_config.so
LoadModule agent_log_module /usr/lib/apache/mod_log_agent.so
LoadModule referer_log_module /usr/lib/apache/mod_log_referer.so
LoadModule mime_magic_module /usr/lib/apache/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/mod_negotiation.so
LoadModule status_module /usr/lib/apache/mod_status.so
LoadModule info_module /usr/lib/apache/mod_info.so
LoadModule includes_module /usr/lib/apache/mod_include.so
LoadModule autoindex_module /usr/lib/apache/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/mod_dir.so
LoadModule cgi_module /usr/lib/apache/mod_cgi.so
LoadModule asis_module /usr/lib/apache/mod_asis.so
LoadModule imap_module /usr/lib/apache/mod_imap.so
LoadModule action_module /usr/lib/apache/mod_actions.so
LoadModule speling_module /usr/lib/apache/mod_speling.so
# mod_userdir will be included below by SuSEconfig if HTTPD_SEC_PUBLIC_HTML=yes
LoadModule alias_module /usr/lib/apache/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/mod_rewrite.so
LoadModule access_module /usr/lib/apache/mod_access.so
LoadModule auth_module /usr/lib/apache/mod_auth.so
LoadModule anon_auth_module /usr/lib/apache/mod_auth_anon.so
LoadModule dbm_auth_module /usr/lib/apache/mod_auth_dbm.so
LoadModule db_auth_module /usr/lib/apache/mod_auth_db.so
LoadModule digest_module /usr/lib/apache/mod_digest.so
LoadModule proxy_module /usr/lib/apache/libproxy.so
LoadModule cern_meta_module /usr/lib/apache/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/mod_expires.so
LoadModule headers_module /usr/lib/apache/mod_headers.so
LoadModule usertrack_module /usr/lib/apache/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/mod_setenvif.so
<IfDefine DUMMYSSL>
LoadModule ssl_module /usr/lib/apache/libssl.so
</IfDefine>

Include /etc/httpd/suse_loadmodule.conf


HTTPD_SEC_PUBLIC_HTML=yes
<IfDefine DUMMYSSL>
AddModule mod_ssl.c
</IfDefine>

Include /etc/httpd/suse_addmodule.conf

ExtendedStatus on

<IfModule mod_dav.c>
DavLockDB /var/lock/DAVLock
</IfModule>

<IfModule mod_include.c>
XBitHack on
</IfModule>

Port 80

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

User wwwrun
Group nogroup

ServerAdmin root@homeserver.de

ServerName homeserver.de

DocumentRoot "/usr/local/httpd/htdocs"

<Directory />
AuthUserFile /etc/httpd/passwd
AuthGroupFile /etc/httpd/group

Options -FollowSymLinks +Multiviews
AllowOverride None

</Directory>

<Directory "/usr/local/httpd/htdocs">

Order allow,deny
Allow from all


<IfModule mod_dav.c>
DAV Off
</IfModule>

<Files /usr/local/httpd/htdocs/index.htm*>
Options -FollowSymLinks +Includes +MultiViews
</Files>

<Files test.php3>
Order deny,allow
deny from all
allow from localhost
</Files>

</Directory>

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

AccessFileName .htaccess

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

UseCanonicalName On

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

DefaultType text/plain

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

HostnameLookups Off


<IfModule mod_backhand.c>

UnixSocketDir /var/lib/backhand
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>

ErrorLog /var/log/httpd/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

CustomLog /var/log/httpd/access_log common

ServerSignature On

<IfModule mod_alias.c>

Alias /icons/ "/usr/local/httpd/icons/"

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

Alias /manual/ "/usr/local/httpd/htdocs/manual/"

<Directory "/usr/local/httpd/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/"

<IfModule mod_perl.c>
ScriptAlias /perl/ "/usr/local/httpd/cgi-bin/"
ScriptAlias /cgi-perl/ "/usr/local/httpd/cgi-bin/"
</IfModule>
<Directory "/usr/local/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</IfModule>

<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>

<IfModule mod_perl.c>
Perlrequire /usr/include/apache/modules/perl/startup.perl
PerlModule Apache::Registry

<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>

<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options ExecCGI
PerlSendHeader On
</Location>

</IfModule>

<IfModule mod_autoindex.c>

IndexOptions FancyIndexing

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


AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz

ReadmeName README
HeaderName HEADER

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

</IfModule>

<IfModule mod_mime.c>

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8

<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>

AddType application/x-tar .tgz

<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml
</IfModule>


<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>

<IfModule mod_dtcl.c>
AddType application/x-httpd-tcl .ttml
AddType application/x-dtcl-tcl .tcl
</IfModule>

AddType text/vnd.wap.wml wml
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
Addtype image/vnd.wap.wbmp wbmp
AddHandler cgi-script .cgi
AddType text/html .shtml
AddHandler server-parsed .shtml

</IfModule>

<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

</IfModule>

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

<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from localhost
</Location>


<IfModule mod_perl.c>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from localhost
</Location>
</IfModule>
</IfDefine>

<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>

<IfModule mod_ssl.c>

SSLPassPhraseDialog builtin

SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300

SSLMutex file:/var/run/ssl_mutex

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

SSLLog /var/log/httpd/ssl_engine_log
SSLLogLevel info

</IfModule>

<IfDefine SSL>

<VirtualHost _default_:443>

DocumentRoot "/usr/local/httpd/htdocs"
ServerName new.host.name
ServerAdmin you@your.address
ErrorLog /var/log/httpd/error_log
TransferLog /var/log/httpd/access_log

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP:+eNULL

SSLCertificateFile /etc/httpd/ssl.crt/server.crt

SSLCertificateKeyFile /etc/httpd/ssl.key/server.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/httpd/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

CustomLog /var/log/httpd/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

</IfDefine>

Include /etc/httpd/suse_include.conf

# ----------------------------------------------------------------

cu Dirk

Guru
25.06.02, 18:23
ich habe exakt das gleiche problem ... auch bei mir läuft SuSE 8.0 und sobald ich versuche Apache zusammen mit PHP4 laufen zu lassen taucht dieser "mm-Fehler" in der log auf ... ohne PHP4 Modul läuft der Apache einwandfrei !

Brauche dringend hilfe ! :)

Guru

Guru
26.06.02, 12:08
gibt es denn schon irgendeinen Lösungsansatz zu diesem Problem ?
Vielleicht eine neuere PHP-Version mit der das Problem behoben ist ?

Guru

dirk16
01.07.02, 19:03
Also Leute ich habs jetzt irgendwie geschaft den Apache mit PHP 4 unter SuSE 8.0 zum laufen zu bringen.

Ich habe mir von SuSE aus dem Update-Verzeichnis der Version 7.3 das RPM-Paket mod_php4-4.0.6-160.i386.rpm geholt und dann in der Console per "rpm -Uhv --force --nodeps mod_php4-4.0.6-160.i386.rpm" über das vorhandene installiert.
Es kam zwar eine Fehlermeldung, jedoch läuft jetzt der Apache mit PHP 4.0.6.

CU Dirk

pitu
04.07.02, 07:40
Problem bei der 8.0 ist das mm-modul der ftp-Version.

Oder anders, nur Leute, die die Version vom Netz gezogen haben haben das problem.

Mittlerweile gibt es ein update auf dem ftp-server.

vgl auch:
http://www.linuxforen.de/forums/showthread.php?s=&threadid=35826&pagenumber=2

pitu

dirk16
04.07.02, 16:29
Hi pitu,

ich habe dies mit dem mm Modul später nachdem ich es mit mod_php probiert hatte auch gelesen und nun auch upgedatet. Trotzdem vielen Dank.

CU Dirk