PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Linux Apache Dienst startet nicht.



Craven66
16.08.10, 06:34
Hallo,

zur Zeit hänge ich an einem Problem mit dem Apache Dienst bei der Linux Meta Distribution Gentoo. Vielleicht kann hier ja jemand helfen oder hat hilfreiche Ideen woran es liegen könnte.

Wenn ich apache2 mit:

# /etc/init.d/apache2 starte kommt folgendes:
Caching Dependecies
*Apache started

Das Problem hierbei ist er ist nicht wirklich gestartet und generiert auch keine Pidfile wie in der httpd.conf angegeben.

Die /var/log/apache2/error_log zeigt auch keine gravierenden Fehler an. Ich poste mal nachher direkt den Inhalt.

Die Frage ist warum er mir unter /etc/init.d/apache2 status mitteilt, dass der Dienst am laufen wäre und mit ps -A oder netstat -ptl sehe ich aber nichts.

marce
16.08.10, 07:53
poste erst mal relevante Infos - Hellsehen gibt's eher bei 9Live...

Craven66
16.08.10, 07:57
error_log:

[Sun Aug 15 03:10:20 2010] [error] Can't locate Apache/RequestUtil.pm in @INC (@INC contains: /opt/rt3/local/lib /opt/rt3/lib /home/httpd/perl /etc/perl /usr
/lib/perl5/vendor_perl/5.8.8/i686-linux /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.6/i686-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/li
b/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_pe
rl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl . /usr/lib/apache2) at /opt/rt3/bin/webmux.pl
line 48.\nBEGIN failed--compilation aborted at /opt/rt3/bin/webmux.pl line 64.\nCompilation failed in require at (eval 10) line 1.\n

Hindert dieser Fehler den Dienst am starten? Mit configtest und modules wurde zusätzlich schon die Syntax getestet -> beides ok.

Vielen Dank für eure Hilfe.

marce
16.08.10, 08:00
sollte eigentlich nicht - aber poste doch bitte erst mal Fakten (auch unter anderem, woran Du festmachst, daß der Apache nicht läuft...)

Craven66
16.08.10, 08:55
/etc/init.d/apache2 start
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName

Mit ps -A | grep finde ich keinen Prozess und mit netstat -ptl ist auch keine Apache der auf Port :80 hörcht.

Außerdem zeigt der localhost nichts an wenn man Ihn aufruft also keine Default Site.

Zudem zeigt ein Restart die nicht vorhandene Pidfile an.

/etc/init.d/apache2 restart
* Stopping apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName
httpd (no pid file) not running [ ok ]
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName

drcux
16.08.10, 09:34
http://www.google.de/search?q=apache2%3A+Could+not+reliably+determine+t he+server%27s+fully+qualified+domain+name%2C+using +*+for+ServerName+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a

Craven66
16.08.10, 09:53
Hallo drcux,

Die Meldung sollte laut einiger anderer Foren kein Problem sein. Dazu sei erwähnt das anstatt dem * die korrekte lokale IP Adresse genommen wird.

Ich poste nur nicht gern echte IP Adressen des Netzwerks. :)

marce
16.08.10, 09:55
/etc/init.d/apache2 start
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName
ist nur eine Warniing.


Mit ps -A | grep finde ich keinen Prozess und mit netstat -ptl ist auch keine Apache der auf Port :80 hörcht.
Wir auch nicht. Poste also bitte komplette Befehle und deren Ausgaben bzw. Fehlermeldungen. Verwende dafür bitte auch die Code-Tags, dann bleibt das lesbar.


Außerdem zeigt der localhost nichts an wenn man Ihn aufruft also keine Default Site.
Ist er denn so konfiguriert, daß er das auch tun sollte?




Zudem zeigt ein Restart die nicht vorhandene Pidfile an.

/etc/init.d/apache2 restart
* Stopping apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName
httpd (no pid file) not running [ ok ]
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName
dann poste mal die Config, die entsprechende Verzeichnisrechte, ...

Du machst das ganze aber auch schon als root? Firewall? Was sagt das Access-Log? ...


Dazu sei erwähnt das anstatt dem * die korrekte lokale IP Adresse genommen wird.

Ich poste nur nicht gern echte IP Adressen des Netzwerks. :)
Lokale IPs sind sowas von unrelevant - solange die nicht öffentlich sind kannst Du die problemlos posten. Es besteht ja auch kein Sicherheitsrisiko, wenn ich hier erzähle, daß ich meine Messer in der Küche aufbewahre...

Craven66
16.08.10, 11:04
Hier die /etc/apache2/httpd.conf:


# This is a modification of the default Apache 3.2 configuration file
# for Gentoo Linux.
#
# Support:
# http://www.gentoo.org/main/en/lists.xml [mailing lists]
# http://forums.gentoo.org/ [web forums]
# irc://irc.freenode.net#gentoo-apache [irc chat]
#
# Bug Reports:
# http://bugs.gentoo.org [gentoo related bugs]
# http://httpd.apache.org/bug_report.html [apache httpd related bugs]
#
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr/var/log/apache2/foo.log".

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
ServerRoot "/usr/lib/apache2"

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
# Do not change manually, it will be overwritten on upgrade.
#
# The following modules are considered as the default configuration.
# If you wish to disable one of them, you may have to alter other
# configuration directives.
#
# Change these at your own risk!
Listen 80
Listen 433
PidFile /etc/pid/apache2.pid
ErrorLog /var/log/apache2/error_log
LogLevel debug
ServerSignature On


LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#<IfDefine AUTHNZ_LDAP>
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#</IfDefine>
LoadModule authz_dbm_module modules/mod_authz_dbm.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_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
<IfDefine CACHE>
LoadModule cache_module modules/mod_cache.so
</IfDefine>
LoadModule cgi_module modules/mod_cgi.so
LoadModule cgid_module modules/mod_cgid.so
<IfDefine DAV>
LoadModule dav_module modules/mod_dav.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfDefine>
<IfDefine DAV>
LoadModule dav_lock_module modules/mod_dav_lock.so
</IfDefine>
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
<IfDefine CACHE>
LoadModule disk_cache_module modules/mod_disk_cache.so
</IfDefine>
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule ext_filter_module modules/mod_ext_filter.so
<IfDefine CACHE>
LoadModule file_cache_module modules/mod_file_cache.so
</IfDefine>
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>
#<IfDefine LDAP>
#LoadModule ldap_module modules/mod_ldap.so
#</IfDefine>
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
<IfDefine CACHE>
LoadModule mem_cache_module modules/mod_mem_cache.so
</IfDefine>
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule speling_module modules/mod_speling.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>
<IfDefine STATUS>
LoadModule status_module modules/mod_status.so
</IfDefine>
LoadModule unique_id_module modules/mod_unique_id.so
<IfDefine USERDIR>
LoadModule userdir_module modules/mod_userdir.so
</IfDefine>
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache
UseCanonicalName On
DefaultType text/plain
ServerTokens Full
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0


NameVirtualHost *:80

<VirtualHost *:80>

Serveradmin root@localhost.de
DocumentRoot "/var/www/localhost/htdocs"
DirectoryIndex index.html index.htm
Servername localhost
ErrorLog "/var/log/apache2/localhost.error_log"

</VirtualHost>

<VirtualHost *:80>

Serveradmin test@intranet.de
DocumentRoot "/var/www/test.intranet.de/htdocs/dmsb"
DirectoryIndex index.html index.htm
Servername forum.intranet.de
ErrorLog "/var/log/apache2/forumtest.error_log"
CustomLog "/var/log/apache2/forumtest.access_log" common

</VirtualHost>

NameVirtualHost *:443



# Supplemental configuration
#
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
# or to modify the default configuration of the server.
#
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf

# vim: ts=4 filetype=apache


# ps -A
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 kthreadd
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 events/0
5 ? 00:00:00 khelper
8 ? 00:00:00 async/mgr
86 ? 00:00:00 kblockd/0
92 ? 00:00:00 kseriod
127 ? 00:00:00 kapmd
136 ? 00:01:25 kswapd0
137 ? 00:00:00 aio/0
138 ? 00:00:00 nfsiod
787 ? 00:00:00 kpsmoused
790 ? 00:00:00 rpciod/0
800 ? 00:00:09 md5_raid1
806 ? 00:00:10 md4_raid1
812 ? 00:01:37 md2_raid1
818 ? 00:00:04 md1_raid1
822 ? 00:00:00 md0_raid1
828 ? 00:00:00 md3_raid1
830 ? 00:00:00 reiserfs/0
901 ? 00:00:00 udevd
1377 ? 00:00:48 postmaster
1390 ? 00:05:27 postmaster
1392 ? 00:00:00 postmaster
1393 ? 00:00:11 postmaster
1394 ? 00:00:05 postmaster
3698 ? 00:00:03 syslogd
3707 ? 00:00:00 klogd
3727 ? 00:00:00 smbd
3967 ? 00:00:00 smbd
3968 ? 00:00:00 smbd
3976 ? 00:00:00 smbd
4133 ? 00:00:00 smbd
4268 ? 00:00:00 smbd
4269 ? 00:00:01 smbd
4318 ? 00:00:00 smbd
4342 ? 00:00:00 portmap
4362 ? 00:00:00 smbd
4411 ? 00:00:01 smbd
4420 ? 00:00:00 smbd
4429 ? 00:00:00 smbd
4520 ? 00:00:00 sshd
4526 pts/0 00:00:00 bash
4544 ? 00:00:00 sshd
4613 pts/0 00:00:00 ssh
4690 ? 00:00:00 rpc.idmapd
4695 ? 00:00:00 rpc.statd
4711 ? 00:00:00 lockd
4712 ? 00:00:00 nfsd
4713 ? 00:00:00 nfsd
4714 ? 00:00:01 nfsd
4715 ? 00:00:00 nfsd
4716 ? 00:00:00 nfsd
4717 ? 00:00:00 nfsd
4718 ? 00:00:00 nfsd
4719 ? 00:00:01 nfsd
4723 ? 00:00:00 smbd
4733 ? 00:00:00 rpc.mountd
4789 ? 00:00:00 smbd
4829 ? 00:00:01 sshd
4833 pts/1 00:00:00 bash
4849 ? 00:00:08 automount
4863 ? 00:00:00 automount
4964 ? 00:00:00 distccd
4965 ? 00:00:00 distccd
5028 ? 00:00:00 exim
5049 ? 00:00:00 cron
5050 ? 00:00:00 sh
5051 ? 00:00:00 rdate
5079 ? 00:00:00 distccd
5101 ? 00:00:00 distccd
5104 ? 00:00:03 smbd
5113 ? 00:00:00 smbd
5114 ? 00:04:13 nmbd
5278 ? 00:00:01 sshd
5282 pts/2 00:00:00 bash
5311 ? 00:00:00 svnserve
5382 ? 00:00:03 cron
5468 ? 00:00:02 xinetd
5473 ? 00:00:00 smbd
5535 ? 00:00:00 mdadm
5537 ? 00:00:00 mdadm
5539 ? 00:00:00 mdadm
5541 ? 00:00:00 mdadm
5543 ? 00:00:00 mdadm
5636 ? 00:00:00 smbd
5640 tty2 00:00:00 agetty
5641 tty3 00:00:00 agetty
5642 tty4 00:00:00 agetty
5643 tty5 00:00:00 agetty
5644 tty6 00:00:00 agetty
5719 pts/1 00:00:00 ps
5895 tty1 00:00:00 agetty
8329 ? 00:00:00 smbd
17394 ? 00:00:00 smbd
24021 ? 00:00:01 spam-filter
24028 ? 00:00:00 postmaster
25436 ? 00:00:00 sshd
25441 pts/4 00:00:00 bash
25513 ? 00:00:00 smbd
25544 ? 00:00:00 smbd
30402 ? 00:00:00 smbd
31060 ? 00:00:38 pdflush
31062 ? 00:00:00 pdflush



# netstat -ptl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:nfs *:* LISTEN -
tcp 0 0 *:amandaidx *:* LISTEN 5468/xinetd
tcp 0 0 *:amidxtape *:* LISTEN 5468/xinetd
tcp 0 0 *:time *:* LISTEN 5468/xinetd
tcp 0 0 *:45256 *:* LISTEN 4733/rpc.mountd
tcp 0 0 *:svn *:* LISTEN 5311/svnserve
tcp 0 0 *:43114 *:* LISTEN -
tcp 0 0 *:netbios-ssn *:* LISTEN 5104/smbd
tcp 0 0 *:daytime *:* LISTEN 5468/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 4342/portmap
tcp 0 0 *:distcc *:* LISTEN 4964/distccd
tcp 0 0 *:32882 *:* LISTEN 4695/rpc.statd
tcp 0 0 *:ssh *:* LISTEN 4544/sshd
tcp 0 0 *:postgresql *:* LISTEN 1377/postmaster
tcp 0 0 *:smtp *:* LISTEN 5028/exim
tcp 0 0 *:microsoft-ds *:* LISTEN 5104/smbd


Ja er wird als root ausgeführt. Firewall ist ok da die Einträge schon vorher da waren und der Apache nur aktualisiert wurde mit MySQL und neuer Apache Version. Vielen Dank für eure Hilfe.