Pagina 1 di 1

Problema Re-launch process [apache]

Inviato: 24 gen 2012, 14:40
da kykkus
Salve io ho un problema con apache...
Cioè ho creato un webserver e almeno una volta a settimana (se non di più) non riesco ad accedere al web server, mi arrivano 2 e-mail ogni minuto con scritto:

Codice: Seleziona tutto

Level:  Warning
 Re-launch process [apache].
Allora vado con un client SCP e vado in /etc/config/apache/apache.conf e guardo il file, dentro è fatto così:

Codice: Seleziona tutto

User httpdusr
Group everyone

Include /etc/config/apache/extra/apache-msv2.conf

Include /etc/config/apache/extra/apache-musicstation.conf

Include /etc/config/apache/extra/apache-photo.conf
Mentre il file di backup in /etc/default_config/apache.conf è fatto così:

Codice: Seleziona tutto

#ServerType standalone
ServerRoot "/usr/local/apache"
#LockFile /usr/local/apache/logs/apache.lock
#PidFile /usr/local/apache/logs/apache.pid
#ScoreBoardFile /usr/local/apache/logs/apache.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
LoadModule php5_module modules/libphp5.so
Listen **
User *****
Group *****
ServerAdmin ***@***
#ServerName NAS
TraceEnable off
ServerTokens Prod
DocumentRoot "/share/Qweb"
<Directory />
	Options FollowSymLinks
	AllowOverride None
	Order deny,allow
	Deny from all
</Directory>
<Directory "/share/Qweb">
	Options FollowSymLinks MultiViews
	AllowOverride All
	Order allow,deny
	Allow from all
</Directory>

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

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

UseCanonicalName Off
HostnameLookups Off

<Directory "/usr/local/apache/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

DefaultType text/plain

ErrorLog logs/error_log
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<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" common
		LogFormat "%{Referer}i -> %U" referer
		LogFormat "%{User-agent}i" agent

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog logs/access_log common
    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog logs/access_log combined
</IfModule>

ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
<IfModule alias_module>
		Alias /v3_menu/ "/home/httpd/v3_menu/"
		<Directory "/home/httpd/v3_menu">
				AllowOverride None
				Order allow,deny
				Allow from all
		</Directory>
</IfModule>

<IfModule autoindex_module>
		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* README* RCS CVS *,v *,t
</IfModule>

#
# Document types.
#
<IfModule mime_module>
		TypesConfig /etc/config/apache/mime.types
		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 .sv
		AddLanguage cs .cz .cs
		AddLanguage ru .ru
		AddLanguage zh-TW .zh-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 negotiation_module>
				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
		AddEncoding x-compress .Z
		AddEncoding x-gzip .gz .tgz
		AddType application/x-compress .Z
		AddType application/x-gzip .gz .tgz
		AddType application/x-httpd-php .php .php4 .php3 .phtml
		AddType application/x-httpd-php-source .phps
		AddHandler cgi-script .cgi
		AddType text/html .shtml
		AddHandler server-parsed .shtml
		AddHandler send-as-is asis
		AddHandler imap-file map
		AddHandler type-map var
</IfModule>

<IfModule mime_magic_module>
		MIMEMagicFile /etc/config/apache/magic
</IfModule>

<IfModule setenvif_module>
		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>

<IfModule ssl_module>
	SSLRandomSeed startup builtin
	SSLRandomSeed connect builtin
</IfModule>
[ho messo gli asterischi in quelli che mi sembravano dati sensibili]

Allora sostituisco il file apache.conf (/etc/config/apache/apache.conf) con il apache.conf di backup (/etc/default_config/apache.conf) e do il comando:
/etc/init.d/Qthttpd.sh restart
e tutto funziona da capo, posso accedere al webserver e smettono le e-mail. Ma almeno una volta a settimana il file apache.conf torna ad essere:

Codice: Seleziona tutto

User httpdusr
Group everyone

Include /etc/config/apache/extra/apache-msv2.conf

Include /etc/config/apache/extra/apache-musicstation.conf

Include /etc/config/apache/extra/apache-photo.conf
e ritornano le e-mail e non accedo più al webserver... Come faccio a risolvere il problema definitivamente invece di questa soluzione momentanea? Perchè se il problema compare alle 2 di notte la mattina mi trovo la casella e-mail piena di e-mail, oppure se sono fuori casa (visto che non ho aperto la porta ssh dall'esterno) non posso risolverlo finché non sono a casa... Aiuto per favore!

Ho un TS-112 turbo nas ultimo firmware (v3.5.2 build 1126)

Re: Problema Re-launch process [apache]

Inviato: 27 gen 2012, 01:48
da kykkus
up

Re: Problema Re-launch process [apache]

Inviato: 24 nov 2012, 22:38
da megamit
ciao, io ho piu o meno il tuo stesso problema, solo che il processo che rilancia a me di continuo è "upnpcd" che non so cosa sia... hai risolto ? Come ?