Current time: 06-27-2024, 04:55 AM Hello There, Guest! (LoginRegister)


Post Reply 
Apache: Unable to open Logs
Author Message
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #1
Apache: Unable to open Logs
hello leute

seit ich gestern abend versucht habe den einen user manuell zu löschen STEHT DER APACHE komplett bei mir.
ich habe die working/ispcp.conf und sites-available/ispcp.conf bearbeitet und anschliessend wollte ich den apache neustarten.

ER SCHREIBT MIR: FAILED !

error.log schreibt mir: UNABLE TO OPEN LOGS er schreibt abr nicht welche logs.....aaa

es ist wirklich dringend.....

danke

für jede hilfe oder vorschlag...

MENKI
(This post was last modified: 08-27-2008 03:14 PM by menki.)
08-27-2008 03:13 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: Apache: Unable to open Logs
Wieso manuell? Es wurden ja Backups gemacht. Spiel die erstemal wieder ein. Dann sollte es erst mal wieder laufen. Danach kann man sich überlegen, wie der User am besten gelöscht wird.
08-27-2008 03:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
the_condor Offline
Junior Member
*

Posts: 33
Joined: Aug 2008
Reputation: 0
Post: #3
RE: Apache: Unable to open Logs
Hallo,

apache conf Kontrollieren und die schreib Rechte prüfen.

Wie hast Du deinen User gelöscht? Wie und wo überall heraus?


mfg
the_condor
08-27-2008 03:47 PM
Find all posts by this user Quote this message in a reply
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #4
RE: Apache: Unable to open Logs
ich habe gestern nur die working/ispcp.conf geändert und einen user manuel gelöscht und die sites-available/ispcp.conf genauso.

wo sind die backups goover?

diese rechte hat:
-rw-r--r-- 1 root root 25677 2008-07-04 18:57 apache2.conf

Code:
root@ns3**833:/etc/apache2# apache2ctl configtest
[Wed Aug 27 07:51:12 2008] [warn] NameVirtualHost 91.121.143.191:80 has no VirtualHosts
Syntax OK

Code:
Starting web server (apache2)...[Wed Aug 27 07:51:51 2008] [warn] NameVirtualHost 91.121.143.191:80 has no VirtualHosts
failed!

error.log:
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs

sites-enabled folder schaut so aus:

Code:
lrwxrwxrwx 1 root root   43 2008-05-12 13:23 00_master.conf -> /etc/apache2/sites-available/00_master.conf
lrwxrwxrwx 1 root root   44 2008-05-12 13:23 01_awstats.conf -> /etc/apache2/sites-available/01_awstats.conf
lrwxrwxrwx 1 root root   39 2008-05-12 13:23 ispcp.conf -> /etc/apache2/sites-available/ispcp.conf
lrwxrwxrwx 1 root root   39 2008-08-27 01:33 ispcp.conf_ORIGINAL -> /etc/apache2/sites-available/ispcp.conf
-rw-r--r-- 1 root root  142 2008-07-03 00:52 munin.conf
lrwxrwxrwx 1 root root   41 2008-08-02 22:45 nagios2.conf -> /etc/apache2/sites-available/nagios2.conf

ist das so normal??


irgend etwas ist faul in irgendeiner conf datei. oder die rechte der logs files stimmen nicht obwohl ich die niemals verändert hätte. hab versucht chmod 0777 auf error.log und access.log zu setzen. bringt auch nichts.

danke für hilfe....seit 7 stunden steht der apache schon...

MENKI
(This post was last modified: 08-27-2008 04:00 PM by menki.)
08-27-2008 03:53 PM
Find all posts by this user Quote this message in a reply
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #5
RE: Apache: Unable to open Logs
kann das wirklich sein das die 00_master.conf und 01_awstats.conf 0 byte hat?
Code:
drwxr-xr-x 2 root root   4096 2008-08-27 08:07 .
drwxr-xr-x 9 root root   4096 2008-08-27 07:59 ..
-rw-r--r-- 1 root root      0 2008-08-27 07:59 00_master.conf
-rw-r--r-- 1 root root      0 2008-08-27 07:59 01_awstats.conf
-rw-r--r-- 1 root root   1181 2008-01-31 09:41 default
-rw-r--r-- 1 root root 721056 2008-08-27 08:07 ispcp.conf
-rw-r--r-- 1 root root      0 2008-08-27 07:59 nagios2.conf

MENKI
(This post was last modified: 08-27-2008 04:18 PM by menki.)
08-27-2008 04:17 PM
Find all posts by this user Quote this message in a reply
FraggDieb Offline
Member
***

Posts: 252
Joined: Feb 2008
Reputation: 0
Post: #6
RE: Apache: Unable to open Logs
Nein das kann definitiv nicht sein Wink

00master.conf
Code:
#
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright    2001-2006 by moleSoftware GmbH
# @copyright    2006-2008 by ispCP | http://isp-control.net
# @version        SVN: $ID$
# @link            http://isp-control.net
# @author        ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​
#
# Master Begin
#

<VirtualHost 87.98.130.235:80>

    ServerAdmin     info@****domain****
    DocumentRoot    /var/www/ispcp/gui

    ServerName      ***hostname***

    ErrorLog        /var/log/apache2/users/*****-error.log
    TransferLog     /var/log/apache2/users/i*****-access.log

    CustomLog       /var/log/apache2/*****-traf.log traff
    CustomLog       /var/log/apache2/*****-combined.log combined

    Alias /errors   /var/www/ispcp/gui/errordocs/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    Alias /pma      /var/www/ispcp/gui/tools/pma/
    Alias /webmail  /var/www/ispcp/gui/tools/webmail/
    Alias /ftp      /var/www/ispcp/gui/tools/filemanager/

    <IfModule suexec_module>
           SuexecUserGroup vu2000 vu2000
    </IfModule>

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

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/master/
        ScriptAlias /php5/ /var/www/fcgi/master/
        <Directory "/var/www/fcgi/master">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
            php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>
    <IfModule mod_php5.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
            php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>

</VirtualHost>

#
# Master End
#

00awstats.conf
Code:
#
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright    2006-2008 by ispCP | http://isp-control.net
# @version        SVN: $ID$
# @link            http://isp-control.net
# @author        ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​
#
# AWStats Begin
#

Alias /awstatsicons "/usr/share/awstats/icon/"


NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P]
        RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$1 [P]
        RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R]
    </IfModule>

    ScriptAlias /awstats "/usr/lib/cgi-bin/awstats.pl"

    <Directory /usr/lib/cgi-bin>
        AllowOverride none
        Options +ExecCGI
        DirectoryIndex awstats.pl
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

#
# AWStats End
#

versuchs mal

Aber wieso hat die nagios2.conf au 0 byte?
08-27-2008 04:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #7
RE: Apache: Unable to open Logs
nagios habe ich schon vor 2 wochen deinstalliert....

habe die 2 files jetzt aktualisiert und angepasst. trotzdem bekomme ich beim starten von apache die selbe meldung....diese fehler sind erst später aufgetretten. diese waren vorher nicht da.

soll ich das so lassen mit den STERNCHEN?

Code:
ErrorLog        /var/log/apache2/users/*****-error.log
    TransferLog     /var/log/apache2/users/i*****-access.log

    CustomLog       /var/log/apache2/*****-traf.log traff
    CustomLog       /var/log/apache2/*****-combined.log combined

oder muss ich da was anderes einfügen??

MENKI
08-27-2008 05:00 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #8
RE: Apache: Unable to open Logs
Sorry, bin von der Arbeit unterbrochen worden Wink

Sofern Du RC5 hast, findest Du die Backups unter /var/www/ispcp/backups
08-27-2008 05:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
menki Offline
Member
***

Posts: 643
Joined: May 2008
Reputation: 0
Post: #9
RE: Apache: Unable to open Logs
habe das letzt mögliche backup ins /tmp entpackt....

Code:
drwxr-xr-x 14 root root    4096 2008-08-27 09:39 .
drwxr-xr-x 25 root root    4096 2008-08-25 22:47 ..
drwxr-xr-x  5 root root    4096 2008-08-25 21:43 apache
drwxr-xr-x  2 root root    4096 2008-05-12 13:18 awstats
drwxr-xr-x  5 root root    4096 2008-06-07 22:03 bind
-rw-r-----  1 root root 1117398 2008-08-27 09:34 config-backup-2008.08.26-000002.tar.bz2
drwxr-xr-x  4 root root    4096 2008-05-12 13:18 courier
drwxr-xr-x  5 root root    4096 2008-05-12 13:18 cron.d
drwxr-xr-x  2 root root    4096 2008-05-12 13:18 database
srwx------  1 root root       0 2008-05-01 00:48 fail2ban.sock
drwxr-xr-x  5 root root    4096 2008-05-12 13:18 fcgi
drwxrwxrwt  2 root root    4096 2008-05-01 00:47 .ICE-unix
-rw-r--r--  1 root root    5995 2008-08-25 15:28 ispcp.conf
drwx------  2 polw root    4096 2008-05-01 00:48 .policyd-weight
drwxr-xr-x  6 root root    4096 2008-05-12 13:18 postfix
drwxr-xr-x  3 root root    4096 2008-05-12 13:18 proftpd
drwxrwxrwt  2 root root    4096 2008-05-01 00:47 .X11-unix

kann ich einfach die fiels aus den apache/working verzechniss ins bestehende working rein kopieren? und die master.cond und die awstats.conf genauso?

MENKI[/code]
08-27-2008 05:40 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #10
RE: Apache: Unable to open Logs
Normal ja, das sollte gehen.
08-27-2008 06:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)