Current time: 11-15-2024, 11:47 PM Hello There, Guest! (LoginRegister)


Post Reply 
Apache hat plötzlich einen Fehler
Author Message
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #1
Apache hat plötzlich einen Fehler
Hi zusammen
Also das kann ich jetzt mal gar nicht nachvollziehen.
Mein Apache läuft plötzlich nicht mehr und beim Versuch ihn zu starten bekomme ich folgende Meldung:

Quote:httpd starten: httpd: Syntax error on line 992 of /etc/httpd/conf/httpd.conf: Syntax error on line 260 of /etc/httpd/vhosts/ispcp.conf: </IfModule> without matching <IfModule> section
[FEHLGESCHLAGEN]
Zeile 992 in /etc/httpd/conf/httpd.conf ist das include zur ispcp.conf
Zeilen 249 - 260 in der /etc/httpd/vhosts/ispcp.conf sind folgende:
Code:
<IfModule mod_fcgid.c>
        <Directory /var/www/virtual/dhdtv.ch/test/htdocs>
            FCGIWrapper /var/www/fcgi/dhdtv.ch/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/dhdtv.ch">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>    # httpd sub entry PHP2 support END.
Da ist aber ein öffnendes IfModule...
Also habe ich zum Test mal versucht genau diese Zeilen rauszulöschen und siehe da mein Apache startet wieder...
Jetzt versteh ich die Welt nicht mehr, weil ich da an und für sich keinen Fehler drin entdecken kann. Auch ist mir ein Rätsel wieso der Apache plötzlich nicht mehr läuft. Hab gestern nur versucht mein DNS Problem zu lösen Wink
Die test.dhdtv.ch hab ich auch schon länger angelegt. Da ging er noch...

CentOS 5.2
Apache 2.2.8
ISPCP 1.0 Stable
03-14-2009 08:01 PM
Find all posts by this user Quote this message in a reply
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #2
RE: Apache hat plötzlich einen Fehler
Niemand eine Idee?
03-23-2009 02:54 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #3
RE: Apache hat plötzlich einen Fehler
Hatten noch nie so ein Fehler Rolleyes
Wenn Du die Config regenerierst, hast Du dann wieder den selber Fehler ?
Nur bei der Domain das Problem ?

Greez BeNe
03-23-2009 06:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Apache hat plötzlich einen Fehler
Sieht nach Debugging aus: jede Zeile des Blocks mal kommentieren ud dann zuerst die IfModule entkommentieren, dann einin der weiteren Zeilen innen (die Directory natürlich paarweise) - irgendwie muss es sich doch finden lassen...

mit der Kommandozeilenversion (apache2 -t und apache2 -S) kann man die Tests gut machen...

/J
03-23-2009 05:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #5
RE: Apache hat plötzlich einen Fehler
Hm ok, ich berichtige mich. Mein Apache hat jedesmal ein Problem wenn ich eine neue Subdomain anlege. Hier mal die aktuelle ispcp.conf. Zeilen 249 bis 260 machen Probleme. Wobei ich auch den selben Fehler erhalte wenn ich nur Zeilen 249 und 260 auskommentiere, also die Directory Einträge dazwischen kommentiert lasse. Sobald ich die IfModule Zeilen auf 249 und 260 auch in Kommentare umwandle gehts tip top.
Code:
# httpd Data BEGIN.

#
# wget-hack prevention
#

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
    RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>

#
# Log processing.
#

LogFormat "%B" traff
LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ispcplog

CustomLog "| /var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "| /var/www/ispcp/engine/ispcp-apache-logger -e"

#
# mod_cband configuration
#

<IfModule mod_cband.c>
    CBandScoreFlushPeriod 10
    CBandRandomPulse On
</IfModule>

#
# let the customer decide what charset he likes to use
#

AddDefaultCharset Off

#
# Header End
#

# httpd [80.66.236.69] virtual host entry BEGIN.

NameVirtualHost 80.66.236.69:80

# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [lrm.ch] dmn group entry BEGIN.

<IfModule mod_cband.c>
    <CBandUser lrm.ch>
        # CBandUserLimit 0Mi
        # CBandUserScoreboard /var/www/scoreboards/lrm.ch
        # CBandUserPeriod 4W
        # CBandUserPeriodSlice 1W
        # CBandUserExceededURL http://ispcp.uwd.ch/errors/bw_exceeded.html
    </CBandUser>
</IfModule>


# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

# httpd [lrm.ch] dmn entry BEGIN.
<VirtualHost 80.66.236.69:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2003 vu2003
    </IfModule>

    ServerAdmin     webmaster@lrm.ch
    DocumentRoot    /var/www/virtual/lrm.ch/htdocs

    ServerName      lrm.ch
    ServerAlias     www.lrm.ch lrm.ch *.lrm.ch

    Alias /errors   /var/www/virtual/lrm.ch/errors/

    RedirectMatch permanent ^/ftp([\/]?)        http://ispcp.uwd.ch/ftp/
    RedirectMatch permanent ^/pma([\/]?)        http://ispcp.uwd.ch/pma/
    RedirectMatch permanent ^/webmail([\/]?)    http://ispcp.uwd.ch/webmail/

    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

    <IfModule mod_cband.c>
        CBandUser lrm.ch
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass            /stats    http://localhost/stats/lrm.ch
   ProxyPassReverse        /stats    http://localhost/stats/lrm.ch

    <Location /stats>
        AuthType Basic
        AuthName "Statistics for domain lrm.ch"
        AuthUserFile /var/www/virtual/lrm.ch/.htpasswd
        AuthGroupFile /var/www/virtual/lrm.ch/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/lrm.ch/cgi-bin/
    <Directory /var/www/virtual/lrm.ch/cgi-bin>
        AllowOverride AuthConfig
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <Directory /var/www/virtual/lrm.ch/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/lrm.ch/:/var/www/virtual/lrm.ch/phptmp/:/usr/share/pear/"
        php_admin_value upload_tmp_dir "/var/www/virtual/lrm.ch/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/lrm.ch/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2003 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/lrm.ch/
        <Directory "/var/www/fcgi/lrm.ch">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /var/www/virtual/lrm.ch/htdocs>
            FCGIWrapper /var/www/fcgi/lrm.ch/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/lrm.ch">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /etc/httpd/vhosts/lrm.ch.conf

</VirtualHost>
# httpd [lrm.ch] dmn entry END.

# httpd [lrm.ch] dmn group entry END.

# httpd [dhdtv.ch] dmn group entry BEGIN.

<IfModule mod_cband.c>
    <CBandUser dhdtv.ch>
        # CBandUserLimit 0Mi
        # CBandUserScoreboard /var/www/scoreboards/dhdtv.ch
        # CBandUserPeriod 4W
        # CBandUserPeriodSlice 1W
        # CBandUserExceededURL http://ispcp.uwd.ch/errors/bw_exceeded.html
    </CBandUser>
</IfModule>


# httpd [shop.dhdtv.ch] sub entry BEGIN.
<VirtualHost 80.66.236.69:80>

    #
    #User vu2002
    #Group vu2002
    #

    <IfModule suexec_module>
           SuexecUserGroup vu2002 vu2002
    </IfModule>

    ServerAdmin     webmaster@dhdtv.ch
    DocumentRoot    /var/www/virtual/dhdtv.ch/shop/htdocs

    ServerName      shop.dhdtv.ch
    ServerAlias     www.shop.dhdtv.ch shop.dhdtv.ch *.shop.dhdtv.ch

    Alias /errors /var/www/virtual/dhdtv.ch/errors/

    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

    <IfModule mod_cband.c>
        CBandUser dhdtv.ch
    </IfModule>

    # httpd sub entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/dhdtv.ch/shop/cgi-bin/
    <Directory /var/www/virtual/dhdtv.ch/shop/cgi-bin>
        AllowOverride AuthConfig
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd sub entry cgi support END.

    <Directory /var/www/virtual/dhdtv.ch/shop/htdocs>
        # httpd sub entry PHP support BEGIN.
        # httpd sub entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd sub entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/dhdtv.ch/:/var/www/virtual/dhdtv.ch/phptmp/:/usr/share/pear/"
        php_admin_value upload_tmp_dir "/var/www/virtual/dhdtv.ch/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/dhdtv.ch/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2002 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/dhdtv.ch/
        <Directory "/var/www/fcgi/dhdtv.ch">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    #<IfModule mod_fcgid.c>
        #<Directory /var/www/virtual/dhdtv.ch/shop/htdocs>
            #FCGIWrapper /var/www/fcgi/dhdtv.ch/php5-fcgi-starter .php
            #Options +ExecCGI
        #</Directory>
        #<Directory "/var/www/fcgi/dhdtv.ch">
            #AllowOverride None
            #Options +ExecCGI MultiViews -Indexes
            #Order allow,deny
            #Allow from all
        #</Directory>
    #</IfModule>    # httpd sub entry PHP2 support END.

    Include /etc/httpd/vhosts/shop.dhdtv.ch.conf

</VirtualHost>
# httpd [shop.dhdtv.ch] sub entry END.

# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

# httpd [dhdtv.ch] dmn entry BEGIN.
<VirtualHost 80.66.236.69:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2002 vu2002
    </IfModule>

    ServerAdmin     webmaster@dhdtv.ch
    DocumentRoot    /var/www/virtual/dhdtv.ch/htdocs

    ServerName      dhdtv.ch
    ServerAlias     www.dhdtv.ch dhdtv.ch *.dhdtv.ch

    Alias /errors   /var/www/virtual/dhdtv.ch/errors/

    RedirectMatch permanent ^/ftp([\/]?)        http://ispcp.uwd.ch/ftp/
    RedirectMatch permanent ^/pma([\/]?)        http://ispcp.uwd.ch/pma/
    RedirectMatch permanent ^/webmail([\/]?)    http://ispcp.uwd.ch/webmail/

    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

    <IfModule mod_cband.c>
        CBandUser dhdtv.ch
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass            /stats    http://localhost/stats/dhdtv.ch
   ProxyPassReverse        /stats    http://localhost/stats/dhdtv.ch

    <Location /stats>
        AuthType Basic
        AuthName "Statistics for domain dhdtv.ch"
        AuthUserFile /var/www/virtual/dhdtv.ch/.htpasswd
        AuthGroupFile /var/www/virtual/dhdtv.ch/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/dhdtv.ch/cgi-bin/
    <Directory /var/www/virtual/dhdtv.ch/cgi-bin>
        AllowOverride AuthConfig
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <Directory /var/www/virtual/dhdtv.ch/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/dhdtv.ch/:/var/www/virtual/dhdtv.ch/phptmp/:/usr/share/pear/"
        php_admin_value upload_tmp_dir "/var/www/virtual/dhdtv.ch/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/dhdtv.ch/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2002 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/dhdtv.ch/
        <Directory "/var/www/fcgi/dhdtv.ch">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /var/www/virtual/dhdtv.ch/htdocs>
            FCGIWrapper /var/www/fcgi/dhdtv.ch/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/dhdtv.ch">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /etc/httpd/vhosts/dhdtv.ch.conf

</VirtualHost>
# httpd [dhdtv.ch] dmn entry END.

# httpd [dhdtv.ch] dmn group entry END.


# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.

# httpd [80.66.236.69] virtual host entry END.

# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.

# httpd Data END.
Blöde Frage, wo liegt denn das Template für den IfMOdule Block in Subdomains? Weil grundsätzlich kann ich da drauf verzichten....

Danke euch übrigens für die bisherigen Antworten...
Das Debugging muss ich mal noch besser umzusetzen versuchen...
03-24-2009 06:58 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Apache hat plötzlich einen Fehler
Arbeitest du mit fastcgi oder fcgid?
03-24-2009 07:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #7
RE: Apache hat plötzlich einen Fehler
fcgid
03-24-2009 07:38 PM
Find all posts by this user Quote this message in a reply
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #8
RE: Apache hat plötzlich einen Fehler
Könnte mir nicht noch jemand einen Tip geben wo die Templates liegen? Dann kann ich das da wenigstens mal auskommentieren und muss das nicht jedesmal von Hand machen.
BTW: solange ich keine Subdomains erstelle funktioniert alles wunderbar...
03-25-2009 05:29 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #9
RE: Apache hat plötzlich einen Fehler
Die liegen unter --> /etc/ispcp/fcgi/parts

Greez BeNe
03-25-2009 06:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #10
RE: Apache hat plötzlich einen Fehler
Eigentlich hab ich die /etc/ispcp/apache/parts/sub_php2_entry.tpl gesucht, dank deiner Hilfe hab ich sie aber gefunden Wink
03-26-2009 02:20 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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