SuSEconfig problems when installing SuSE10.1 server

Discussion in 'Server Operation' started by dspuser, May 23, 2006.

  1. dspuser

    dspuser New Member

    Hi.

    I have started installing my SuSE server pr. the good instruction from Falko.

    The problem is here, and it's when I start the SuSEconfig, where it's written to be started unde rthe Apache section:

    HTML:
    # SuSEconfig
    Starting SuSEconfig, the SuSE Configuration Tool...
    Running in full featured mode.
    Reading /etc/sysconfig and updating the system...
    Executing /sbin/conf.d/SuSEconfig.desktop-file-utils...
    Executing /sbin/conf.d/SuSEconfig.fonts...
    Creating fonts.{scale,dir} files ...........
    /etc/fonts/suse-font-dirs.conf unchanged
    /etc/fonts/suse-hinting.conf unchanged
    /etc/fonts/suse-bitmaps.conf unchanged
    Creating cache files for fontconfig ........................................
    generating java font setup
    writing /usr/lib/jvm/java-1_4_2-sun-1.4.2.11/jre/lib/font.properties.ja
    Executing /sbin/conf.d/SuSEconfig.gnome-vfs2...
    Executing /sbin/conf.d/SuSEconfig.groff...
    Executing /sbin/conf.d/SuSEconfig.gtk2...
    Executing /sbin/conf.d/SuSEconfig.isdn...
    Modify isdn.conf
    Executing /sbin/conf.d/SuSEconfig.ispell...
    Executing /sbin/conf.d/SuSEconfig.kde...
    Executing /sbin/conf.d/SuSEconfig.kdm3...
    Executing /sbin/conf.d/SuSEconfig.libxml2...
    Executing /sbin/conf.d/SuSEconfig.news...
    Executing /sbin/conf.d/SuSEconfig.pango...
    Executing /sbin/conf.d/SuSEconfig.perl...
    Executing /sbin/conf.d/SuSEconfig.permissions...
    Executing /sbin/conf.d/SuSEconfig.postfix...
            *** WARNING ***
    Found /etc/postfix/main.cf.SuSEconfig, exiting...
            *** WARNING ***
    Executing /sbin/conf.d/SuSEconfig.scpm...
    Executing /sbin/conf.d/SuSEconfig.sgml-skel...
    Executing /sbin/conf.d/SuSEconfig.sortpasswd...
    Executing /sbin/conf.d/SuSEconfig.susehelp...
    DOCALLOW: localhost
      Creating susehelp index.
    Executing /sbin/conf.d/SuSEconfig.syslog-ng...
    Executing /sbin/conf.d/SuSEconfig.words...
    Executing /sbin/conf.d/SuSEconfig.xdm...
    Executing /sbin/conf.d/SuSEconfig.xpdf...
    Executing /sbin/conf.d/SuSEconfig.zmessages...
    Finished.
    
    And also when I start Apache :

    HTML:
    /etc/init.d/apache2 start
    Starting httpd2 (prefork) Syntax error on line 101 of /etc/apache2/server-tuning.conf:
    Invalid command 'BrowserMatch', perhaps misspelled or defined by a module not included in the server configuration
    
    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
                                                                          failed
    
    I think it's because I handedited the main.cf file mentioned up in the documentation for the server setup ??.

    /dspuser
     
  2. dspuser

    dspuser New Member

    It was /etc/postfix/master.cf, that was edited. Not the main.cf, but it's a problem with main.cf, that I havne't touched:

    -rw-r--r-- 1 root root 27817 May 23 20:04 main.cf
    -rw-r--r-- 1 root root 27806 May 23 20:09 main.cf.SuSEconfig

    /dspuser
     
  3. dspuser

    dspuser New Member

    Hello anyone.

    I really hope that there is any help for my problem.

    I don't think the message I received when I ran SuSEconfig is serious. I have the idea from other threads in this forum.

    Anyway, I do send my main.cf and master.cf, as I think they are not quite ok.
    My domain is urbakken, dk, and the name of the server is set to server 1 - server1.urbakken.dk

    But the most serious problem I see is the problem with Apache, that I cnanot get started. I again show the problem further down the lines.

    My /etc/postfix/main.cf file:

    HTML:
    #soft_bounce = no
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/lib/postfix
    mail_owner = postfix
    #default_privs = nobody
    #myhostname = host.domain.tld
    #myhostname = virtual.domain.tld
    #mydomain = domain.tld
    #myorigin = $myhostname
    #myorigin = $mydomain
    #inet_interfaces = all
    #inet_interfaces = $myhostname
    #inet_interfaces = $myhostname, localhost
    #proxy_interfaces =
    #proxy_interfaces = 1.2.3.4
    #mydestination = $myhostname, localhost.$mydomain, localhost
    #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
    #	mail.$mydomain, www.$mydomain, ftp.$mydomain
    #local_recipient_maps = unix:passwd.byname $alias_maps
    #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
    #local_recipient_maps =
    unknown_local_recipient_reject_code = 550
    #mynetworks_style = class
    #mynetworks_style = subnet
    #mynetworks_style = host
    #mynetworks = 168.100.189.0/28, 127.0.0.0/8
    #mynetworks = $config_directory/mynetworks
    #mynetworks = hash:/etc/postfix/network_table
    #relay_domains = $mydestination
    #relayhost = $mydomain
    #relayhost = [gateway.my.domain]
    #relayhost = [mailserver.isp.tld]
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]
    #relay_recipient_maps = hash:/etc/postfix/relay_recipients
    #in_flow_delay = 1s
    #alias_maps = dbm:/etc/aliases
    #alias_maps = hash:/etc/aliases
    #alias_maps = hash:/etc/aliases, nis:mail.aliases
    #alias_maps = netinfo:/aliases
    #alias_database = dbm:/etc/aliases
    #alias_database = dbm:/etc/mail/aliases
    #alias_database = hash:/etc/aliases
    #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
    #home_mailbox = Mailbox
    #home_mailbox = Maildir/
    #mail_spool_directory = /var/mail
    #mail_spool_directory = /var/spool/mail
    #mailbox_command = /some/where/procmail
    #mailbox_command = /some/where/procmail -a "$EXTENSION"
    #mailbox_transport = lmtp:unix:/file/name
    #mailbox_transport = cyrus
    #fallback_transport = lmtp:unix:/file/name
    #fallback_transport = cyrus
    #fallback_transport =
    #luser_relay = [email protected]
    #luser_relay = [email protected]
    #luser_relay = admin+$local
    #header_checks = regexp:/etc/postfix/header_checks
    #smtpd_banner = $myhostname ESMTP $mail_name
    #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
    #local_destination_concurrency_limit = 2
    #default_destination_concurrency_limit = 20
    debug_peer_level = 2
    #debug_peer_list = 127.0.0.1
    #debug_peer_list = some.domain
    debugger_command =
    	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    	 xxgdb $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = maildrop
    html_directory = /usr/share/doc/packages/postfix/html
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/packages/postfix/samples
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    inet_protocols = all
    biff = no
    mail_spool_directory = /var/mail
    canonical_maps = hash:/etc/postfix/canonical
    virtual_alias_maps = hash:/etc/postfix/virtual
    virtual_alias_domains = hash:/etc/postfix/virtual
    relocated_maps = hash:/etc/postfix/relocated
    transport_maps = hash:/etc/postfix/transport
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    masquerade_exceptions = root
    masquerade_classes = envelope_sender, header_sender, header_recipient
    myhostname = server1.$mydomain
    program_directory = /usr/lib/postfix
    inet_interfaces = all
    masquerade_domains = 
    mydestination = $myhostname, localhost.$mydomain
    defer_transports = 
    mynetworks_style = subnet
    disable_dns_lookups = no
    relayhost = 
    mailbox_command = 
    mailbox_transport = 
    strict_8bitmime = no
    disable_mime_output_conversion = no
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_client_restrictions = 
    smtpd_helo_required = no
    smtpd_helo_restrictions = 
    strict_rfc821_envelopes = no
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
    smtp_sasl_auth_enable = no
    smtpd_sasl_auth_enable = yes
    smtpd_use_tls = yes
    smtp_use_tls = yes
    alias_maps = hash:/etc/aliases
    mailbox_size_limit = 0
    message_size_limit = 10240000
    mydomain = urbakken.dk
    smtpd_sasl_local_domain = 
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_tls_auth_only = no
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    My /etc/postfix/master.cf file:

    HTML:
    smtp      inet  n       -       n       -       -       smtpd
    628      inet  n       -       n       -       -       qmqpd
    pickup    fifo  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    flush     unix  n       -       n       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    smtp      unix  -       -       n       -       -       smtp
    relay     unix  -       -       n       -       -       smtp
    	-o fallback_relay=
    showq     unix  n       -       n       -       -       showq
    error     unix  -       -       n       -       -       error
    discard   unix  -       -       n       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    scache	  unix	-	-	n	-	1	scache
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    cyrus	  unix	-	n	n	-	-	pipe
      user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    uucp	  unix	-	n	n	-	-	pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    procmail  unix  -       n       n       -       -       pipe
      flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
    The Apache starterror:

    HTML:
    /etc/init.d/apache2 start
    Starting httpd2 (prefork) Syntax error on line 165 of /etc/apache2/httpd.conf:
    Invalid command 'default.aspx', perhaps misspelled or defined by a module not included in the server configuration
    
    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
                                                                          failed
    
    And please anyone, I ask for your help. Thanks!

    /dspuser
     
  4. dspuser

    dspuser New Member

    With reference to the Invalid command 'default.apsx', I can see, that its ok spelled. Then it may be a module not included in the configuration, but how to see what module it is ?

    less httpd.conf |grep default.aspx
    default.aspx

    /dspuser
     
  5. dspuser

    dspuser New Member

    I just checked ALL the modules, and they are installed.

    Now, what to do ?

    /dspuser
     
  6. falko

    falko Super Moderator Howtoforge Staff

    First, this problem has nothing to do with Postfix, don't let you fool by the output of SuSEconfig.

    What's in the APACHE_MODULES line in /etc/sysconfig/apache2?
     
  7. dspuser

    dspuser New Member

    @falko

    I got it. A friend of my could see it imediately.

    It was the las part of :


    DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php5 index.php4 index.php3 index.pl index.html.var index.aspx default.aspx

    You cannot see here, but the "default.aspx" had jumped one line down, and therefor the problem with the start up of apache :)

    Thanks for your reply.

    /dspuser
     
  8. madmac

    madmac New Member

    I can get it

    I cant get it, not as per heading

    Starting httpd2 (prefork) Syntax error on line 101 of /etc/apache2/server-tuning.conf:
    Invalid command 'BrowserMatch', perhaps misspelled or defined by a module not included in the server configuration

    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL

    AQny Idea how to fix it?

    madmac
     
    Last edited: Jul 10, 2007
  9. falko

    falko Super Moderator Howtoforge Staff

    Is the module setenvif included in the APACHE_MODULES line in /etc/sysconfig/apache2?
     

Share This Page